Questions tagged [tunnel]

144 questions
166
votes
8 answers

How do I SSH to machine A via B in one command?

I want to access a computer, say machine A which is based in my university's network. However, this computer is only accessible via the internal network of the university, so I can not use SSH to this computer from home directly. Here's what I do…
nikosdi
  • 1,852
90
votes
1 answer

How do I tunnel and browse the server webpage on my laptop?

I run a web app in one of my lab servers, and I have already setup X11 Forwarding on those machines. Other lab members can tunnel through SSH, and browse that web app on their local browser at home. I can't. Last time I checked with them, there is…
CppLearner
  • 1,307
82
votes
6 answers

How can I make VirtualBox guests share the host's VPN connection?

Question When I start my VPN on my ubuntu desktop computer which acts as a router, the attached subnet loses internet connectivity, but is still accessible (LAN). Ideally, I would like to know how to enable the attached subnet to re-gain internet…
Programster
  • 6,039
70
votes
2 answers

Reverse port tunnelling

I need to show somebody a website running on my local machine tomorrow. Normally I'd accomplish this by port forwarding on my local router but thanks to failing hardware and its replacement being awful, my current router doesn't let me do port…
Oli
  • 299,380
27
votes
3 answers

How do I route my internet through a SSH tunnel?

Old Q How do I setup an OpenVPN server without root privileges? Is there a way to setup an OpenVPN server without root privileges? E.g. with configuration files in my home directory? If yes, how do I set it up? I'm trying to SSH into a system and…
Oxwivi
  • 18,499
16
votes
5 answers

Use Remmina 1.2.0 with SSH tunneling

I'm using SSH tunnel and remmina client to connect to the remote machine. First I open the tunnel in my terminal: ssh -L 3309::3389 user@ And then I just connect via remmina to localhost:3309 port with user name and…
Pavel K
  • 263
14
votes
1 answer

How to prevent autossh from becoming stuck once in a while?

I am using autossh to build a reverse ssh tunnel but from time to time the tunnel stops working and I need to kill autossh and start it again. /etc/cron.d/autossh @reboot autossh -f -nNT -R 3269:intranet.example.com:3269 public.example.com…
sorin
  • 10,135
13
votes
6 answers

SSH tunnel logging?

I have a computer running SSH that I would like to give my friends access to, but I do not want them to use my internet connection through SSH tunnelling (although I'd like to do so myself). Is there a way to have a log of when SSH tunnels are…
Freyja
  • 4,291
10
votes
3 answers

ipv6 tunnel in Ubuntu 17.10?

I used to be able to do the configuration below with no issues in /etc/network/interfaces but now it's not picked up anymore. How do I configure a ipv6 tunnel now? I see see the new netplan software to configure interfaces but I can't seem to find…
Tek
  • 348
10
votes
1 answer

How to set up ssh connection (acessible over internet, not LAN) using MTS MBLaze modem?

I have a MTS MBlaze USB dongle, with which I can connect to the internet. The question is, how do I set up a ssh connection accessible over the internet so that any one can connect to my PC through that (using valid username/password provided by me…
TCSGrad
  • 223
9
votes
1 answer

How may I do a SSH tunneling?

After reading an article about how cool can SSH be, I tried the solution given there about tunneling your connection. This is the very first time I try this. I've opened a terminal and typed: ssh -D 9999 -C myUsername@localhost And I've got this…
Rosamunda
  • 831
9
votes
4 answers

How can I autostart a SSH -D tunnel at login for a SOCKS proxy?

I know that if I want to start an SSH tunnel ssh -d 9000 user@userserver This is one solution for a dynamic tunnel to be opened on port 9000 for a user named "user" on the host "userserver" However, how can I automate this process in Ubuntu so…
8
votes
2 answers

How to share WiFi/hotspot over SSH tunnel

I have created a SSH tunnel on my laptop connected to LAN. I want to share the internet via WiFi/hotspot, but over the SSH tunnel. I mean any computer using this wireless should connect to the internet via the SSH tunnel (automatically without…
Googlebot
  • 1,867
6
votes
1 answer

Can I use manual socks proxy for only specific sites?

I am using socks proxy with chrome. With dconf editor, I can add ignore-host so that browser connect this hosts without proxy. Now I want to do opposite of this. I mean I want to specify hosts so that browser connect only these hosts by proxy. Is it…
ibrahim
  • 337
6
votes
2 answers

Proxy tunneling failed: Proxy Authentication RequiredUnable to establish SSL connection

$ wget https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/master/KeystoneScripts/keystone_basic.sh --2014-03-05 12:55:27-- …
1
2 3
9 10