4 ms·
That's close to what I'm using (I have only one route-script for OpenVPN which is pretty much the same, but handles both up and down commands from VPN client).
by chupasaurus 8y ago
That's close to what I'm using (I have only one route-script for OpenVPN which is pretty much the same, but handles both up and down commands from VPN client). To make DNS work properly, there should be a resolv.conf file in /etc/netns/$netns_name/ (directory has to be created manually).
I should generalize my stuff and push it to Github...
- chupasaurus 8y agoFound a repo [0] with better solution than mine. [0] https://github.com/slingamn/namespaced-openvpn https://github.com/slingamn/namespaced-openvpn