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

PPPoE is no longer always dynamic

Scheduled Pinned Locked Moved HA/CARP/VIPs
6 Posts 2 Posters 2.4k 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
    MrPete
    last edited by MrPete Aug 23, 2021, 7:42 PM Aug 23, 2021, 7:40 PM

    CenturyLink (aka Lumen) is a reasonably large ISP (about 5% of the ISP market - 5+ million customers.)

    They provide gigabit fiber service with static IP via PPPoE with a specific VLAN tag. It's actually not too bad: I get a bare Cat6 Ethernet to plug into my system, and it "just works" when properly config'd.

    From an HA/CARP perspective on pfSense, this is pretty painful. To make it work, I had to:
    a) Create a VLAN using the WAN hardware interface and the needed VLAN tag. [SAME as non-HA]
    b) Create a CARP2WAN static IPv4 interface using (a), specifying the IP for this server (e.g. x.y.z.2)
    c) Create a VIP for the "real" WAN static IP
    d) Create a WAN PPPoE interface using a random temporary physical interface (the VIP is not available in the Interfaces Assignment UI)
    e) Go to the PPP tab to edit the pppoe0 interface:
    - Change interface to the VIP
    - Re-enter the password (same bug as recently reported: there's no way to save a form without specifying both PW's in pfSense, if it has PW/PW-confirm fields.)

    THAT appears to work...

    Hopefully someday this can be simplified to be not much more complex than setting up other CARP interfaces ;)

    (REALITY: I had to work out how to do the above. It's not exactly documented ;) ... I've put a lot of hours in on this. Hopefully this workaround will be helpful! :-D

    M 1 Reply Last reply Sep 6, 2021, 1:05 AM Reply Quote 0
    • M
      MrPete @MrPete
      last edited by MrPete Mar 8, 2022, 10:26 PM Sep 6, 2021, 1:05 AM

      [UPDATE March 2022. This is working even better. Thanks to @viragomann who was quite close on the needed gateway setup.]

      Revised instructions. This actually works for me, under most conditions. Exceptions/anomalies to follow:
      a) Create a VLAN using the WAN hardware interface and the needed VLAN tag. [SAME as non-HA]
      b) Create a CARP2WAN static IPv4 interface using (a), specifying the IP for this server (e.g. x.y.z.2 or 3 - private IP ok even for WAN)
      c) Create a CARP VIP for the "real" WAN static IP, based on CARP2WAN interface (skew 0 on primary, 100 on secondary)
      d) Create a WAN PPPoE interface using a random temporary physical interface (the CARP VIP is not available in the Interfaces Assignment UI)
      e) Go to the PPP tab to edit the pppoe0 interface, changing the interface to the VIP created in (c)

      • Make SURE the underlying interfaces match! (LAN-LAN, OPT1-OPT1 etc)
      • Fix all "WAN" IP or interface references to point to the actual static IP...
        • Outbound NAT (manual)
        • Inbound firewall and port forwards
      • Fix all interface references if/as needed
        • DNS

      f) Now take care of secondary CARP access to Internet

      • In System->Routing create a gateway to LAN CARP interface (on my setup it is *.1.1). This one is NOT monitored and is assumed to be 'up'.

      • Now make a gateway group, with normal internet gateway as Tier 1, and the new gw Tier 2.

      • Save, then set the gateway to be this new GW group.

      • Adjust DNS Resolver: it needs to include accessing upstream via the LAN CARP IP. Strange but necessary ;)

      • Test sync. Ensure the above changes are visible to secondary.

      • Test secondary: it should have Internet access.

      • Test failover.

      • Is the skew adjusting correctly? (ifconfig on both primary and secondary)

      At this point my main anomaly is: further adjustments to primary cause secondary to lose the Tier 1 setting in the GW group... maybe due to different names.

      M 1 Reply Last reply Jan 4, 2022, 5:40 PM Reply Quote 1
      • M
        MrPete @MrPete
        last edited by Jan 4, 2022, 5:40 PM

        Followup a few months later:

        • This does appear to be working reliably

        Note that with a single WAN connection, I find NO way for the secondary pfSense box to access the Internet for updates, etc (unless it is made Master temporarily). I've tried many potential workarounds with no success. (If someone has a solution to that, I'm all ears 🤠 )

        V 1 Reply Last reply Jan 5, 2022, 5:02 PM Reply Quote 0
        • V
          viragomann @MrPete
          last edited by Jan 5, 2022, 5:02 PM

          @mrpete
          On the master go to System > High Availability Sync and disable the sync of "Static Route configuration" if it's enabled to avoid that the following settings get overwritten.

          On the secondary go to System > Routing > Gateways and add the primarys LAN IP as gateway on LAN interface.
          Then add a new gateway group, set the WAN GW as Tier 1 and the primarys LAN you've created before as Tier 2.

          Go back to the gateways tab and set this gateway group as default gateway.

          You may also do the same on the primary, but with the secondarys LAN IP instead, to get internet access when it's in CARP maintenance mode.

          M 1 Reply Last reply Jan 10, 2022, 6:40 PM Reply Quote 0
          • M
            MrPete @viragomann
            last edited by Jan 10, 2022, 6:40 PM

            @viragomann That's what I did, or at least thought I did. Never could get it to work -- not even a ping.

            I'll try again when I get some more round tuits :)

            M 1 Reply Last reply Mar 8, 2022, 10:27 PM Reply Quote 0
            • M
              MrPete @MrPete
              last edited by Mar 8, 2022, 10:27 PM

              @mrpete @viragomann
              I've got it working close to 100% now :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                [[user:consent.lead]]
                [[user:consent.not_received]]