bbrandt1
Posts: 3
Joined: Tue Jun 04, 2013 8:43 pm
Location: Detroit, Michigan, USA

OpenVPN firewall rules in Pidora

Thu Jul 04, 2013 4:38 am

I am running a raspi inside my firewall/router. I opened up the standard VPN port and forwarded it to the raspi. Upon configuring OpenVPN I can connect from the public internet via a OpenVPN client on both my Android and Windows 7 laptop and create a VPN tunnel to the raspi. However I cannot get to the internet from there. Since I am running Pidora it is using firewalld instead of iptables. I cannot find how to configure the routing so that the VPN tunnel can get to the internet from the raspi. There are many examples using iptables but these of course don't work. Any ideas?

ruggerio
Posts: 33
Joined: Tue Jun 11, 2013 11:36 am

Re: OpenVPN firewall rules in Pidora

Thu Jul 04, 2013 5:46 am

Already checked your route on the clients side and on the pi? There should be an entry for the vpn-network as for the default route to the internet.

ruggerio
Posts: 33
Joined: Tue Jun 11, 2013 11:36 am

Re: OpenVPN firewall rules in Pidora

Thu Jul 04, 2013 5:48 am

Ah yes, and of course ip-forwarding should be enabled:

more /proc/sys/net/ipv4/ip_forward

if this is set to 0, there won't be any forwarding, i guess. Set it then with

echo 1 > /proc/sys/nete/ipv4/ip_forward - but this will disappear after reboot and i don't remember for the moment where to set it. Its no long in /etc/sysconfig... in each case.

Cheers

Return to “Pidora / Fedora”