You are not logged in.
I have problems connecting to VPN from my arch box. I can connect through Windoze to same VPN and the account and setting are just fine.
Everything was well during last few days, I was connecting on everyday basis and the only problem was the fact I can't connect through networkmanager applet.
So I had to connect with
$ sudo openvpn --config foo.ovpn
and had to write little script which automated the process of writing VPN's DNS servers to resolv.conf because it always gets overwritten by networkmanager.
Now it just stopped working suddenly, I did not change anything and that is even more mysterious. After I issue the openvpn command, I get the usual "initialization
sequence completed" and when I check resolv.conf theret are the correct servers, but there is no connection and I cannot ping any internet server.
Before connecting to VPN ("normal" Internet)
[luther@localhost ~]$ ip route
default via 192.168.0.1 dev wls1 proto static
192.168.0.0/24 dev wlp0s29f7u5u4 proto kernel scope link src 192.168.0.20 metric 9
192.168.0.0/24 dev wls1 proto kernel scope link src 192.168.0.17 metric 9
192.168.0.17 via 127.0.0.1 dev lo metric 303
192.168.0.20 via 127.0.0.1 dev lo metric 304
[luther@localhost ~]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 wls1
192.168.0.0 * 255.255.255.0 U 9 0 0 wlp0s29f7u5u4
192.168.0.0 * 255.255.255.0 U 9 0 0 wls1
localhost localhost.local 255.255.255.255 UGH 303 0 0 lo
localhost localhost.local 255.255.255.255 UGH 304 0 0 lo
after connecting to VPN:
Sat Jan 25 00:01:14 2014 OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Nov 13 2013
Enter Auth Username: ********
Enter Auth Password: ****************
Sat Jan 25 00:01:39 2014 UDPv4 link local: [undef]
Sat Jan 25 00:01:39 2014 UDPv4 link remote: [AF_INET]109.201.154.150:1194
Sat Jan 25 00:01:40 2014 [server] Peer Connection Initiated with [AF_INET]109.201.154.150:1194
Sat Jan 25 00:01:42 2014 TUN/TAP device tun0 opened
Sat Jan 25 00:01:42 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Jan 25 00:01:42 2014 /usr/bin/ip link set dev tun0 up mtu 1500
Sat Jan 25 00:01:42 2014 /usr/bin/ip addr add dev tun0 local 10.183.1.6 peer 10.183.1.5
Sat Jan 25 00:01:42 2014 Initialization Sequence Completed
ifconfig is now:
ens5: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:c1:de:ba:ed:73 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 340 (340.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 340 (340.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.183.1.6 netmask 255.255.255.255 destination 10.183.1.5
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 65 bytes 3719 (3.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[luther@localhost ~]$ ip route
0.0.0.0/1 via 10.183.1.5 dev tun0
default via 192.168.0.1 dev wls1 proto static
10.183.1.1 via 10.183.1.5 dev tun0
10.183.1.5 dev tun0 proto kernel scope link src 10.183.1.6
109.201.154.150 via 192.168.0.1 dev wlp0s29f7u5u4
128.0.0.0/1 via 10.183.1.5 dev tun0
192.168.0.0/24 dev wlp0s29f7u5u4 proto kernel scope link src 192.168.0.20 metric 9
192.168.0.0/24 dev wls1 proto kernel scope link src 192.168.0.17 metric 9
192.168.0.17 via 127.0.0.1 dev lo metric 303
192.168.0.20 via 127.0.0.1 dev lo metric 304
[luther@localhost ~]$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.183.1.5 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wls1
10.183.1.1 10.183.1.5 255.255.255.255 UGH 0 0 0 tun0
10.183.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
109.201.154.150 192.168.0.1 255.255.255.255 UGH 0 0 0 wlp0s29f7u5u4
128.0.0.0 10.183.1.5 128.0.0.0 UG 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp0s29f7u5u4
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wls1
192.168.0.17 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
192.168.0.20 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
Hm, what happened? /
Last edited by luther7hrol (2014-01-26 01:35:50)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
Did it, I appologize.
Offline
This is getting really annoying. Sometimes it connects and I can normally surf (now in 10% cases), sometimes it does but I cannot surf. "Resolving host" and cannot ping anything.
The procedure I follow is the same as always:
$ sudo modprobe tun
$ cd /etc/openvpn
$ sudo openvpn --config foo.vpn
( now after I got "Connection Sequence Initialized": )
$ sudo vi /etc/resolv.conf
( now I modify resolv.conf and add my virtual private network's DNS nameservers after which sometimes (now rarely) I can surf and sometimes (more often) I can not )
Simply isn't logic. What am I missing?
<EDIT>
This obviously was a bug. After I reinstalled my system from the scratch and configured for i686 instead of buggy 64-bit, everything works great.
Last edited by luther7hrol (2014-02-02 16:11:11)
Offline