Slowly... but getting there

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
wp.rauchholz
OpenVpn Newbie
Posts: 10
Joined: Tue Jan 23, 2018 1:08 pm

Slowly... but getting there

Post by wp.rauchholz » Mon Feb 12, 2018 7:50 pm

Running a CENTOS 7 server that is a modem/router of the home network. It runs a PPPoE and DDNS client (dynamic IP), LAMP server, etc...
All clients are WIFI connect to the server
The box has two NICs:
* enp3S0 for private network, Network: 10.5.2.0/24
* ppp0 (enp6s0) is the internet access.

I configured the openvpn server and it works fine. I configured a client (CENTOS 7 too) and was able to connect via WAN to the openvpn server.
But from the client I have no access to internet.

Packet forwarding is set: net.ipv4.ip_forward = 1
I added these lines to the server conf file:
push "route 10.5.2.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 10.5.2.1"

I added this to the firewall script:
iptables -A INPUT -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -t nat -A POSTROUTING -o $EXT_DEV -s $INT_NET -j MASQUERADE ($EXT_DEV=ppp0, $INT_NET=10.5.2.0/24)

he VPN submet on tun0 is 10.8.0.0

What am I missing?
Thanks for your help.

Wolfgang

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Slowly... but getting there

Post by novaflash » Tue Feb 27, 2018 11:03 am

Okay, well, that's the open source version of OpenVPN, and not the OpenVPN Access Server product. Try another section of this forum not related to OpenVPN, Inc.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Post Reply