I wanted to my vpn clients to see all subnets. Whatever i tried nothing helped.THis is part of my iptables
-A POSTROUTING -o eth0 -s 192.168.230.0/20 -d 192.168.20.0/24 -j MASQUERADE -A POSTROUTING -o eth0 -s 192.168.250.0/20 -d 192.168.21.0/24 -j MASQUERADE -A POSTROUTING -o tun0 -s 192.168.10.0/24 -d 192.168.240.0/20 -j MASQUERADE -A POSTROUTING --source 192.168.10/24 --out-interface tun0 -j MASQUERADE -A POSTROUTING --source 192.168.11.0/24 --out-interface tun0 -j MASQUERADE -A POSTROUTING --source 192.168.50.0/24 --out-interface tun0 -j MASQUERADE
So now is clear example. I am in VPN and ip which i get is from .250 network and I cant reach to .50 network. So this is a just a few my subnets, i have it more, but thats not the point. Can I just put something to get through all my tun0 interface on vpn server?
So, vpn clients must see each other through vpn server. Its to hard to write all subnets. I tried to put 192.168.0.0/16 but nothing helped there...
This post has been edited by mercy_angel: 13 December 2016 - 04:13 PM

New Topic/Question


MultiQuote



|