• CARP on LAN interface

    Locked
    12
    0 Votes
    12 Posts
    11k Views
    H

    No, each CARP IP is one IP, no matter what subnetmask it has. The subnet just has to match the subnet of the interface physical interface the CARP IP is running on. However you can use 1:1 NAT with subnetranges to map several vips to several internal IPs after you have created your VIPs

  • Outbound Load Balancing

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    H

    Each WAN needs to be a seperate Interface or the Natting won't work correctly. Also you would not be able to use policybasedrouting for sites that don't work with loadbalancing for example. If you have a vlan capable switch you can make this work with one physical interface and several vlan interfaces.

  • Proxyarp config help

    Locked
    19
    0 Votes
    19 Posts
    11k Views
    S

    Atleast for 1.0, yes.

  • Single address CARP

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    H

    No, CARP IP and real interface IPs have to be within the same subnet. You could set up your WAN subnet to /29 and use 2 IPs that are out of your range for the real WAN IPs. This way you lose access to a few IPs at the internet but as this most probably are other customers of your provider that might not even run any  public services this should be no problem. Just make sure the gateway IP and the CARP WAN IP is what your provider told you for the IP you have.

  • Rules weirdness when source and destination are self with CARP.

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    S

    @Numbski:

    I get it now.  Sorry about that.  I suppose documented this in the wiki would be helpful to others. :\

    Yes, please do.

  • CARP, and multiple networks on a single interface.

    Locked
    15
    0 Votes
    15 Posts
    10k Views
    N

    Another update.  Hacom has pulled their boxes from their website.  They've confirmed a serious issue with the PCI bus and are working to resolve the problem.  They've since refunded me for my systems.  Hope they get it resolved soon!

    :o

  • CARP interface getting filtered when first box goes down.

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    H

    Make sure there is no rules mismatch between the 2 systems. Also clicking the small icon in front of the syslog line will tell you which rule caused the block.

  • 0 Votes
    2 Posts
    3k Views
    S

    Not in 1.0.

  • Carp mac address

    Locked
    9
    0 Votes
    9 Posts
    16k Views
    H

    Yes i try, it's OK

    Thanks

  • NAT redirect on Proxy ARP VIP

    Locked
    8
    0 Votes
    8 Posts
    6k Views
    S

    Not in 1.0.

  • CARP is driving me INSANE.

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    N

    My apologies.  The switch for that interface needed to be reset to factory defaults.  For whatever reason the two interfaces wound up on seperate VLANs, yet they could both reach the gateway (just not one another) with their frames.  Bizarre.  I cannot even begin to fathom that, but once set to defaults all was well.

  • CARP Problems

    Locked
    36
    0 Votes
    36 Posts
    26k Views
    I

    Hi,

    Just for the record, my problem is solved. It was a ruling mistake on DMZ, ie. a directed all traffic destined to elswhere then LAN or DMZ to the load balancer (WAN1 + WAN2), but this way the traffic to 224.0.0.x went out to the net.
    Thanks for all who tried to help me to solve this problem.

  • Pfsense beta4 reboots when I add a CARP Virtual IP address

    Locked
    9
    0 Votes
    9 Posts
    6k Views
    H

    hm, this somehow starts to look like more general driver unrelated issues then. I'll forward this to thompsa.

  • Kernel: carp1: incorrect hash

    Locked
    7
    0 Votes
    7 Posts
    6k Views
    G

    arrggghhhhh !!!**"!@*ç%2@ >:( >:(

    i'm an idiot… for testing purposes i had still running an Virtual machine with an 3rd PF running with carp enabled and the same IP address....

    :-))  thanks anyway guy's

  • Inbound Load Balance on two TCP ports?

    Locked
    4
    0 Votes
    4 Posts
    6k Views
    H

    Just noticed: your firewall rules are set to destination any. You should only allow the destination IPs of the servers in the pool. Use an hosts(192.168.1.2, 192.168.2.2) alias and a ports(80, 443) alias to do that with just a single rule.

  • Load balancing dns

    Locked
    14
    0 Votes
    14 Posts
    15k Views
    B

    @wizard:

    hm perhaps i need to do some re thinking. I thought i would be able to use something like this http://www.openbsd.org/faq/pf/pools.html for my load balancing solution. I wasn't sure that slbd was the only deamon under BSD which can handle load balancing because i could hardly find any information on it. But if you say so i am sure you are right so i will have to go back to LVS with keepalived under Linux which supports UDP load balancing. With the price of losing the flexibility of CARP which i was beginning to like. I will keep you posted on my project wish me luck. If you have any other ideas please tell me.

    PF itself does no availability checking.  That's what we use slbd for - it's responsibility is to insert rules into an anchor (slightly different than the pools, but same concept) based on what's actually up.  Again, load balancing is easy - availability checking is considerably more difficult and not usually terribly conclusive.

    Consider this.  UDP is a stateless protocol, it's not required to reply to anything it doesn't understand (TCP at least sends resets!).  The way port scanners detect an "open" UDP port is by the lack of an ICMP port unreachable reply.  Guess what happens if the box is down?  Oh yeah, ALL ports will refuse to return ICMP port unreachable.  OK, so now we have to tie in some other means of checking - let's say ICMP.  So, now we get if the box is pingable and I'm not getting an ICMP port unreach answer, the daemon on that port must be good right?  Bzzt…what if it's just b0rked but still listening (never happen you say?  heh, I've had djbdns ick zombify on me and refuse to die - still listening on port 53).

    FWIW, even our commercial F5 BIGIP (LTMs now) at work don't load balance (and do availability checking of) UDP - it can't be done reliably.  Specific protocols are doable, but UDP in general isn't (consider syslog...you can't send a valid syslog packet to a syslog daemon that will make it reply to you...how do you know it's not b0rked?  you don't)

    The way I'd design your setup is the following (and it's free advice, so take it for what it's worth)

    Two firewalls in an active passive pair with two CARP virtual IPs.
    Four PowerDNS servers with one CARP VIP each, active for one, passive for the other three at different skews - this will cover any box failure that might occur.
    If daemon failure is a serious concern, then write a dig script on the firewall to dig all four CARP VIPs and check the result, if they're answering, update your DNS server table in PF with the addresses.  Alternately, on the machines themselves, you can use ifstated to do essentially the same thing - check to see if it's resolving, if not, set the CARP address to backup and let the other machines duke it out for taking control.

    --Bill

  • Load Balancing Monitor Ip

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    B

    @wizard:

    In BETA-2  i used to be able to set a monitor ip under Load Balancer: Pool: Edit in BETA-4 this field is greyed out. If i click on gateway instead of server in the pull down menu type i can set a monitor ip. Is the correct? Have you changed this setting. I upgraded from Beta-2 to Beta-4 and restored my old settings everything else seems to work.

    Monitor is only used for gateway type pools.  Server pools use the server address and port you put in the pool.  For gateways, you may not actually want to monitor the gateway itself, so we provide a monitor ip field so you can choose a different IP to ping.  And yes, b2 -> b4 had numerous LB related changes.

    –Bill

  • Inbound Load Balance with 2 Interfaces?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    B

    @rneily:

    I've been playing around with load balancig lately, and it's been going well.  What I would like to know is if there is a way to use pfSense on a 3 Interface WRAP box so that I dont need an extra ethernet switch behind the pfSense BOX.  I would like to connect the servers that I want to balance directly to the WRAP without using a switch.  (I will never need more than 2 servers, if I do, I'll have to use the switch)

    Ie.  I have this as a current setup..

    WAN – Interface0->  PFSense Wrap Box -- Interface0--> Ethernet Switch -> Server 1
                                                                                                            --> Server 2

    I would like to set up pfsense as strictly a load balancer, and get rid of the Extra Ethernet switch like this:

    WAN --Interface0-->  PFSense Wrap Box -- Interface1---> Server 1
                                                              -- Interface2--->  Server 2

    Is this possible?  Would I just bridge Interface1 and Interface2?  Any reason NOT to do this????

    I'd put the servers in different subnets if you're going to cross them over to the firewall.  The load balancer doesn't require that servers reside on the same subnet.  What you want to do is perfectly doable (just don't put too much thought into it…it's really as simple as it sounds).

    --Bill

  • Only works for me, and only for a little while

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    R

    Just to let you know I found the problem and it wasn't pfsense. the test lan carp ip I chose was in conflict with my wap and I had forgotten I had assigned that ip to the wap. I haven't finished testing yet but pfsense is working beautifully!

    Thanks for everyone's help and support, and I've learned a lot about pfsense, carp and pf.

  • Crash when adding vip to carp-enabled boxen

    Locked
    13
    0 Votes
    13 Posts
    9k Views
    H

    ;D

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.