Hi,

I am running OpenWRT BB and have been assigned with a trivial task.

I have 2 WAN IPs of the same subnet from ISP. Let's assume they are 111.222.33.44 and 111.222.33.45. Following is the configuration of WAN in /etc/config/network:

config interface 'wan'
        option ifname 'eth1'
        option proto 'static'
        option ipaddr '111.222.33.44'
        option netmask '255.255.255.0'
        option gateway '111.222.33.1'
        option dns '8.8.8.8 8.8.4.4'

I have configured the other IP by adding following command to /etc/rc.local:

ip addr add 111.222.33.45/24 dev eth1

The problem is, I need to do 1:1 NAT for a server in the LAN with the secondary IP on the WAN.

What is the ideal / uci / OpenWRT way of doing it without writing a lot of customised NAT rules?

Thanks and regards,
Nishant
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to