Diet PI openvpn (surfshark)

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
jhmc93
Posts: 12
Joined: Mon Jul 05, 2021 2:59 am

Diet PI openvpn (surfshark)

Post by jhmc93 »

Every time i connect to an open VPN server it connects but i lose internet connection, i only have local connection, anyone got a simple fix for this?
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Diet PI openvpn (surfshark)

Post by trendy »

What is the output of:

Code: Select all

ip -4 addr; ip -4 ro list table all; ip -4 ru
before and after connecting to the VPN?
jhmc93
Posts: 12
Joined: Mon Jul 05, 2021 2:59 am

Re: Diet PI openvpn (surfshark)

Post by jhmc93 »

Connected:
BB81FFA8-BD47-4868-9C55-56BDDAEE22CC.png
Disconnected:
F70FFA34-0930-4768-995D-6DE9B68DEC2C.png
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Diet PI openvpn (surfshark)

Post by Joulinar »

First, pls try to avoid creating screen prints. You should be able to copy the content from SSH client and copy it into a code tag inside the forum. This way it is much easier to read.

Back to your issue. You have 2 VPN interfaces while connected. Do you run an additional VPN server next to surfshark?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jhmc93
Posts: 12
Joined: Mon Jul 05, 2021 2:59 am

Re: Diet PI openvpn (surfshark)

Post by jhmc93 »

No
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Diet PI openvpn (surfshark)

Post by Joulinar »

Well you have 2 times tun interfaces, indicating 2 different VPN being active

Let's have a look for open ports

Code: Select all

ss -tulpn
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Diet PI openvpn (surfshark)

Post by trendy »

Tun0 is definitely a vpn server. However this should not be an issue in this case. There is a default route installed by the script, so routing looks good. Next thing is to verify that forwarding is allowed. cat /proc/sys/net/ipv4/ip_forward
Also verify if there are any firewall rules blocking the traffic: iptables-save -c
Finally run some troubleshooting commands: ping -c2 one.one.one.one; ping -c2 1.1.1.1
jhmc93
Posts: 12
Joined: Mon Jul 05, 2021 2:59 am

Re: Diet PI openvpn (surfshark)

Post by jhmc93 »

Joulinar wrote: Wed Jul 07, 2021 1:16 am Well you have 2 times tun interfaces, indicating 2 different VPN being active

Let's have a look for open ports

Code: Select all

ss -tulpn
attached the result
Attachments
Screenshot_2.png
Screenshot_2.png (11.28 KiB) Viewed 87 times
Post Reply