- 论坛徽章:
- 0
|
请教大家下面一个问题:
通过ADSL上网,ADSL内的iptabls nat 表如下:
iptables -t nat -vn -L
Chain PREROUTING (policy ACCEPT 4743 packets, 323K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 108 packets, 7007 bytes)
pkts bytes target prot opt in out source destination
4430 296K MASQUERADE all -- * ppp_0_8_35_1 192.168.1.0/24 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
通过POSTROUTING规则链实现了数据包的转发,但通过的接口是ppp_0_8_35_1,现在想通过一台服务器,例如196.205.203.145来实现nat功能,请问大家如何实现,命令具体是什么?
谢谢! |
|