Tag Info

Hot answers tagged

3

You need to use the OUTPUT chain to redirect an outbound connection to a local port. This rule will work as you need: iptables -t nat -A OUTPUT -p tcp -d 40.40.40.40 --dport 3306 -j REDIRECT --to-port 3306



Only top voted, non community-wiki answers of a minimum length are eligible