Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Solved] PfSense as Load Balancer in AWS

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 424 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MeCJay12
      last edited by MeCJay12

      Hello! I have an instance of pfSense in AWS that is running OpenVPN for me. Recently I got four static IPs on site. Each is through a different ISP. I port forwarded my server on all four ISPs/IPs and it is reachable on all four. Now I want to use my pfSense to load balance inbound connections across the four ISPs. My pfSense instance only has one interface. I setup the load balancer according to the docs but I see the note at the bottom about it not working one one interface without NAT rules. I tried adding the NAT rules but that didn't help. Configs attached. Everything covered in blue is name if the server and is the exact same string each time. Everything covered in black is one of my public statics. The 172 address is my pfSense interface IP. Thanks in advance.

      Monitor
      Monitor.PNG
      Virtual Server
      Virtual Server.PNG
      Pool
      Pool.PNG
      NAT
      NAT.PNG

      1 Reply Last reply Reply Quote 0
      • JeGrJ
        JeGr LAYER 8 Moderator
        last edited by

        If you want to use pfSense as a LoadBalancer I'd recommend using HAproxy as the "internal" Loadbalancer (relayd) gets discontinued in the next version due to inactivity upstream (and missing bug fixes etc.). So I'd have a look at HAproxy and take it from there.

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

        1 Reply Last reply Reply Quote 0
        • M
          MeCJay12
          last edited by

          Thanks. I got HAProxy working.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.