iptables1.1.2版的NAT设置问题

由 1980882180 在 11-29-2002 11:03 发表:

iptables1.1.2版的NAT设置问题

我的Linux上有1.1.2版的iptabels请问该如何设置NAT转换?


由 lanmaster 在 11-29-2002 11:34 发表:


echo 1>/proc/sys/net/ipv4/ip_forward

modprobe iptable_net

modprobe ip _net_ftp

iptables -t -A POSTROUTING -S 192.168.0.0/24 -j MASQUERADE

sysctl -w net.ipv4.ip_forward=1

你这样试下看能不能实现NAT

<font face="

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus