I'm trying to assign 3 public IP addresses to my WAN interface (eth0.1). What I'm trying to do is route traffic to a OpenWrt for VPN, a web server, and an SFTP server using Port Forwards. I have my Port Forwards set up and if I change the IP of my WAN interface to match the Port Forward, traffic is forwarded to the server with the corresponding private IP address. So, I know my forwards work.
I have tried numerous methods as listed below.
Round 1: (this one works until I reload networking or reboot, then only the first IP address is recognized)
config interface 'wan'
option ifname 'eth0.2'
option proto 'static'
option netmask '255.255.255.248'
option gateway '50.243.171.110'
option dns '8.8.8.8 8.8.4.4'
list ipaddr '50.243.171.109'
list ipaddr '50.243.171.107'
list ipaddr '50.243.171.105'
Round 2: (total failure)
config interface 'wan'
option ifname 'eth0.2'
option proto 'static'
option netmask '255.255.255.248'
option gateway '50.243.171.110'
option dns '8.8.8.8 8.8.4.4'
option ipaddr '50.243.171.109'
config interface 'wan1'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '50.243.171.107'
config interface 'wan2'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '50.243.171.105'
Round 3: (yet another total failure)
config interface 'wan'
option ifname 'eth0.2'
option proto 'static'
option type 'bridge'
option netmask '255.255.255.248'
option gateway '50.243.171.110'
option dns '8.8.8.8 8.8.4.4'
option ipaddr '50.243.171.109'
config interface 'wan1'
option ifname 'eth0.2:1'
option proto 'static'
option ipaddr '50.243.171.107'
config interface 'wan2'
option ifname 'eth0.2:2'
option proto 'static'
option ipaddr '50.243.171.105'
Not sure if I'm missing something. Do I need any additional packages installed to achieve this? Or am I just doing it completely wrong.
Thanks in advance!!