<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CARP with Load Balancing]]></title><description><![CDATA[<p dir="auto">I have two pfsense servers: pf1 and pf2. They each have their own WAN and LAN IPs.</p>
<p dir="auto">pf1: x.x.x.111 (wan) 192.168.7.111 (lan)<br />
pf1: x.x.x.112 (wan) 192.168.7.112 (lan)</p>
<p dir="auto">I also set up CARP on a third NIC on both, with virtual IPs (VIP) x.x.x.122 (wan) and 192.168.7.122 (lan). I want to set up incoming load balancing using the CARP wan VIP (x.x.x.122) on port 5060 using UDP. Firewall rule has been created allowing all source IPs to send traffic on port 5060 when destination IP is x.x.x.122, and state setting is set to 'keep state'.</p>
<p dir="auto">I have set up a python script which is an echo server, and it is running on port 5060 on two servers (192.168.7.85 and 192.168.7.100) behind the firewalls. On the outside (v.v.v.99), I use a client to send a message to x.x.x.122 on port 5060. When I use the same application to send traffic from one server to another, say from 192.168.7.85 to 192.168.7.100, I get an echo back from the server. But when I use the same application from outside the network (from v.v.v.99), the application just hangs and I do not get back a reply. On the server side, it also does not see the message sent by client.</p>
<p dir="auto">If I enable the firewall rule allowing traffic, firewall log shows nothing. If I disable it, firewall log shows an error that policy was violated. What am I doing wrong? What changes do I need to make to get simple load balancing with stickiness to work?<br />
![firewall - rule.JPG](/public/<em>imported_attachments</em>/1/firewall - rule.JPG)<br />
![firewall - rule.JPG_thumb](/public/<em>imported_attachments</em>/1/firewall - rule.JPG_thumb)<br />
![load balance - server pool.JPG](/public/<em>imported_attachments</em>/1/load balance - server pool.JPG)<br />
![load balance - server pool.JPG_thumb](/public/<em>imported_attachments</em>/1/load balance - server pool.JPG_thumb)<br />
![load balancer - virtual server.JPG](/public/<em>imported_attachments</em>/1/load balancer - virtual server.JPG)<br />
![load balancer - virtual server.JPG_thumb](/public/<em>imported_attachments</em>/1/load balancer - virtual server.JPG_thumb)<br />
![log - load balancer.JPG](/public/<em>imported_attachments</em>/1/log - load balancer.JPG)<br />
![log - load balancer.JPG_thumb](/public/<em>imported_attachments</em>/1/log - load balancer.JPG_thumb)<br />
![setting - advanced setting.JPG](/public/<em>imported_attachments</em>/1/setting - advanced setting.JPG)<br />
![setting - advanced setting.JPG_thumb](/public/<em>imported_attachments</em>/1/setting - advanced setting.JPG_thumb)</p>
]]></description><link>https://forum.netgate.com/topic/11532/carp-with-load-balancing</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 15:13:32 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/11532.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Oct 2008 19:52:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CARP with Load Balancing on Thu, 23 Oct 2008 18:30:55 GMT]]></title><description><![CDATA[<p dir="auto">Never mind. I was looking for load balancing on UDP but I learned that verion 1.2 only supports TCP load balancing.</p>
]]></description><link>https://forum.netgate.com/post/183823</link><guid isPermaLink="true">https://forum.netgate.com/post/183823</guid><dc:creator><![CDATA[ichbindev]]></dc:creator><pubDate>Thu, 23 Oct 2008 18:30:55 GMT</pubDate></item></channel></rss>