Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -t nat -A PREROUTING -p tcp --dport 3306 -j DNAT --to-destination 2.2.2.2:3306
- iptables -t nat -A POSTROUTING -p tcp -d 2.2.2.2 --dport 3306 -j SNAT --to-source 1.1.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement