iptables的问题

由 pupilzeng 在 05-22-2003 00:14 发表:

iptables的问题

我使用vmware装的是windows98,ip 172.16.12.128,架个ftp

linux主机192.168.0.2

使用一下命令:

ifconfig add 192.168.0.100

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

iptables -t nat -A PREROUTING -d 192.168.0.100 -j DNAT --to 172.16.12.128

iptables -t nat -A POSTROUTING -s 172.16.12.128 -j SNAT --to 192.168.0.100

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