Error in openvpn connection (mageia 6 using net_applet)

Error in openvpn connection (mageia 6 using net_applet)

Postby asimov-solensan » Oct 29th, '17, 15:23

Hello,

I need some help here, I have got a server running openvpn and can't connect to my vpn server.

There can't be any problem in the server on the .ovpn file I'm using. I use same server/file in android, windows and used in mageia 5 with network manager. But I got a new laptop, installed mageia 6 and this is the only system where I can't connect.

I'm following this tutorial:
viewtopic.php?f=25&t=12033&p=70313&hilit=openvpn#p70313

But still doesn't work.

I only get this output manually running net_applet.
Code: Select all
Starting VPN connection:                                                                                                                      [  OK  ]
got connection status event: add tun0
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Net/DBus/Binding/Connection.pm line 257.
got connection status event: connection_start tun0
got connection status event: dhcp_request tun0
got connection status event: dhcp_failure tun0
got connection status event: zcip_failure tun0
got connection status event: connection_failure tun0


And my configuation file:
Code: Select all
client
dev tun
proto udp
remote xxxxxxxxx.xxx xxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca /home/asimov/Documentos/openvpn/ca.crt
cert /home/asimov/Documentos/openvpn/bxxxx.crt
key /home/asimov/Documentos/openvpn/bxxxx.key
remote-cert-tls server
cipher AES-256-CBC
tls-auth /home/asimov/Documentos/openvpn/tx.key 1
auth SHA256
#dhcp-option DNS 0.0.0.0
#redirect-gateway def1
comp-lzo
verb 3


Any idea on how to get more information about this problem? I tried installing nm_applet but seems completely different to the version from mageia 5. But if can solve this with net_applet I'm happy with it.

Any idea is welcome.
asimov-solensan
 
Posts: 52
Joined: Sep 15th, '12, 21:43

Re: Error in openvpn connection (mageia 6 using net_applet)

Postby doktor5000 » Oct 29th, '17, 15:51

Please provide the output of the following commands:

Code: Select all
ps -ef | grep -v grep | grep -iE "net|wpa"
rpm -qa|grep dhc


and, as root:
Code: Select all
systemctl status network.service -al -n250


It might also be an idea to run
Code: Select all
journalctl -af

as root and keep that terminal open, and then run net_applet and start your VPN connection to see if there's something useful in the logs.

Also, if you're using the firewall once you configured the VPN connection you may need to simply re-run the firewall configuration again so that interface is included, and some of the essential ports like DHCP are not being blocked.
See http://doc.mageia.org/mcc/6/en/content/ ... ewall.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14537
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Error in openvpn connection (mageia 6 using net_applet)

Postby asimov-solensan » Oct 29th, '17, 16:13

Hello,

Thanks for your answer I will try to provide all the information you ask for.

Code: Select all
[asimov@localhost openvpn]$ ps -ef | grep -v grep | grep -iE "net|wpa"
root        28     2  0 15:04 ?        00:00:00 [netns]
systemd+   923     1  0 15:04 ?        00:00:00 /usr/lib/systemd/systemd-networkd
root      1333     1  0 15:04 ?        00:00:00 /usr/sbin/wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant.conf -D wext
openvpn   1743     1  0 15:04 ?        00:00:00 openvpn --user openvpn --group openvpn --daemon --writepid /var/run/openvpn-lavochkin.pid --config /etc/sysconfig/network-scripts/vpn.d/openvpn/lavochkin.conf --cd /etc/sysconfig/network-scripts/vpn.d/openvpn
asimov    5226  4943  1 15:04 ?        00:00:00 /usr/bin/perl /usr/bin/net_applet
[asimov@localhost openvpn]$


Code: Select all
[asimov@localhost openvpn]$ rpm -qa|grep dhc
dhcp-common-4.3.5-1.mga6
dhcpcd-6.11.5-1.mga6
dhcp-client-4.3.5-1.mga6
dhcpxd-1.0.3-32.mga6
[asimov@localhost openvpn]$


