![]() ![]() Anyway, I made an exception for this time, ![]() Well, that's just my point of view on it. You're screwed, and you find yourself with the same problem to solve all So the add-on may let you down on a regular basis, and it's a little bit scary.įurthermore, if the add-on is not maintained thoroughly by its author, Like me, you probably noticed that there's a new Firefox version every two months. Simply because the add-on canīreak at any Firefox/Thunderbird update. I'm not a big fan of the add-on solution. It's named "Environment Proxy", and there's So I kept on googling around, and it just happens that someone wrote anĪdd-on for Firefox to fix that. Attempt 2: environment variables & add-ons If you like to read, there's a good discussion about that on the Ubuntu forums:Ĭonfiguring Firefox to use a proxy from the command line Only live in the shell where they're defined, and its sub-processes),Īnd Firefox should pick up these values and use it.īut somehow, it just doesn't work, Firefox ignores all the stuff we defined in the environment. Then, you launch Firefox from the same shell (since environment variables Then you pray that your favorite application picks up one of these and honor it.Įxport all_proxy = socks : // localhost : 5222 export http_proxy =$ all_proxy export https_proxy =$ all_proxy export ftp_proxy =$ all_proxy export rsync_proxy =$ all_proxy export ALL_PROXY =$ all_proxy export HTTP_PROXY =$ all_proxy export HTTPS_PROXY =$ all_proxy export FTP_PROXY =$ all_proxy export RSYNC_PROXY =$ all_proxy ![]() You can see that the guys define plenty of variables, just to be sure. It seems that there is no consensus about that. So the idea is to declare the proxy in the environment, but what variables should we use? For example, Firefox can be configured to Ok, so after browsing the web, I found what seems to be the perfect solution:ĭeclaring the proxy settings in environment variables, and letting applications Settings system wide, so that applications can automatically know it,Īnd use the proxy to go on the WAN. Somehow, I would like to declare my proxy Enabling the proxy after that is quite useless,ĭoing things manually is always error prone, but you already knows that if you're It does is to send my password out on the LAN before I have time toĬhange the proxy settings. If I do it the other order, when I launch Thunderbird, the first thing The key is to enable the proxy before connecting to the WLAN! But, how tedious is that!įurthermore, if I do that manually, I must be careful to do things in the right order: Of course, I can change the settings of both apps each time I'm out,Īnd change it back when I'm home. A one-line shell command would be sweet.īasically, there are only two applications that should use the proxy:įirefox for web browsing, and Thunderbird for emails. I don't need to go through a proxy when I'm home, but as soon as I'm out, Now that things work, what I want is a convenient way to use it. Up on your VPS, where the SSH daemon forwards it to the web. Now Firefox sends its traffic to localhost:5222, which is theĮntrance of the SSH encrypted tunnel. Set the right port ( 5222 in this example)Īnd that's all.Fill the field SOCKS Host with localhost.Go to Preferences > Advanced > Network > Settings.In order to test that, you must configure your web browser to use a proxy. SSH Tunneling - Poor Techie's VPN Testing with Firefox If you want to know more, I recommend this Linux Journal article: This simple command opens a tunnel to vps, aka the host where a friendly SSH server We use the port 5222 in this example, but you can use whatever port you want.-D port Specifies a local "dynamic" application-level port forwarding.This is useful for just forwarding ports. Ssh - N - D 5222 user quote the SSH manual page: SSH tunnelingĬreating a tunnel to your remote server is achieved with only one line: One last word, this post provides specific solutions forĪs they're my favorite apps to surf the web. SSH is already there, and it's fit for the job: SSH server can actĪnd it's so simple you won't believe it. Too much stuff and add plenty of doors to my server. I'm not a skilled sysadmin, so I don't want to install Out there, and of course I already have the Notice that I have nothing against OpenVPN, but it just happens that What kind of trick could be done to improve the security. I don't trust these access-points so much, and I've been wondering Various places, like coffees, hotels, swimming-pools (yes :)), I use to go around with my laptop on my back, and I connect to the net from I'm a kind of "digital nomad" (yeah I just like the expression :)). How to setup a dynamic SSH tunnel (also called SOCKS proxy server)Īnd use it daily with Firefox and Thunderbird. Secure Web Access Through SSH Tunnel (SOCKS Proxy Server) Mon 07 December 2015
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |