Добрый день!
Нужно подменять source у пакетов генерируемых локальным приложением. Все таблицы ACCEPT, nat сейчас такой:
Chain PREROUTING (policy ACCEPT 13230 packets, 869K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 2206 packets, 130K bytes)
pkts bytes target prot opt in out source destination
0 0 SNAT all -- * eth0 0.0.0.0/0 0.0.0.0/0 to:192.168.110.159
Chain OUTPUT (policy ACCEPT 2572 packets, 152K bytes)
pkts bytes target prot opt in out source destination
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 0a:c3:4a:44:3e:bb brd ff:ff:ff:ff:ff:ff
inet 192.168.216.246/30 brd 192.168.106.247 scope global eth0
inet 192.168.110.159/32 scope global eth0
inet6 fe80::8c3:4aff:fe44:3ebb/64 scope link
valid_lft forever preferred_lft forever
Пакетики не тикают. nat не отрабатывает.
13:17:00.762657 IP 192.168.197.16.41887 > 192.168.216.246.sip: S 1420687104:1420687104(0) win 29200 <mss 1460,sackOK,timestamp 153693613 0,nop,wscale 7>
13:17:00.762837 IP 192.168.216.246.sip > 192.168.197.16.41887: S 586147860:586147860(0) ack 1420687105 win 5792 <mss 1460,sackOK,timestamp 3728277676 153693613,nop,wscale 7>
13:17:00.762881 IP 192.168.197.16.41887 > 192.168.216.246.sip: R 1420687105:1420687105(0) win 0