One or two WAN(s) for my scenario?
-
Hi all,
I would like a suggestion for the network configuration of my pFsense.
LAN
I have two VLANs:
LAN Client 192.168.100.0/24 (GW INT LAN 192.168.100.1 - pFsense)
DMZ Server 192.168.200.0/24 (GW INT DMZ 192.168.200.1 - pFsense)WAN
I have 3 routers to reach the Internet (with 3 differente ISPs) all in the same VLAN
Router A 192.168.50.10 (NAT to ISPa Public IP )
Router B 192.168.50.20 (NAT to ISPb Public IP )
Router C 192.168.50.30 (NAT to ISPc Public IP )ROUTING
Lan Client must use Router A or Router B if A fails.
DMZ Server must use Router C.Is it better to have two separated WANs interfaces and then route WAN Client to a Gateway Group (Primary Router A 192.168.50.10, Secondary Router B 192.168.50.20) and WAN DMZ to Router C?
Or I can get by using just one WAN interface? in this case, how can I manage a WAN with different gateways?
I have 6 network interfaces, so no problems for HW ports.Less is more, of course.. also considering that I would like to implement HA with the CARP protocol beetween two pF.
Thanks for any suggestions that come
Ivan
-
@Vaz1970
If you have incoming connections on the WANs you have to use separate interfaces. These can also be VLANs on a single network port. But each has to use a different subnet.For outbound only, it should also work with a single WAN interface.
In this case don't state a gateway in the WAN interface settings, but add all in Routing > Gateways.
You will have to add an outbound NAT rule for WAN manually. -
Thank you @viragomann.
All ISP routers are on the same /24 VLAN.
Now I can:- Use two distinct WAN interfaces. In this case, can I use the same /24 subnet and split both outbound and inbound traffic?
- If I use only one WAN interface will I have to create two VLANs? Say (192.168.50.x and 192.168.60.x) In one I put Router A and Router B in the other Router C. In this case, if I only have layer2 switches, can I use pFsense for routing?
Any suggestion for NAT in the best case?