Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh -J 22.22.22.22 10.10.10.30
- sysctl net.ipv4.ip_forward=1
- iptables -t nat -A PREROUTING -d 22.22.22.22 -p tcp -m tcp --dport 2222 -j DNAT --to-destination 10.10.10.30:22
- ssh -p 2222 22.22.22.22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement