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!
Access openvpn local lan
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 2
- Joined: Fri Feb 17, 2017 5:40 pm
Re: Access openvpn local lan
Hi, thank you for your answer, i already have ip forwarding enabled.
this is my server.conf
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