2 DHCP (mac) based static IPs with 2 VLANs and 1 WAN failover with static IP



  • HI.

    Just wanted to hear an opinion because i think this is possible with pfsense, but need to confirm before buying hardware:

    Got a DSL provider giving out 2 static IPs … they are DHCP ( mac based ) static IPs.

    Also have a 4G wireless modem for a "backup" internet connection, but the wireless modem is not set to bridge mode it just releases IPs in a private range ( can set a static IP on pfsense "backup" wan interface and route to default gateway on 4G router/modem )

    2 separate VLANs, each "assigned" to it's own static IP address with DHCP server on one VLAN, the other VLAN gets DHCP from windows server ( have devices that need access behind NAT )

    when main connection gets lost, need the incoming connections on 4G modem to redirect traffic to only "one" of  the VLANs.

    So this is how it should work, hopefully...

    DHCP "static" IP for VLAN1 is 70.70.70.1 - internal VLAN network 192.168.1.0/24
    DHCP "static" IP for VLAN2 is 70.70.70.2 - internal VLAN network 192.168.2.0/24

    STATIC IP on 4G backup router pfsense wan interface is 192.168.30.0/24, but actual dynamic public ip varies -  both VLANs use this connection when main modem dies.

    Lets say ports 80, 443 incoming on 70.70.70.1 need to redirect to 192.168.1.5
    and port 8080 incoming on 70.70.70.1 need to redirect to 192.168.1.6

    port 8080 incoming on 70.70.70.2 needs to go to 192.168.2.3

    hopefully outgoing VLAN traffic will go out it's proper public IP

    When the main connection breaks, both VLANs should still have outgoing internet access but incoming traffic (dyndns ) on 4G modem should go to 192.168.1.5 on ports 80,443 and 192.168.1.6 on port 8080

    each WAN interface ( 2 ports used for the DHCP static IPs modem ) will be plugged in to its own port on router, also each VLAN will use its own port on router.

    Does this seem doable ? are there any restrictions here ? ( i understand that because this DSL modem is mac based for static IPs i will have to have a switch between the modem and split one WAN connection into 2 for each DHCP static IP )



  • small bump.


Log in to reply