rendered paste bodyhierro:~# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 31609 packets, 4175K bytes)
pkts bytes target prot opt in out source destination
13 544 DNAT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5432 to:10.0.1.5:5432
Chain POSTROUTING (policy ACCEPT 161 packets, 10066 bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE 0 -- * * 10.0.1.0/24 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 115 packets, 7939 bytes)
pkts bytes target prot opt in out source destination
hierro:~#
]
hierro:~# iptables -t filter -L -n -v
Chain INPUT (policy ACCEPT 9744 packets, 2363K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
44 1832 ACCEPT tcp -- eth1 eth0 0.0.0.0/0 0.0.0.0/0 tcp dpt:5432 state NEW,RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 9176 packets, 555K bytes)
pkts bytes target prot opt in out source destination
hierro:~#