![]() 0.0 (LAN B) through 172.20.0.0 which is NAT address. So I have to NAT each remote LAN with following address: I want to connect to remote LAN which have same IP address: 192.168. for reaching a server located in siteB at 192.168. ![]() The commands above will translate the whole network portion of the ip address, leaving intact the host portion, so, for eg. Iptables -t nat -I PREROUTING -i VPN00 -s 192.168.2.0/24 -d 192.168.1.0/24 -j NETMAP -to 192.168.0.0/24Įnable the script, save, look if the rules are applied (in case, reboot) iptables -t nat -nvL Try as follows … firstly, remove all virtual server rules, as well as the static routes regarding the remote networks, then add, Scripts/Cron, NAT and Virtual Servers script, these lines
0 Comments
Leave a Reply. |