netserv:~# ip r 10.0.0.1 dev ppp0 proto kernel scope link src 86.122.54.49 89.34.148.32/28 dev eth1 proto kernel scope link src 89.34.148.36 10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.211 default via 10.0.0.1 dev ppp0 netserv:~# ip ru 0: from all lookup local 32766: from all lookup main 32767: from all lookup default netserv:~# iptables -nvL Chain INPUT (policy ACCEPT 43220 packets, 4574K bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 45264 packets, 20M bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 44259 packets, 5826K bytes) pkts bytes target prot opt in out source destination Chain SASACCT (0 references) pkts bytes target prot opt in out source destination netserv:~# iptables -t nat -nvL Chain PREROUTING (policy ACCEPT 742K packets, 204M bytes) pkts bytes target prot opt in out source destination 0 0 DNAT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6699 to:10.0.0.15:6699 0 0 DNAT tcp -- ppp0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6699 to:10.0.0.15:6699 75 3060 DNAT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6789 to:10.0.0.15:6789 0 0 DNAT tcp -- ppp0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6789 to:10.0.0.15:6789 Chain POSTROUTING (policy ACCEPT 213 packets, 44525 bytes) pkts bytes target prot opt in out source destination 2503 185K SNAT all -- * ppp0 10.0.0.0/24 0.0.0.0/0 to:86.122.54.49 Chain OUTPUT (policy ACCEPT 213 packets, 44525 bytes) pkts bytes target prot opt in out source destination netserv:~# iptables -t mangle -nvL Chain PREROUTING (policy ACCEPT 2218K packets, 845M bytes) pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 47213 packets, 4940K bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 512K packets, 327M bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 49634 packets, 6338K bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 562K packets, 333M bytes) pkts bytes target prot opt in out source destination netserv:~# ip a 1: lo: mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: dummy0: mtu 1500 qdisc noop link/ether 4a:41:54:26:82:27 brd ff:ff:ff:ff:ff:ff 3: teql0: mtu 1500 qdisc noop qlen 100 link/void 4: eth0: mtu 1500 qdisc htb qlen 1000 link/ether 00:30:05:09:74:15 brd ff:ff:ff:ff:ff:ff inet 10.0.0.211/24 brd 10.0.0.255 scope global eth0 inet6 fe80::230:5ff:fe09:7415/64 scope link tentative valid_lft forever preferred_lft forever 5: eth1: mtu 1500 qdisc htb qlen 1000 link/ether 00:40:f4:cc:e3:bb brd ff:ff:ff:ff:ff:ff inet 89.34.148.36/28 brd 89.34.148.47 scope global eth1 inet6 fe80::240:f4ff:fecc:e3bb/64 scope link valid_lft forever preferred_lft forever 6: sit0: mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 7: eth2: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:00:e8:e0:58:a7 brd ff:ff:ff:ff:ff:ff inet6 2002:567b:94e3:4:200:e8ff:fee0:58a7/64 scope global dynamic valid_lft 172653sec preferred_lft 1653sec inet6 fe80::200:e8ff:fee0:58a7/64 scope link valid_lft forever preferred_lft forever 45: ppp0: mtu 1492 qdisc pfifo_fast qlen 3 link/ppp inet 86.122.54.49 peer 10.0.0.1/32 scope global ppp0