Hi, On Wed, Dec 20, 2017 at 9:38 PM, Medya <medya...@gmail.com> wrote: > I installed openvpn server at home on centos 7. using digital ocean doc. > > ip route showed my server's network interface is ens32. so I added a rule to > iptables to forward routing to OpenVPN subnet > > iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o ens32 -j MASQUERADE > > I also have google's DNS in my server config. > > push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" > > and I also configured the server to tell the clients to redirect all traffic > through the OpenVPN. > > push "redirect-gateway def1 bypass-dhcp" > > and I am doing this at home internet, so on the router I did port forwarding > on openvpn's port. > > on my android phone, the openvpn client app successfully logs in to the > server and it gets a private ip (10.8.0.6) and it shows a few KB been sent > and received, and it is green and happy ! but it can NOT access internet. > > I have been trying so many different things, I have no idea why it can't > access internet. > > the openvpn server itself I checked by curl google.com that it does have > access to internet.
Is ip_forward enabled? Check # sysctl net.ipv4.ip_forward Also check iptables FORWARD chain is not blocking forwarded packets. Selva ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users