Show pagesourceOld revisionsBacklinksBack to top × Table of Contents Using multiple WAN IPs Introduction Goals Command-line instructions 1. Network 2. Firewall Using multiple WAN IPs This article relies on the following: Accessing web interface / command-line interface Managing configs / packages / services / logs Introduction Some users get from their ISP more than one routable public IP address. Assume that the WAN IPs are 100.64.0.2/29, 100.64.0.3/29, etc. Goals Utilize multiple WAN IPs on the same interface. Use a specific WAN IP for a specific LAN host. Command-line instructions 1. Network Create an alias for the WAN interface. uci -q delete network.wan3 uci set network.wan3="interface" uci set network.wan3.proto="static" uci set network.wan3.device="@wan" uci set network.wan3.ipaddr="100.64.0.3/29" uci commit network /etc/init.d/network restart 2. Firewall Configure destination and source NAT firewall rules. uci -q delete firewall.dnat3 uci set firewall.dnat3="redirect" uci set firewall.dnat3.name="DNAT3" uci set firewall.dnat3.src="wan" uci set firewall.dnat3.src_dip="100.64.0.3" uci set firewall.dnat3.dest="lan" uci set firewall.dnat3.dest_ip="192.168.1.3" uci set firewall.dnat3.proto="all" uci set firewall.dnat3.target="DNAT" uci -q delete firewall.snat3 uci set firewall.snat3="nat" uci set firewall.snat3.name="SNAT3" uci set firewall.snat3.src="wan" uci set firewall.snat3.src_ip="192.168.1.3" uci set firewall.snat3.snat_ip="100.64.0.3" uci set firewall.snat3.proto="all" uci set firewall.snat3.target="SNAT" uci commit firewall /etc/init.d/firewall restart This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.OKMore information about cookies Last modified: 2023/05/17 11:57by vgaetera