RUT 901 Firewall - Custom Rules

Hello Community,

I am trying to implement a 1:1 NAT from a VPN-Network to the LAN-Network of the RUT901.

I used the following rules:

iptables -t nat -I PREROUTING -d 172.17.0.99 -j DNAT --to-destination 192.168.12.99
iptables -t nat -I POSTROUTING -s 192.168.12.99 -j SNAT --to-source 172.17.0.99

172.17.0.0/24 is my VPN subnet and 192.168.12.0/24 is my LAN-Network of the RUT901.

It works perfectly.
But I have the problem that I not only need it for .99 but for all of the 255 IP-Adresses in the network.
Unfortunately the Custom Rules field filed only allows about 40 lines of code so it is not possible to insert these rules 255 times.

Is it possible to extend the number of lines of code allowed in the custom rules field, or is it possible to implement a rule to NAT an entire subnet?

Thanks and Best Regards,
Frederic

This topic was automatically closed after 15 days. New replies are no longer allowed.