Advertisement
Guest User

Untitled

a guest
Jul 30th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. iptables -I FORWARD -p tcp -d 192.168.178.12 --dport 3306 -j ACCEPT
  2. iptables -t nat -A PREROUTING -i lo -p tcp --dport 3306 -j DNAT --to-destination 192.168.78.12:3306
  3. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  4.  
  5.  
  6. iptables -L
  7. Chain INPUT (policy ACCEPT)
  8. target prot opt source destination
  9.  
  10. Chain FORWARD (policy ACCEPT)
  11. target prot opt source destination
  12. ACCEPT tcp -- anywhere 192.168.178.12 tcp dpt:mysql
  13.  
  14. Chain OUTPUT (policy ACCEPT)
  15. target prot opt source destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement