|
我配了双网卡eth0,eth1,前者用来接外网,后者用来接内网.
内网外网静态IP都设好了,ping 192.168.0.2可以通,内网没问题,再ping 163.com可以通,外网也没问题.
执行以下语句:
iptables -t nat -A PREROUTING -s 192.168.0.2 -i eth1 -j SNAT --to xxx.xxx.xxx.xxx
iptables enconters an unknown error 18446744073709551615
把eth1换eth0再试:
iptables -t nat -A PREROUTING -s 192.168.0.2 -i eth0 -j SNAT --to xxx.xxx.xxx.xxx
iptables enconters an unknown error 18446744073709551615
这是怎么回事?
我用的64位UBUNTU SERVER,iptables版本1.3.5 |
|