RUT241 NAT 1:1 vpn to lan

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 -j NETMAP --to
iptables -t nat -A postrouting_vpn_rule -s -j NETMAP --to

Router lan ip:
Local subnet:

VPN subnet:

BUT, this doesn’t work with RUT241
Firmware: RUT2M_R_00.07.04.5

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.

Kind Regards,

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.