Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. ssh -J 22.22.22.22 10.10.10.30
  2.  
  3. sysctl net.ipv4.ip_forward=1
  4. 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
  5.  
  6. ssh -p 2222 22.22.22.22
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement