Maybe someone can help me solve my problem. I just set up a semi-working OpenVPN-server for my small home network. I can connect but seem to have a problem with the routing.
My setup
- - OpenVPN-server (192.168.0.6)
- Router/gateway (192.168.0.1)
- NAS (192.168.0.5)
On the router/gateway (TP-Link Router) I configured a static route from 10.5.5.0/24 to 192.168.0.6
The Problem is, that after conneting successfully I can ping the VPN-server (192.168.0.6/10.5.5.1) and the router/gateway (192.168.0.1), but not the NAS. Weirdly enough, the NAS can ping my connected VPN-client (10.5.5.6) and the VPN-server (10.5.5.1).
As that the static route seems to work the problem must be the routing on the OpenVPN-server.
Can someone give me a hint how to solve this problem?
The VPN-servers configuration
Code: Select all
mode server
proto udp
dev tun
management 127.0.0.1 44000
ca ./keys/ca.crt
cert ./keys/server.crt
key ./keys/server.key
crl-verify crl.pem
dh ./keys/dh1024.pem
server 10.5.5.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
verb 3
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 192.168.0.6"
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.5.5.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.5.5.0 10.5.5.2 255.255.255.0 UG 0 0 0 tun0
10.5.5.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Thank you and best regards,
Maroder