小编vik*_*cks的帖子

如何在两个接口之间转发数据包?

我的笔记本电脑(使用 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)

networking linux routing forwarding

7
推荐指数
1
解决办法
5万
查看次数

为什么用户级线程比内核级线程快?

我发现用户级线程比内核级线程快很多,但我找不到任何令人信服的例子来说明为什么用户级线程比内核级线程快?有人可以向我解释一下。

内核级线程速度慢且效率低下。例如,线程操作比用户级线程慢数百倍。

取自这里

kernel threads

6
推荐指数
1
解决办法
5476
查看次数

iptables 给我错误“无法初始化 iptables NAT”

我正在尝试使用iptables它给我以下错误

root@vikkyhacks:~# iptables -t NAT -L
iptables v1.4.18: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Run Code Online (Sandbox Code Playgroud)

我该如何解决 ?我正在Ubuntu 13.10

root@vikkyhacks:~# uname -a
Linux vikkyhacks 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

linux nat iptables

4
推荐指数
1
解决办法
6886
查看次数

标签 统计

linux ×2

forwarding ×1

iptables ×1

kernel ×1

nat ×1

networking ×1

routing ×1

threads ×1