我的笔记本电脑(使用 Ubuntu 13.10)eth0通过 ip的有线连接连接到互联网192.168.42.13,它还充当ip的wifi hotspotat (我使用 airbase-ng 来设置 ap)。现在我有一个需要连接到那个 wifi 的 android 设备。我看到我的 android 能够连接到并从我设置的服务器接收以下网络设置。(我使用PlayStore 中的一个名为Net Info II的工具来查看我的 android 上的以下详细信息)。wlan0192.168.1.1hotspotdhcp
# My android network settings (connected to the wlan0 of my laptop):
ip address: 192.168.1.10
subnetmask: 255.255.255.0
gateway : 192.168.1.254
ap-mac : xx:xx:xx:xx:xx:xx
# My pc's eth0 configuration
ip address: 192.168.42.13
submetmask: 255.255.255.0
gateway : 192.168.42.129
iface mac : yy:yy:yy:yy:yy:yy
# My pc's wlan0 (hotspot interface) configuration
ip …Run Code Online (Sandbox Code Playgroud) 使用登录时,ssh -Y remotehost我收到以下错误消息:
/usr/bin/xauth: /home/hlovdal/.Xauthority 不可写,更改将被忽略
和 xclock 和类似的无法启动。尽管有错误消息,但 .Xauthority 文件的权限没有任何问题。
(hlovdal) remotehost:~>xclock
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
Error: Can't open display: localhost:10.0
(hlovdal) remotehost:~>ls -l /home/hlovdal/.Xauthority
-rw-------. 1 hlovdal hlovdal 70 Jul 25 23:30 /home/hlovdal/.Xauthority
(hlovdal) remotehost:~>
Run Code Online (Sandbox Code Playgroud)
这里的原因可能是什么?
(这是在我的两台笔记本电脑之间,我之前来回嘘了数百次。)
更新:
在进一步调试时,xauth 再次抱怨它无法写入 .Xauthority 这没有意义,因为我的用户可以写入该文件,出于好奇,我运行了 strace 以查看它究竟试图做什么。
(hlovdal) remotehost:~>xauth list
xauth: /home/hlovdal/.Xauthority not writable, changes …Run Code Online (Sandbox Code Playgroud) 当我在 Thunderbird 2.0.0 中转发消息时,转发的消息作为附件发送。
在哪里设置以便转发的消息在新消息中内联复制?
知道如何在为远程 IP 移植的 Ubuntu 计算机上创建“虚拟”侦听端口吗?
我的意思是,像这样的事情。
当我编写telnet 127.0.0.1 555 时,我想在端口555(我有我的服务器)上连接到计算机192.168.0.21。
任何的想法?
我对 Firefox 有一个疯狂的问题。每次我在 Google 上进行搜索,然后右键单击一个链接以在单独的选项卡/窗口中打开它时,Firefox 都会停止几秒钟,然后打开一些垃圾邮件/广告链接而不是正确的页面。
我在其他论坛和网站上搜索了解决方案,但找不到任何解决方案。我现在在这里发布这个问题。有没有人遇到过这个问题?我该如何解决?
编辑
通常,来自 Firefox 的弹出窗口询问我是否要保存名为“s”的文件。
该问题并非特定于浏览器。Chrome 也会发生这种情况。
我运行了 Ad-Ware、CCleaner、SpyBot、Emsisoft Anti-Malware、MalwareBytes 和 SUPERAntiSpyware 的最新版本,但没有解决问题。
编辑 2
我遵循了 JdeBP 的建议(通过 DHCP 自动获取 IP 地址)。我还在我的注册表中发现了一个奇怪的条目,我已将其删除。我重新启动了,但问题仍然存在。
当我执行 a 时ipconfig /displaydns,会得到一长串条目,这些条目似乎与我收到的垃圾邮件相对应。他们都将 A(主机)记录设置为127.0.0.1.
当我执行ipconfig /flushdns后跟 时ipconfig /displaydns,条目仍然存在......
当我执行时ipconfig /renew,我得到:No operation can be performed on Local Area Connection while it has its media disconnected。我不太确定这意味着什么。我通过无线(不是以太网电缆)访问 Internet。当我关闭 PC 上的无线时,我收到相同的无线连接消息。
我已经禁用了本地连接并尝试过 …
我正在使用 Vagrant 部署大型虚拟网络环境来测试一些应用程序和网络活动。我使用的是仅主机网络,因此我可以在 Vagrantfile 中定义所有 IP 地址,但我需要用于测试的应用程序之一是无法作为虚拟机运行的外部设备。
因此,我想知道是否可以将传入主机的流量路由至仅主机 LAN。我知道这违背了仅主机网络的理念,但在这种情况下我不能使用桥接网络,因为 Vagrant 无法在桥接来宾接口上设置静态 IP 地址。
我尝试过以下方法:
如果这可能的话,有什么想法吗?
编辑:
可能值得注意的是,我可以从外部设备 ping VirtualBox 主机上仅主机接口(接口 vboxnet0)的 IP 地址。
我无法再访问设置电子邮件转发的帐户。但电子邮件继续发送到我原来的帐户,我找不到办法禁用它。
我有一个带有多个虚拟机(来宾)的 KVM 服务器(主机)。
我的目标是我的主机将端口 222 转发到运行 ssh 服务的来宾的端口 22。
这工作...
iptables -I OUTPUT -d 0.0.0.0/0 -j ACCEPT
iptables -I FORWARD -d 0.0.0.0/0 -j ACCEPT
iptables -I INPUT -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -I PREROUTING -d 0.0.0.0/0 -p tcp --dport 222 -j DNAT --to-destination 10.1.0.9:22
Run Code Online (Sandbox Code Playgroud)
这行不通...
firewall-cmd --permanent --zone=public --direct --add-rule ipv4 filter OUTPUT 0 -d 0.0.0.0/0 -j ACCEPT
firewall-cmd --permanent --zone=public --direct --add-rule ipv4 filter FORWARD 0 -d 0.0.0.0/0 -j ACCEPT
firewall-cmd --permanent --zone=public …Run Code Online (Sandbox Code Playgroud) 我需要为以下场景创建 iptables 规则:
A。目标端口是1234.A(8.2.3.4)将收到的UDP数据重定向到主机B1(7.2.3.1)、B2(22.93.12.3)、... Bn(12.42.1.3);IP 地址仅供参考。B1, B2, ...Bn必须接收所有包。因此,主机A必须复制包。B1, B2, ... Bn)和源IP(主机A)AB1,B2...BnB1, B2, ...Bn不必能够回复我尝试用PREROUTING/解决这个问题mangle:
HOST_A=8.2.3.4
HOST_B1=7.2.3.1
HOST_B2=22.93.12.3
...
HOST_BN=12.42.1.3
iptables -F -t mangle
iptables -t mangle -A PREROUTING -d $HOST_A …Run Code Online (Sandbox Code Playgroud) 如何在 Mac OS X 中启用数据包转发?
Google 为我提供了大量有关 Windows 和 Linux 的提示,但没有为 OS X 提供提示。
forwarding ×10
networking ×3
iptables ×2
linux ×2
attachments ×1
automation ×1
browser ×1
email ×1
firewall ×1
firewalld ×1
gmail ×1
macos ×1
nftables ×1
packet ×1
port ×1
routing ×1
ssh ×1
tcpip ×1
thunderbird ×1
ubuntu ×1
virtualbox ×1
xauth ×1
xorg ×1