File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# VPN
10
10
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
+
11
62
## VPN over SSH
12
63
13
64
``` bash
You can’t perform that action at this time.
0 commit comments