Code: Select all
[asimov@localhost openvpn]$ systemctl status network.service -al -n250
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; generated; vendor preset: enabled)
   Active: active (running) since dom 2017-10-29 15:04:16 CET; 3min 30s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1058 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/network.service
           ├─1261 /sbin/ifplugd -I -b -i enp1s0
           ├─1333 /usr/sbin/wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant.conf -D wext
           ├─1335 /sbin/ifplugd -I -b -i wlp2s0
           ├─1670 dhclient -1 -q -lf /var/lib/dhclient/dhclient--wlp2s0.lease -pf /var/run/dhclient-wlp2s0.pid wlp2s0
           └─1743 openvpn --user openvpn --group openvpn --daemon --writepid /var/run/openvpn-lavochkin.pid --config /etc/sysconfig/network-scripts/vpn.d/open

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
lines


Code: Select all
[asimov@localhost openvpn]$ journalctl -af
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
      Pass -q to turn off this notice.
-- Logs begin at mié 2017-09-27 22:02:20 CEST. --
oct 29 15:05:02 localhost plasmashell[4982]: kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/, tried ("/home/asimov/.local/share", "/var/lib/plasma5-profiles/common/share", "/usr/local/share", "/usr/share")
oct 29 15:05:02 localhost plasmashell[4982]: kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/asimov/.local/share", "/var/lib/plasma5-profiles/common/share", "/usr/local/share", "/usr/share")
oct 29 15:05:02 localhost plasmashell[4982]: ktp-common-internals: Current presence changed
oct 29 15:05:02 localhost plasmashell[4982]: ktp-common-internals: Current presence changed
oct 29 15:05:02 localhost plasmashell[4982]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct 29 15:05:29 localhost kwin_x11[4974]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 11217, resource id: 46138927, major code: 20 (GetProperty), minor code: 0
oct 29 15:05:31 localhost kwin_x11[4974]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 12034, resource id: 46139009, major code: 20 (GetProperty), minor code: 0
oct 29 15:05:36 localhost kwin_x11[4974]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 13465, resource id: 46139162, major code: 20 (GetProperty), minor code: 0
oct 29 15:07:57 localhost plasmashell[4982]: QXcbConnection: XCB error: 2 (BadValue), sequence: 3851, resource id: 48234501, major code: 141 (Unknown), minor code: 3
oct 29 15:08:44 localhost plasmashell[4982]: QXcbConnection: XCB error: 2 (BadValue), sequence: 4476, resource id: 67108880, major code: 141 (Unknown), minor code: 3



I have got the firewall disabled until I sort this out. And if I run net_applet as root the applet doesn't appear in the toolbar, the only option to see the applet is running it as user. The output is the one I posted before.
asimov-solensan
 
Posts: 52
Joined: Sep 15th, '12, 21:43

Re: Error in openvpn connection (mageia 6 using net_applet)

Postby doktor5000 » Oct 30th, '17, 02:00

doktor5000 wrote:It might also be an idea to run
Code: Select all
journalctl -af

as root and keep that terminal open, and then run net_applet and start your VPN connection to see if there's something useful in the logs.


Apart from that, you should probably reboot before another test as your systemd-journald seems to have been reloaded and logs were not flushed, as can be seen from the previous output.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14537
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Error in openvpn connection (mageia 6 using net_applet)

Postby asimov-solensan » Oct 30th, '17, 23:03

Hello,

Thanks again for your time but I replaced networkmanager and worked just fine. I would like to dig the cause but the truth is that don't really like mga_applet. Besides I have set a couple of tools with dispatcher and I'm happy with this.

Right now I would suggest to anyone with the same problem to just use networkmanager. There is a good walkthrough here:
viewtopic.php?f=25&t=5782
asimov-solensan
 
Posts: 52
Joined: Sep 15th, '12, 21:43


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest