Hello all,
I was hoping someone here could help me as I have been struggling for days. I am trying to route through VPN to my LAN from my Android phone. I have OPENVPN for Android installed on my phone and have managed to connect to the VPN itself. The problem arises when I try to move to other IPs on the LAN. I have tried pushing routes to the client specifically as well as redirecting everything through the VPN with no success.
My server.conf file looks like this:
local 192.0.0.203
port 50302
proto udp
dev tun
ca ca.crt
cert cloud.crt
key cloud.key
dh dh1024.pem
server 10.8.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
My Ip Routes looks like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.0.0.1 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.0.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.0.0.0 * 255.255.0.0 U 0 0 0 eth0
And my iptables looks like this:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Also I have IPV4 forwarding enabled in sysctl.conf.
Please if anyone can help I would be so so greatful for this headache of 5 days to be done with today. I have scoured the net and nothing I find is helpful to me.