ssh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120" -f -N -L 2525:localhost:25 [email protected]
iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 127.0.0.1:2525
ssh tunnel for smtp
Leave a reply
ssh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120" -f -N -L 2525:localhost:25 [email protected]
iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 127.0.0.1:2525