Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.67 KB

sshuttle.adoc

File metadata and controls

31 lines (22 loc) · 1.67 KB
Didn’t work in Leap15 laptop with zypper install
  • sudo pip install shuttle worked

Can be very cool when trying to access a webpage but need features not available on a system close to the webserver
  • I.e. The IPMI for a system in a private network, but need Java, which isn’t available on a system in the same private network

    • Also, where a desktop isn’t available in the private network and VNC, etc. isn’t working

      • In this case just need a server in the private network that route out and has an SSH server running

CMD: sshuttle -r infra4 -x infra4 0/0 -vv
  • Leverages .ssh/config

  • For -r, grabs USER and HOSTNAME, for -x only grabs HOSTNAME

  • -x is to exlude a server or subnet (w.x.y.z/24)

    • It is used here to work around some kind of timeout issue. It might not be needed.

  • Can add --dns to allow DNS lookups.

    • Aside from that, only TCP traffic will be forwarded. No UDP, no ICMP

Caution
PINGS WON’T WORK TO CHECK THE STATUS OF THE TUNNEL
  • -N figures out which subnets the remote server can forward to

  • -H Tries to do hostname resolution from the remote server and temporarily stores that in the local /etc/hosts

  • Can add IP addresses or hostnames that specifically should be tunneled

    • Can be helpful when the remote server is in a different geo and a CDN network might send local requests to local server, but you wan to make sure your requests get services in the remote geo

CMD: sshuttle -r admin@w.x.y.z:4001 -x w.x.y.z:4001 0/0 -vv
  • When port 4001 is a port forwarded by the remote firewall from 4001 to 22 on the remote server