Skip to content

Commit eafb3d5

Browse files
committed
1 parent 1ae3b56 commit eafb3d5

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Contents/network/vpn.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,57 @@ tags:
88

99
# VPN
1010

11+
## SSH
12+
13+
### HTTP/S proxy over SSH
14+
15+
* Install squid on the server
16+
17+
```bash
18+
sudo pacman -S squid
19+
sudo systemctl enable squid
20+
sudo systemctl start squid
21+
sudo nano /etc/squid/squid.conf
22+
http_port 3128
23+
```
24+
25+
* Configure the client
26+
27+
```bash
28+
sudo nano /etc/systemd/system/sshtunnel.service
29+
30+
[Unit]
31+
Description=SSH Tunnels
32+
After=network.target
33+
34+
[Service]
35+
User=mlibre
36+
Restart=always
37+
RestartSec=20
38+
ExecStart=ssh -L 0.0.0.0:1234:localhost:3128 -N amita@95.216.208.60 -p 8756
39+
40+
[Install]
41+
WantedBy=graphical.target
42+
```
43+
44+
### Socks proxy over SSH
45+
46+
```bash
47+
sudo nano /etc/systemd/system/sshtunnelsocks.service
48+
[Unit]
49+
Description=SSH Tunnels
50+
After=network.target
51+
52+
[Service]
53+
User=mlibre
54+
Restart=always
55+
RestartSec=20
56+
ExecStart=ssh -D 3080 -C -N amita@95.216.208.60 -p 8756
57+
58+
[Install]
59+
WantedBy=graphical.target
60+
```
61+
1162
## VPN over SSH
1263

1364
```bash

0 commit comments

Comments
 (0)