razer0r
Hi,
I have a current server - client setup that is setup as following:
openvpn server:
- openvpn UDP running 10.0.14.1
- openvpn TCP running 10.0.13.1
- A couple of clients connected over UDP with client to client traffic allowed.
- one client (a ddwrt router) connected over TCP due to firewall restrictions. This is local network 192.168.1.x
- one client on the udp is also a ddwrt router and routing 192.168.22.x over the tunnel.
Currently working:
Everything can ping everyone.
for the routers I have added custom ccd configs:
(UDP)
ifconfig-push 10.0.14.100 255.255.255.0
iroute 192.168.22.0 255.255.255.0
(TCP)
ifconfig-push 10.0.13.100 255.255.255.0
iroute 192.168.1.0 255.255.255.0
I also added the config: redirect-gateway def1 on the 192.168.1.x router to redirect all traffic to the vpn server and added the needed iptables to SNAT that traffic to the internet.
//
-A POSTROUTING -o eth0 -j SNAT --to-source <WAN IP>
This added all the routes required to make all the clients connect to one another.
Now I would like to route an external IP from 192.168.1.x over the vpn tunnels to 192.168.22.x and use that wan interface to leave to the internet.
There is no NAT anywhere but the routers.
All traffic is routed and not NAT'ed in any way!
I hope someone can help me with this kind of setup :-).
Rein