Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 1 #!/bin/sh
  2. 2
  3. 3 echo 1 > /proc/sys/net/ipv4/ip_forward
  4. 4
  5. 5 iptables -F
  6. 6 iptables -t nat -F
  7. 7 iptables -X
  8. 8
  9. 9 iptables -t nat -A PREROUTING -p tcp --dport 5900 -j DNAT --to-destination 192.168.0.106:5900
  10. 10 iptables -t nat -A POSTROUTING -p tcp -d 192.168.0.106 --dport 5900 -j SNAT --to-source 192.168.0.107
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement