iptables -t nat -A OUTPUT -d 10.34.34.165 -p tcp --dport 10002 -j REDIRECT --to-ports 10001
iptables -t nat -A PREROUTING -d 10.34.34.165 -p tcp --dport 10002 -j REDIRECT --to-ports 10001
if you map a port via ssh -L into your localhost then you need to use above in order to reach the port you forwarded via your eth0(real) ip
which means localhost(127.0.0.1):port
Hiç yorum yok:
Yorum Gönder