I have an interesting puzzle to solve. I have a small network (10.10.1.0/24) with main router (10.10.1.1) and a server (10.10.1.5, currently QNAP NAS) running a couple of services and OpenVPN 2.4 instance. There is also an extra host (10.10.1.2) running L2TP client as a gateway to remote network 10.10.3.0/24 (static route to .3.0 via .1.2 is configured on .1.1 router). OpenVPN server on .1.5 host is running in TUN mode (10.10.2.0/24, tun0 has 10.10.2.1) and every CN as a static IP assigned in 10.10.2.0/24 using CCD feature. I want to be able to reach any device in any subnet to any subnet. OpenVPN config looks like this:
Code: Select all
dev tun0
server 10.10.2.0 255.255.255.0
;route 10.10.2.0 255.255.255.0
push "route 10.10.1.0 255.255.255.0"
push "route 10.10.2.0 255.255.255.0"
push "route 10.10.3.0 255.255.255.0"
I have tried purging iptables without success.
Code: Select all
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT