Support direct socks proxy without ssh
This commit is contained in:
10
README.md
10
README.md
@@ -13,12 +13,12 @@ Create network namespace where all¹ network requests go via ssh connection.
|
||||
1. Create a simple ssh config at `/etc/nnss/<namespace_name>/config`. This will
|
||||
be included with [other settings][0].
|
||||
2. Copy your ssh private key to `/etc/nnss/<namespace_name>/privatekey`
|
||||
3. [Edit][1] your service file to include below properties
|
||||
3. [Edit][1] your application's service file to include below properties
|
||||
|
||||
```systemd
|
||||
[Unit]
|
||||
Requires=nnss-tunsocks@<namespace_name>.service
|
||||
After=nnss-tunsocks@<namespace_name>.service
|
||||
Requires=nnssA@<namespace_name>.service
|
||||
After=nnssA@<namespace_name>.service
|
||||
[Service]
|
||||
NetworkNamespacePath=/run/netns/<namespace_name>ns
|
||||
```
|
||||
@@ -43,8 +43,8 @@ Port 8822 # If the ssh server is not on default port 22
|
||||
❯ sudo systemd-run \
|
||||
--property=NetworkNamespacePath=/run/netns/vps1ns \
|
||||
--property=User=$USER \
|
||||
--property=Requires=nnss-tunsocks@vps1.service \
|
||||
--property=After=nnss-tunsocks@vps1.service \
|
||||
--property=Requires=nnssA@vps1.service \
|
||||
--property=After=nnssA@vps1.service \
|
||||
--shell
|
||||
[sudo] password for balki:
|
||||
Running as unit: run-p233279-i233579.service
|
||||
|
Reference in New Issue
Block a user