initial commit
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
# Network Namespace setup using SSH SOCKS proxy
|
||||
|
||||
## Creating new namespace
|
||||
|
||||
```bash
|
||||
❯ sudo mkdir /etc/nnss/vps1
|
||||
|
||||
❯ sudo tee /etc/nnss/vps1/config > /dev/null
|
||||
Hostname xx.xx.xx.xx
|
||||
User vps_user_name_here
|
||||
Port 8822 # If the ssh server is not on default port 22
|
||||
|
||||
❯ cp ~/.ssh/id_ed25519_for_vps1 /etc/nnss/vps1/privatekey
|
||||
```
|
||||
|
||||
|
||||
## Entering namespace
|
||||
|
||||
```bash
|
||||
❯ sudo systemd-run --property=NetworkNamespacePath=/run/netns/vps1ns --property=User=$USER --shell
|
||||
```
|
Reference in New Issue
Block a user