lasnie
October 12, 2023, 11:36am
1
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 150.200.99.0/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 150.200.99.0/24
Router lan ip: 192.168.20.2/24
Local subnet: 192.168.20.0/24
VPN subnet: 150.200.99.0/24
BUT, this doesn’t work with RUT241
Firmware: RUT2M_R_00.07.04.5
Any ideas what has changed?
Hello,
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,
lasnie
October 13, 2023, 9:33am
4
Hi.
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!
system
Closed
October 27, 2023, 11:36am
5
This topic was automatically closed after 15 days. New replies are no longer allowed.