Quote:
Originally Posted by keith2045
I've been working on this for about a week and cant figure it out. I have openvpn setup on a debian system. I'm able to connect to it and i can ping the internet from the vpn connection, but i cant ping my internal network?!
Here is my setup
Internal network: 192.168.1.0
VPN IP: 10.1.0.0
Server config:
[code]dev tun
server 10.1.0.1 255.255.0.0
push "redirect-gateway def1"
route-up "route add -net 192.168.1.0/24 tun0
push "dhcp-option DNS 192.168.1.1"
[code/]
I have more in the config, but i think that is all that is needed for help. I have ipv4 port forwarding enabled (echo 1 > /proc/s... something i cant remember). But if i enable port forwarding via /etc/sysctl.conf it doesnt work at all but if i enable it the other way it works (that is pinging the internet)??
Any thoughts?
|
You have to have setting for "local" and your local lan has to know how to get back to the 10.1.0.0 net so if your local setting is
local 192.168.1.2
you would need route on your lan
10.1.0.0/24 via 192.168.1.2
you will also need "client-to-client" if you want clients in the 10.1.0.0 net to see each other