linux认证
请教关于Linux的iptables的nat
关注:40726  答案:1  悬赏:0
  • 已关闭
  • 2017-09-30 08:39
是Linux
是另外一台装有WEB的服务器,
我想访问 的时候
让他nat到 的80上。
以下是我设置的,但是不行。应该怎么设置呀?

root@ubuntu:/home/# iptables -t nat -F
root@ubuntu:/home/# iptables -t nat -X
root@ubuntu:/home/# iptables -t nat -A PREROUTING -i eth0 -d -p tcp --dport 80 -j DNAT --to
root@ubuntu:/home/# iptables -t nat -A POSTROUTING -o eth0 -s -p tcp --sport 80 -j SNAT --to
最佳答案
暂无最佳答案
全部回答
  • 1楼
  • 2017-09-30 08:59
Linux的问题你在这里一般很少能得到解决。。去 试试吧。。。