aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/vpn
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-10-06 18:35:55 +0200
committerneodarz <neodarz@neodarz.net>2020-10-06 18:35:55 +0200
commit52060dfbdfac04938393b4fdc441415fa08abe6e (patch)
tree59b7f268df58ab3c5dc8c78f61e58f6986213400 /dotfiles/cheat/vpn
parent58e780ddf31d446096066269cdc8de5ccaf495d2 (diff)
downloaddotfiles_dotdrop-52060dfbdfac04938393b4fdc441415fa08abe6e.tar.xz
dotfiles_dotdrop-52060dfbdfac04938393b4fdc441415fa08abe6e.zip
Another little update
Diffstat (limited to '')
-rw-r--r--dotfiles/cheat/vpn19
1 files changed, 14 insertions, 5 deletions
diff --git a/dotfiles/cheat/vpn b/dotfiles/cheat/vpn
index 141e9cd..437c1ca 100644
--- a/dotfiles/cheat/vpn
+++ b/dotfiles/cheat/vpn
@@ -1,7 +1,16 @@
-nmcli device show wlp3s0
+# VPN per namespace (and so per program)
-#Know other ip
-/etc/openvpn/ipp.txt
+https://github.com/slingamn/namespaced-openvpn
-#Server perso
-script is in /root/OpenVPN-install
+```
+# create an openvpn tunnel in a new namespace, named `protected` by default:
+sudo /path/to/namespaced-openvpn --config ./my_openvpn_config_file
+
+# start an unprivileged shell in the new namespace
+# anything started from this shell will use the openvpn tunnel exclusively for connectivity:
+sudo ip netns exec protected sudo -u $USER -i
+```
+
+```
+sudo systemctl start openvpn-client@neodarz-perso.service
+```