I have the following setup:
OpenVPN Server (192.168.15.95) with DynDNS Account.
OpenVPN Client (10.8.0.6) on a Linksys dd-wrt router (192.168.17.98) which connects to OpenVPN Server.
Laptop (192.168.17.1) and IP-Cam (192.168.17.120) behind Linksys router.
Or in a graph:
Code: Select all
Server LAN OpenVPN Server OpenVPN Client Client LAN
192.168.15.0/24--192.168.15.95 & 10.8.0.1 =====10.8.0.6 & 192.168.17.98--192.168.17.0/24
192.168.17.1 --> 192.168.15.95: YES
But the other way around does not work. I can not reach the laptop or webcam from the server. I checked back routes and other stuff but I can't figure it out. Does I need something like NAT?
My config:
OpenVPN Server:
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.15.0 255.255.255.0"
keepalive 10 120
comp-lzo
max-clients 10
persist-key
persist-tun
management localhost 7705
Code: Select all
client
dev tun
proto udp
remote xxx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /tmp/openvpncl/ca.crt
cert /tmp/openvpncl/client.crt
key /tmp/openvpncl/client.key
comp-lzo
10.8.0.0/24 -> 192.168.15.95
After adding the following iptables rules I am now at least able to ping the tun0 IP-address of the linksys router but still not the laptop behind it.
Code: Select all
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I INPUT -i tun0 -j ACCEPT
Frank