Guest User

Untitled

a guest
Oct 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. WAN: 172.16.5.0/24
  2. LAN: 192.168.1.0/24
  3. router0: 192.168.1.1, [Internet], default gw [Internet]
  4. router1: 192.168.1.3(eth2), 172.16.5.6(eth0), default gw 172.16.5.254
  5.  
  6. iptables -t nat -A PREROUTING -p tcp --dport 999 -i eth2 -j DNAT --to-destination 10.1.2.3:22:22
  7. iptables -t nat -A POSTROUTING -p tcp -s 10.1.2.3:22 -j SNAT --to-source 192.168.1.3:999
Add Comment
Please, Sign In to add comment