Load balancing with only one interface
-
Hello all,
Due to hardware restraints (single non-expandable small form factor atom-based machine) I want to do the following with PFSense and would like to know if it is actually possible :-
Single interface containing a 10.x IP for LAN, a 192.168.1.x IP for WAN1 and 192.168.2.x for WAN2 with traffic being load-balanced (and yes I know that it's load balancing not bonding) from LAN to WAN1 and WAN2.
We have approximately 9 users on the LAN so load balancing should work relatively well for us without bonding to single IP.
Oh, for more info, the 192.x networks would be running without DHCP and ideally the PFSense box will be running dhcp and dnsmasq on the 10.x network. Eventually I'd actually want to put the two routers into bridge mode so we have external IPs coming in but I'm not sure about doing that before load balancing or doing the setup for that afterwards.
–
Martyn -
With one interface, the best way is to setup vlans on switch and assign it at pfsense.
-
Given that we don't have a managed switch, I don't believe this is going to be possible… are VLANs essential or can it be done with virtual interfaces (or the bsd equivalent, I'm used to linux so what I would do there is assign eth0:1 one IP and eth0:2 another)?
-
You can do that with IP aliases, but it's going to be a big headache and a giant security problem. Reconsider the vlan switch idea, which is the proper way to do this and still sleep at night. You can get a decent 5-port vlan switch for $50. http://www.ncix.com/products/?sku=57524&vpn=GS105E-100NAS&manufacture=Netgear