Multiple public IP's for servers. GL-BE9300

At the moment I have a Netgear R7000 running Fresh Tomato and have 5 public address using VLANS.At the moment I have vlan2:1 which is the main public ip, then vlan2:2 which is my mailserver on it’s own public ip and the others vlan:2.3/4/5 are setup but not yet in use. At the moment they are setup in scripts. WANUP which sets the vlans and the firewall script which handles the pre and post routing and the forwarding of ports to my mail server internal ip.

I know I would need to set this up in luci, or by ssh if it can be done at all. If so how would I achieve it?

You will need to add one device per VLAN using Luci and then one interface for each device.

I have two VLANs for m service: Internet and IPTV and everything was done in Luci.

Hi

Based on your description, it seems you only need to configure VLAN 2 to communicate with the ISP modem.

If so, we can directly create a VLAN ID 2 interface based on eth0 in Luci - Network - Interfaces - Devices tab.

Then, in the Interfaces tab:

  • Switch the WAN interface device to eth0.2
  • Switch the protocol to Static Address Mode
  • Add the 5 IP addresses you possess
  • Configure the gateway address
1 Like

That’s fantastic, thank you. Do I then just use port forwarding for all the ports for my mail server?

You can refer to this guide for configuring a DMZ or port forwarding.

If you prefer, you can also continue using script to manage - with nftables as the firewall tool.

1 Like