View Single Post
  #2  
Old 23rd November 2011, 23:52
3zzz 3zzz is offline
Junior Member
 
Join Date: Jan 2008
Location: California
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by 3zzz View Post
Is it possible to set up PFsense load balancing for testing all within a single (LAN) subnet, and if so how?
I have the basic test bed working now and wanted to document my progress;
incidentally this is all inside a single ESXi5 VM Host.
My LAN (the real LAN, not the PFSense test bed LAN) is 192.168.1.0/24 with the gateway 192.168.1.1

Pfsense: WAN IP 192.168.1.104
Pfsense: WAN GW: None (this was key!)
Pfsense: LAN IP 192.168.2.1
Pfsense: Load Balancer Virtual IP: 192.168.1.104

Pool Server1: IP 192.168.2.10
Pool Server1: GW 192.168.2.1
Pool Server2: IP 192.168.2.20
Pool Server2: GW 192.168.2.1

Now when I access from my desktop's browser to http://192.168.1.104 I see the web content served from the pool servers!

Notes:
1) The LoadBalancer Virtual server IP matches the PFSense WAN IP.
2) The pool servers use PFSense LAN IP as their Gateway.
3) With the PFSense WAN GW set to the actual LAN GW of 192.168.1.1, the Pool servers then have access to the internet, but in my Desktop Web Browser I can't access the Virtual Server IP until I set PFSense WAN GW to none.
4) If a 192.168.1.X address is added to the pool servers for local accessibility, the Virtual Host stops working.
5) The DNS for the hostname must point to the Virtual Server ip (at least in the case of my websites)
6) If using a non-standard port, it needs to be the same on both the pool and virtual servers (at least in the case of my websites)

Last edited by 3zzz; 24th November 2011 at 03:14.
Reply With Quote