启用 IP 转接

要启用 IP 转接,请使用你所喜欢的编辑器来修改 /etc/sysctl.conf 并设置:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

接著你可以这样检查你的设置:

/sbin/sysctl -p

Translation of revision 4

zh/TipsAndTricks/IPForwarding (last edited 2010-01-18 04:01:29 by TimothyLee)