Skip to content

Instantly share code, notes, and snippets.

@ng
Created October 29, 2013 20:00
Show Gist options
  • Save ng/7221538 to your computer and use it in GitHub Desktop.
Save ng/7221538 to your computer and use it in GitHub Desktop.
[root@adtrap ~]# iptables -t nat -nL
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 3128
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8176 to:192.168.211.7
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1723 to:192.168.211.200
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:47 to:192.168.211.200
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:51413 to:192.168.211.7
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5006 to:192.168.211.200
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5000 to:192.168.211.200
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0
[root@adtrap ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment