1

I have an Ubuntu laptop that has access to the Internet over Wifi (Machine A). I have another Ubuntu machine that doesn't have a Wifi card (Machine B).

I connect machine A to machine B with an ethernet cable. I can access the Internet. But what I want to do is have machine B access the Internet via an SSH tunnel on machine A.

Is it possible to forward any connection via ethernet on machine A through an SSH tunnel?

B -> A -> Internet -> SSH Tunnel (Server)
  • when you want a tunnel, you need two points to connect. A -> Internet does not look like two points. Where the tunnel should lead? – Jakuje Dec 11 '16 at 8:29
  • @Jakuje Oops well spotted. I was meant to put Internet before SSH Tunnel. – BugHunterUK Dec 11 '16 at 9:21
  • One possibility is help.ubuntu.com/community/SSH_VPN the other would be to set up A as a proxy jump and run SOCKS proxy to the server, but still too long to explain here. – Jakuje Dec 11 '16 at 9:32
  • But would this allow me to only send ethernet traffic through the tunnel? I currently do this ssh -D5235 user@server but I want my ethernet traffic to go through a different tunnel/proxy. – BugHunterUK Dec 11 '16 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.