nix:proxy
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
nix:proxy [2016/06/03 11:52] – kauffman | nix:proxy [2021/01/14 14:10] – kauffman | ||
---|---|---|---|
Line 13: | Line 13: | ||
Read up on SOCKS proxies here: https:// | Read up on SOCKS proxies here: https:// | ||
- | Where the port number is set to ' | + | Where the port number is set to ' |
Now we can create a SOCKS proxy without a password: | Now we can create a SOCKS proxy without a password: | ||
Line 32: | Line 32: | ||
</ | </ | ||
+ | Any tool that respects this environment variable will tunnel its traffic through the proxy we just setup. | ||
< | < | ||
user@computer: | user@computer: | ||
Line 43: | Line 44: | ||
Checking out files: 100% (1456/ | Checking out files: 100% (1456/ | ||
</ | </ | ||
- | |||
==== Automatically setup a SOCKS proxy ==== | ==== Automatically setup a SOCKS proxy ==== | ||
Now to make it automatic on login. | Now to make it automatic on login. | ||
Line 63: | Line 63: | ||
Add the following to your '' | Add the following to your '' | ||
- | | + | |
- | | + | |
< | < | ||
Line 73: | Line 73: | ||
</ | </ | ||
+ | |||
+ | ===== HTTP(S)===== | ||
+ | You can also use our HTTP proxy server. | ||
+ | |||
+ | ==== Setup ==== | ||
+ | In the shell type the following: | ||
+ | < | ||
+ | export http_proxy=http:// | ||
+ | export https_proxy=https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== SSH Port Forwarding ===== | ||
+ | This has many uses, but one use case we see a lot is to proxy a database connection. | ||
+ | |||
+ | You can also do some port forwarding magic with ssh. This is known to work on macOS and Linux based OS's. | ||
+ | |||
+ | The following command will open an ssh session to one of the linux machines. Once you've signed in, you can minimize this terminal window. Port 5432 on your local machine has been forwarded through the SSH connection to port 5432 on $dbserver. | ||
+ | |||
+ | < | ||
+ | user@mymachine: | ||
+ | </ | ||
+ | |||
+ | Now by connecting to localhost: | ||
+ | |||
+ | < | ||
+ | user@mymachine: | ||
+ | </ | ||
+ | |||
+ | ====== SSHFS ====== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | This tutorial assumes mac or linux. See the community tutorial if you wish to use windows. | ||
+ | |||
+ | ==== Install SSHFS ==== | ||
+ | Debian/ | ||
+ | < | ||
+ | apt-get install sshfs | ||
+ | </ | ||
+ | |||
+ | MacOS: | ||
+ | Download and install both packages from this site: https:// | ||
+ | |||
+ | ==== Create Local directory ==== | ||
+ | Create a directory on your local machine to which you wish to mount your CS home directory to. | ||
+ | < | ||
+ | mkdir $HOME/ | ||
+ | </ | ||
+ | |||
+ | ==== Mount ==== | ||
+ | < | ||
+ | sshfs -o idmap=user, | ||
+ | </ | ||
/var/lib/dokuwiki/data/pages/nix/proxy.txt · Last modified: 2021/01/19 09:52 by kauffman