Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Way to keep the connection stable - OpenVPN #411

Open
velainur opened this issue Jan 14, 2024 · 2 comments
Open

No Way to keep the connection stable - OpenVPN #411

velainur opened this issue Jan 14, 2024 · 2 comments

Comments

@velainur
Copy link

velainur commented Jan 14, 2024

Hi,

The addon is working all nice, but, when the virtual interface is up, then i lose my gateway and the vpn gets broken.

This is the routing table at the very beginning, when the vpn is connected:

RaspberryPi:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.46.56 0.0.0.0 UG 0 0 0 wlan0
192.168.46.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.46.56 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0
0.0.0.0 255.255.255.0 U 0 0 0 tap0

then, some seconds later, i get this and the vpn becomes unuseable:

RaspberryPi:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 255.255.255.255 UH 0 0 0 tap0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tap0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap0
192.168.46.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.46.56 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0
0.0.0.0 255.255.255.0 U 0 0 0 tap0

Any clues? Where these 3 routes came from? (im using route-nopull and route-noexec)
I only want to get the routing table as i get connected, i guess some post-script is stabbing me.
I already checked that, as L2 VPN, there is no DHCP server in the same segment.

This VPN is used with some other clients, with no issue at all. (OpenWRT devices)
I already checked the ovpn log files (server and client) and everything seems working, they said its connected, but, when i lost the gateway inside the Rpi, the vpn becomes unusuable. (for the RPi client)

TIA

Regards,

More info:
vpn manager service version: 7.0.4
RPi3 with Libreelec 20

@Zomboided
Copy link
Owner

Zomboided commented Jan 14, 2024 via email

@velainur
Copy link
Author

Ok, i have done more tests...

If i use the openvpn from the cli (without the addon), i get the same issue.

I tried then to use the same ovpn file in another ubuntu and everything is stable... so i understand there must be a kodi process which breaks me.

Laptop Ubuntu Distro - OpenVPN 2.5.9 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 29 2023
Rpi Kodi distro - OpenVPN 2.5.8 armv7ve-libreelec-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [AEAD] built on Jul 15 2023

i dont think it could be a openvpn version... but... cannot be sure.

Since your addon is no the problem... i cannot ask you more help, with it, but... as a better user of this element... do you think how can i check this?

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants