OpenVPN not routing traffic ? Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Dustii

OpenVPN not routing traffic ?

Post by Dustii »

Hi there !

Today I flashed the dietpi software on my raspberry pi sd card, after the initial setup (changing eth0 to a static ip) I installed the openvpn package through the dietpi launcher.

Everything seems to go well, after the reboot the openvpn service is running and I can retrieve the .opvn thanks to FTP.

So I checked out the software page (Openvpn) and I changed the remote line to remote my WAN-IPP 1194

The 3 ports that are named on the software page are opened and pointed towards the pi's ip address.

When I load up the .ovpn on my phone for example it connects without a problem however it doesn't seem that the traffic is being routed through openvpn connection. My phones WAN ip stays the same and I can't ping/access any local shares/websites.

Does someone have an idea what could be wrong ? :D
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: OpenVPN not routing traffic ?

Post by k-plan »

Hello Dustii,
OpenVPN not routing traffic ?
That's correct. Default it is configured as a End-to-End-VPN / Host-to-Host-VPN / Remote-Desktop-VPN.
You are able to manage your DietPi device, but nothing more.

One possible solution is using NAT: http://dietpi.com/phpbb/viewtopic.php?f=9&t=543

If you can read a little bit German: http://dietpi.com/phpbb/viewtopic.php?f=9&t=565

Our you can have a look in DietPi VPN installation code:

https://github.com/Fourdee/DietPi/blob/ ... ware#L6166

and

https://github.com/Fourdee/DietPi/blob/ ... ware#L6240

cu
k-plan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Dustii

Re: OpenVPN not routing traffic ?

Post by Dustii »

k-plan wrote:Hello Dustii,
OpenVPN not routing traffic ?
That's correct. Default it is configured as a End-to-End-VPN / Host-to-Host-VPN / Remote-Desktop-VPN.
You are able to manage your DietPi device, but nothing more.

One possible solution is using NAT: http://dietpi.com/phpbb/viewtopic.php?f=9&t=543

If you can read a little bit German: http://dietpi.com/phpbb/viewtopic.php?f=9&t=565

Our you can have a look in DietPi VPN installation code:

https://github.com/Fourdee/DietPi/blob/ ... ware#L6166

and

https://github.com/Fourdee/DietPi/blob/ ... ware#L6240

cu
k-plan
Thanks for the reply !

This seems kinda complicated hehe, and google translate doesn't work that well on the german part hehe.
Post Reply