Advertisement
kheeper

iptables nat

Feb 16th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Chain PREROUTING (policy ACCEPT)
  2. target prot opt source destination
  3. DNAT udp -- anywhere anywhere udp dpt:34001 to:10.0.0.140:34001
  4. DNAT tcp -- anywhere anywhere tcp dpt:34001 to:10.0.0.140:34001
  5. DNAT udp -- anywhere anywhere udp dpt:34000 to:10.0.0.140:34000
  6. DNAT tcp -- anywhere anywhere tcp dpt:34000 to:10.0.0.140:34000
  7. DNAT tcp -- anywhere anywhere tcp dpt:telnet to:10.0.0.138:23
  8.  
  9. Chain POSTROUTING (policy ACCEPT)
  10. target prot opt source destination
  11. MASQUERADE all -- anywhere anywhere
  12.  
  13. Chain OUTPUT (policy ACCEPT)
  14. target prot opt source destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement