Page 1 of 1

Access openvpn local lan

Posted: Fri Feb 17, 2017 5:45 pm
by fdoo142
Hello,
I have an OpenVpn server setup on a rasperry and a debian client connecting to it. Everything works flawlessy, but i can't access the local lan of the server.

The server has a local ip 192.168.1.72 and 255.255.255.0. The ip it gives to the clients are 10.8.0.0. From the client i can connect to it and I can access for example a transmission daemon through 10.8.0.1:9091 but not through 192.168.1.72:9091.
I tried different push route on server side, and also by disabling firewall on both machines but it doesn't work.

Do you have any suggestions? Thank you!

Re: Access openvpn local lan

Posted: Fri Feb 17, 2017 5:56 pm
by TinCanTech

Re: Access openvpn local lan

Posted: Fri Feb 17, 2017 6:06 pm
by fdoo142
Hi, thank you for your answer, i already have ip forwarding enabled.
this is my server.conf

Code: Select all

port 1194

proto udp

dev tun

ca ca.crt
cert server.crt
key server.key  # This file should be kept secret

dh dh2048.pem

server 10.8.0.0 255.255.255.0

ifconfig-pool-persist ipp.txt

push "route 10.8.0.1 255.255.255.0"
push "route 10.8.0.0 255.255.255.0"

client-to-client

push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

keepalive 10 120

comp-lzo

user nobody
group nogroup

persist-key
persist-tun

status openvpn-status.log

verb 3