Hi. Problem NAT 1:1.
I have configured succesfully RUT240 router to NAT 1:1 from vpn(openvpn) to lan with custom firewall rules:
iptables -t nat -A prerouting_vpn_rule -d 220.127.116.11/24 -j NETMAP --to 192.168.20.0/24
iptables -t nat -A postrouting_vpn_rule -s 192.168.20.0/24 -j NETMAP --to 18.104.22.168/24
Router lan ip: 192.168.20.2/24
Local subnet: 192.168.20.0/24
VPN subnet: 22.214.171.124/24
BUT, this doesn’t work with RUT241
Any ideas what has changed?
Not sure about your configurations on both devices, but could you please check from CLI/SSH (username ‘root’) if the iptable NAT rules are matched? You can use the following command to check NAT rules:
iptables -t nat -nvL
Check for differences between your iptable rules on both devices.
This was helpful.
I check differences and found the one:
RUT240 openvpn is named: zone_vpn_prerouting in NAT rules
RUT241 openvpn is named: zone_openvpn_prerouting in NAT rules
So i just modify the RUT241 config and got it work, thank you!
This topic was automatically closed after 15 days. New replies are no longer allowed.