6
2
In order to connect to corporate network I've got these four files
- ca.crt
- client.ovpn
- client.key
- client.crt
I couldn't create VPN connection via Ubuntu GUI, but I managed to get it work from command line by cd
into folder with these files and sudo openvpn --config client.ovpn
. It connects me to network but I can't access any other host outside the network. After a lot of f googling it seems that because routing of all my traffic (including web-traffic) through the VPN is enabled. On forums people suggest to check the checkbox Use this connection only for resources on its network
in VPN editing window. But since I couldn't create connection via GUI - I don't have it in the list of connections and hence I can't edit it anyhow via GUI. But maybe I can add something into my client.ovpn config file to solve this?
I don't have this line in my client.ovpn, so I tried to run
sudo openvpn --route-noexec --config client.ovpn
andsudo openvpn --route-nopull --config client.ovpn
. After both these commands I couldn't reach nor inner network resources nor outer Internet ones. And moreover now when I runsudo openvpn --config client.ovpn
I can't connect to anything at all. What have I done? – dKab – 2015-05-15T09:22:33.427When you closed or killed the openvpn client it should've restored your default gateway (i.e. it should behave as it did before running the program). Do the following, restart PC and check if you can access the internet etc. There should be no permanent effects if running from command line. – fswings – 2015-05-15T10:03:04.037
You need to check that in between running openvpn, the system restored your original network config. – fswings – 2015-05-15T10:13:18.633
I'm afraid I already tried rebooting and it didn't help. – dKab – 2015-05-15T10:28:05.043
Is the VPN still running? – fswings – 2015-05-15T10:33:23.197
couldn't follow steps shown in Ubuntu Handbook (you can actually see my comment on that matter it's the latest comment so far - Dmitriy May 15, 2015 at 6:34 am )
– dKab – 2015-05-15T10:33:26.640Please post output of
sudo ifconfig
sudo ip route
– fswings – 2015-05-15T10:34:21.060No, it isn't. When I try to connect to it, I loose internet connection. – dKab – 2015-05-15T10:35:12.687
sudo: ipconfig: command not found – dKab – 2015-05-15T10:36:11.447
On Linux it's
sudo ifconfig
and NOT IP – fswings – 2015-05-15T10:37:06.433and output of sudo ip route: default via 192.168.0.1 dev wlan0 proto static 192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.96 metric 9 – dKab – 2015-05-15T10:37:07.093
Let us continue this discussion in chat.
– dKab – 2015-05-15T10:37:49.697It's best to add these details to your question otherwise it makes it tricky to see it in the comments. – fswings – 2015-05-15T10:38:31.693