CARP VIP not working properly, do not respond ping and do not has connectivity

  • Hi! I've two pfsense firewalls using pfsync and Carp. This firewall set should receive traffic from two wireless lans. This is working almost ok.

    I have the network X on bce2_vlan2064 and network V on bce2_vlan2065. Both come tagged from a MSM720 Wireless Controller (there is a switch where are plugged both boxes and the wireless controller).

    On pfSense:

    vlan_2064: interface has
    vlan_2065: interface has
    CARP VIP on vlan_2064:
    CARP VIP on vlan_2065:

    vlan_2064: interface has
    vlan_2065: interface has
    Backup on CARP VIPs.

    They should operate in the same way. But the problem is with the HA configuration for network V on bce2_vlan2065. Although CARP status shows that everything is ok, from slave box I can't ping the VIP ( On network X this works fine and I can ping VIP normally.

    Some information:

    • I've set rules to permit all traffic on these interfaces being tested

    • on network X, I can ping all addresses, on master interface, on slave interface and the VIP

    • on network V, I CANNOT ping the VIP

    • I can ping the interface address, from master to slave and from slave to master

    • Carp status is ok, one master, one backup.

    • But the network doesn't work (gateway, proxy, dns etc are on .254 IPs). So, once I can't ping the VIP from the slave, I'm thinking these services aren't working because this connectivity problem.

    Tests already done:

    • tcpdump on master shows the packets arriving (just echo request)

    • there is no echo reply (why doesn't master (that has the VIP) send the reply?)

    • I checked with tcpdump and these replies are not going to no other interface

    • I have the firewall rules configured (I'm permiting all icmp on this interface)

    • All vrrp announcements are ok, I can see with tcpdump on both boxes.

    • using arping I can do ARP from slave to master (slave ask who has the VIP, master answer with the mac address pattern of CARP), but the ping doesnt works.

    What I thing more weird is that I can see the packages arriving on master, with tcpdump, but I cannot see no answer. No log is generated (no block). The packets simply disappear.

    And, the network X, that was configured in the same way, is working perfectly, with HA.

  • Hi, I found what was going on.

    On my network V, where the VIP didn't reply ping, I have one Captive Portal. So, just to remeber: is the IP of master is the IP of slave is the Carp VIP (DNS forwarder, Proxy, Gateway etc).

    If the Captive Portal is enabled, the interface drop all the packets silently. No log is generated. In this scenario, when we need one Carp VIP being the Captive Portal, Gw, DNS, DHCP etc, we must permite this VIP on Captive Portal section:

    Services -> Captive Portal -> choose the CP -> Allowed IP Address and add the VIP.

    Now it's working as expected.

  • Rebel Alliance Developer Netgate

    I just noticed this and put a fix in for it yesterday:

Log in to reply