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

Configure an PPPoE on an CARP IF

HA/CARP/VIPs
9
18
13.5k
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.
  • B
    Beerman
    last edited by Sep 25, 2018, 1:50 PM

    Hello,

    I've read that since version 2.4.3 there is the possibility to configure PPPoE on an CARP Interface (VIP), so it will only be active on the master node.

    How is the procedure for this? I tried it, but could not get an successful login with PPPoE if I assign the PPPoE to an CARP VIP.

    From my provider I have to use vlan 7, so I assigned the vlan-IF to my WAN IF and I configured an ipv4 IP to this IF. Afterwards I configured an CARP-VIP for this IF. This CARP-VIP I did assign to the PPPoE configuration.

    With "ifconfig" on the shell, I see both ipv4 IPs I configures (from IF and the CARP-VIP) and an "empty" pppoe-IF. (So no "login" is done via pppoe)

    What is the thing, I am doing wrong?

    Thx, for your help!

    1 Reply Last reply Reply Quote 0
    • T
      TugBoat
      last edited by Jan 20, 2019, 9:37 PM

      I have exactly the same question. (I am assuming the facility is still available on pfsense 2.4.4).

      I can find the reference to the facility added at 2.4.3 (https://redmine.pfsense.org/issues/8184), however, I can't find any explanation on how to use this facility.

      In my situation I have a redundant (dual diverse path) main Internet connection that is supposed to be 100% reliable, however, we also have a PPPoE ADSL 'backup' (with a single static address) that I would like connect directly to the pfsense HA pair.

      From the references that I have found to this change in pfsense 2.4.3 it looks to be exactly what I need. However, I have not found any information on exactly how to make it work.

      Does anyone know how to configure a PPPoE link on a HA pair so that only the master is active?

      Thanks in advance,
      Tim

      1 Reply Last reply Reply Quote 0
      • B
        Beerman
        last edited by Jan 21, 2019, 8:19 AM

        Hi,

        I've found out by now, it's actually quite simple.

        First, you add an Carp Interface for your DSL COnnection. (on each machine of you HA pair) Configure this CARP IF on the correct VLAN, you need for this.

        Add an CARP IP address.

        Go to "Interfaces / Interface Assignments" --> PPPs.
        Add the PPP Connection and choose the Carp IP as "Link Interface(s)".

        This is working for me :)

        Hope it helped!

        1 Reply Last reply Reply Quote 2
        • T
          TugBoat
          last edited by Jan 21, 2019, 9:23 AM

          Thanks Beerman,

          That sounds remarkably straight forward - I will prototype it and see what happens.

          Thanks again,
          Tim

          1 Reply Last reply Reply Quote 0
          • T
            TugBoat
            last edited by TugBoat Jan 22, 2019, 2:09 AM Jan 22, 2019, 2:03 AM

            OK,

            This procedure does work, although there are a few tricky bits. So here is a slightly more detailed explanation of what Beerman provided (I hope that I did this correctly). I tested this on the 2.4.4-p1 release of pfsense in a lab environment, the switch to production is a few days away:

            1. Add an Interface that will connect to the ADSL modem. This is either a direct NIC, or possibly a VLAN. I called my Interface 'ADSLMODEM' (very original..). You need to allocate a static IP address to this interface on both of the HA pair (otherwise you can't add a CARP IP). As far as I can see these static IPs don't figure in any way in the PPPoE, so you just use a subnet that you are not using anywhere else. (In my test I used 192.168.77.2 and .3)
            2. Add the CARP IP to the ADSL modem interface. Give this an appropriate IP address, use all the normal CARP settings. (My test was 192.168.77.1).
            3. At this stage I checked that the CARP status showed the interfaces as Master on the Master, and Backup on the Backup of the HA pair. So far, so good. If not, check your cabling, switches, look for typographic errors etc.
            4. Use Interfaces/Assignments/PPPs and add a PPPoE device. This is the important part: you need to select the CARP IP address (192.168.77.1) as the 'Link Interface'. The IP address will just be in the drop down list.
            5. Now on Interfaces/Assignments you can add an interface using the the PPPoE that you have defined. You will find a an entry called 'PPPoE(<somejunkhere>)' in the list of possible 'Network Ports', this is the 'port' to use. After you click '+Add' and 'Save' you click on the 'OPT??' link to edit the new interface - I renamed mine from 'OPT??' to 'ADSL'. Check that the 'IPv4 Configuration Type' is 'PPPoE' - for some reason when I did this step the field was occasionally something else - make sure you select PPPoE and then all the details (login+password) will appear correctly in the interface parameters down the screen. Make sure that you also enable the interface.

            At this point it should all be working. I checked a number of things about the configuration at this point:
            a) In Status/System Logs/PPP on the master firewall there was logging showing the PPPoE trying to establish.
            b) In Status/System Logs/PPP on the backup firewall the logging showed that PPPoE was configured, but nothing was logged about attempting to establish a connection.

            Now I connected my ADSL Modem to the appropriate NIC/VLAN and the master firewall immediately established the PPPoE link.

            At this point I disabled CARP on the master firewall and the HA pair switched over, and what was the backup brought the PPPoE link up, the disabled master logs showed PPPoE as inactive. Enable CARP on the master firewall and the PPPoE link switched back.

            As a final test I added appropriate firewall rules to the 'ADSL' filter and checked some inbound connections using the ADSL circuit. As far as I could see everything worked as expected.

            Thanks again to Beerman for the all important and key information on how to do this.

            Tim

            1 Reply Last reply Reply Quote 5
            • N
              netblues
              last edited by Jan 24, 2019, 4:39 AM

              This works.
              I just converted a pppoe interface to this just by reassigning the link to the carp ip.
              It is not statefull failover, but in a ppp world is as close as it can get.

              1 Reply Last reply Reply Quote 0
              • G
                Gabri.91
                last edited by Gabri.91 Aug 15, 2019, 12:03 PM Aug 15, 2019, 11:54 AM

                Hi @TugBoat and @netblues,
                have you tried also the failover to backup CARP node with dynamic PPPOE?

                I've found some strange issues:

                  1. main online, backup online => everything is working fine, just main has PPPOE active
                  1. main goes offline => PPPOE is correctly connected on backup
                  1. main back online => PPPOE it's trying to connect on main, but it's not disconnected on backup (so main it's unable to connect)
                  1. after power off and power on again the backup, main connects but backup still tries to connect

                Now I have main connected and backup that still tries to connect, but I don't know how to revert back to initial situation...

                EDIT: Found the issue in case it could be useful for someone else, on backup node the PPOE was still pointing to the local interface and not to the CARP IP Address

                W 1 Reply Last reply Jun 7, 2023, 6:56 AM Reply Quote 1
                • ?
                  A Former User
                  last edited by Jun 30, 2020, 7:24 AM

                  Hi, sorry to dig this up but it's the best (only?) documentation regarding CARP and PPPoE. I followed the hints of this thread and got a working setup. Everything including multiple VLANs, VLANs routed over vpn work just fine. But...

                  Every once in a while (every few hours) I get timeouts accessing the internet from the LAN. It's about 5-10 seconds. I checked and the master doesn't switch, the pppoe interface doesn't reconnect. I'm at a loss what's causing it.

                  I realized the only thing missing from this thread is outbound NAT. How do you have it configured - as the documentation states to go with manual and set a VIP as the translation address which doesn't seem to apply.

                  Thanks !!

                  1 Reply Last reply Reply Quote 0
                  • N
                    netblues
                    last edited by Jun 30, 2020, 8:21 AM

                    Outbound nat is set manually to the ppp interface assigned (since this is the one that gets the public ip.)
                    This works and is quite stable for a long time now. I doubt its nat.
                    Go to status monitoring and see if you have issues with your isp.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by Jun 30, 2020, 8:35 AM

                      That's how I setup outbound NAT thank you for confirming it's the correct way.

                      @netblues said in Configure an PPPoE on an CARP IF:

                      Go to status monitoring and see if you have issues with your isp.

                      Yes, that's what I checked and nothing. Everything started the day I enabled ha/carp so it's quite a coincidence if it's something else.

                      1 Reply Last reply Reply Quote 0
                      • JeGrJ
                        JeGr LAYER 8 Moderator
                        last edited by Jun 30, 2020, 8:49 AM

                        @icesense1701 said in Configure an PPPoE on an CARP IF:

                        Yes, that's what I checked and nothing. Everything started the day I enabled ha/carp so it's quite a coincidence if it's something else.

                        Also check for anything other gateway related or if you are using DNS resolver or forwarder, perhaps check the DNS logs, if it isn't the connection you are loosing but DNS being restarted/hanging up.

                        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.

                        N 1 Reply Last reply Jun 30, 2020, 8:57 AM Reply Quote 0
                        • N
                          netblues @JeGr
                          last edited by Jun 30, 2020, 8:57 AM

                          Also check in system/advanced/networking, uncheck reset all states, just in case.

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by Jul 3, 2020, 7:22 AM

                            Just to follow up I seem to have fixed it with brute force. I rebooted the pfsense vms once more and all the switches. Also some vlan's didn't have the proper dhcp settings (failover ip) - shouldn't matter because the timeouts were on properly setup vlans but I fixed those too. I didn't experience any more issues for the past two days. Thanks all !

                            C 1 Reply Last reply Jan 23, 2022, 3:16 PM Reply Quote 0
                            • C crl referenced this topic on Jan 23, 2022, 1:46 PM
                            • C crl referenced this topic on Jan 23, 2022, 2:07 PM
                            • C crl referenced this topic on Jan 23, 2022, 2:08 PM
                            • C
                              crl @A Former User
                              last edited by Jan 23, 2022, 3:16 PM

                              It works for me but breaks openVPN, see Link.

                              1 Reply Last reply Reply Quote 0
                              • F Foxi352 referenced this topic on Jan 31, 2022, 7:53 AM
                              • F Foxi352 referenced this topic on Jan 31, 2022, 7:53 AM
                              • N NOTORIOUS_VR referenced this topic on Mar 19, 2022, 3:26 PM
                              • werterW werter referenced this topic on Mar 24, 2022, 12:35 PM
                              • werterW werter referenced this topic on Apr 7, 2022, 1:01 PM
                              • werterW werter referenced this topic on Apr 7, 2022, 1:02 PM
                              • werterW werter referenced this topic on Apr 10, 2022, 1:30 PM
                              • werterW werter referenced this topic on Apr 10, 2022, 1:38 PM
                              • werterW werter referenced this topic on Apr 10, 2022, 2:37 PM
                              • werterW werter referenced this topic on Apr 12, 2022, 10:44 AM
                              • werterW werter referenced this topic on Apr 12, 2022, 10:53 AM
                              • werterW werter referenced this topic on Apr 12, 2022, 10:58 AM
                              • werterW werter referenced this topic on Apr 12, 2022, 11:20 AM
                              • werterW werter referenced this topic on Apr 18, 2022, 9:46 AM
                              • werterW werter referenced this topic on May 3, 2022, 7:35 AM
                              • werterW werter referenced this topic on May 3, 2022, 7:37 AM
                              • werterW werter referenced this topic on May 3, 2022, 7:39 AM
                              • werterW werter referenced this topic on May 3, 2022, 7:45 AM
                              • werterW werter referenced this topic on May 22, 2022, 1:08 PM
                              • werterW werter referenced this topic on May 25, 2022, 1:15 PM
                              • werterW werter referenced this topic on May 29, 2022, 7:59 AM
                              • werterW werter referenced this topic on Jun 1, 2022, 10:17 AM
                              • werterW werter referenced this topic on Jun 11, 2022, 4:26 PM
                              • werterW werter referenced this topic on Jun 11, 2022, 4:29 PM
                              • werterW werter referenced this topic on Jun 21, 2022, 8:44 AM
                              • werterW werter referenced this topic on Jun 21, 2022, 8:45 AM
                              • werterW werter referenced this topic on Jun 29, 2022, 10:24 AM
                              • werterW werter referenced this topic on Jul 7, 2022, 2:24 PM
                              • werterW werter referenced this topic on Jul 18, 2022, 1:15 PM
                              • werterW werter referenced this topic on Jul 18, 2022, 1:24 PM
                              • werterW werter referenced this topic on Jul 20, 2022, 10:29 AM
                              • werterW werter referenced this topic on Jul 27, 2022, 10:12 AM
                              • werterW werter referenced this topic on Aug 3, 2022, 11:20 AM
                              • werterW werter referenced this topic on Aug 3, 2022, 12:35 PM
                              • werterW werter referenced this topic on Aug 12, 2022, 1:06 PM
                              • werterW werter referenced this topic on Aug 28, 2022, 11:23 AM
                              • S ss1gohan13 referenced this topic on Aug 28, 2022, 8:21 PM
                              • werterW werter referenced this topic on Aug 31, 2022, 11:41 AM
                              • werterW werter referenced this topic on Sep 4, 2022, 2:54 PM
                              • werterW werter referenced this topic on Sep 20, 2022, 3:42 PM
                              • werterW werter referenced this topic on Sep 20, 2022, 3:57 PM
                              • werterW werter referenced this topic on Oct 4, 2022, 9:56 AM
                              • werterW werter referenced this topic on Oct 7, 2022, 10:05 AM
                              • werterW werter referenced this topic on Oct 11, 2022, 2:12 PM
                              • werterW werter referenced this topic on Oct 24, 2022, 8:20 AM
                              • werterW werter referenced this topic on Nov 1, 2022, 1:46 PM
                              • werterW werter referenced this topic on Nov 19, 2022, 2:08 PM
                              • werterW werter referenced this topic on Nov 22, 2022, 10:38 AM
                              • werterW werter referenced this topic on Dec 21, 2022, 7:09 AM
                              • werterW werter referenced this topic on Dec 21, 2022, 7:10 AM
                              • werterW werter referenced this topic on Dec 30, 2022, 12:02 PM
                              • werterW werter referenced this topic on Dec 30, 2022, 12:10 PM
                              • werterW werter referenced this topic on Jan 1, 2023, 7:01 AM
                              • werterW werter referenced this topic on Jan 1, 2023, 8:52 AM
                              • werterW werter referenced this topic on Jan 31, 2023, 6:45 AM
                              • werterW werter referenced this topic on Jan 31, 2023, 6:46 AM
                              • werterW werter referenced this topic on Feb 1, 2023, 9:02 AM
                              • werterW werter referenced this topic on Feb 1, 2023, 9:14 AM
                              • werterW werter referenced this topic on Feb 12, 2023, 10:50 AM
                              • werterW werter referenced this topic on Feb 12, 2023, 11:02 AM
                              • werterW werter referenced this topic on Feb 12, 2023, 11:48 AM
                              • werterW werter referenced this topic on Feb 13, 2023, 7:24 AM
                              • werterW werter referenced this topic on Feb 13, 2023, 7:25 AM
                              • werterW werter referenced this topic on Feb 24, 2023, 9:11 AM
                              • werterW werter referenced this topic on Feb 24, 2023, 9:24 AM
                              • werterW werter referenced this topic on Feb 24, 2023, 9:53 AM
                              • werterW werter referenced this topic on Feb 24, 2023, 10:21 AM
                              • werterW werter referenced this topic on Feb 24, 2023, 10:26 AM
                              • werterW werter referenced this topic on Feb 27, 2023, 7:17 AM
                              • werterW werter referenced this topic on Feb 27, 2023, 7:19 AM
                              • werterW werter referenced this topic on Mar 24, 2023, 10:34 AM
                              • D
                                deb8
                                last edited by Apr 5, 2023, 6:03 AM

                                Hi all,
                                I followed the guide provided by @TugBoat and this is how my configuration looks like.

                                i. Interface in "Interfaces / Interface Assignments", named it LAN, set it with static IPv4 IP (192.168.1.4) and assigned it to Network port "em0". IPv4 Upstream gateway is set to none.

                                ii. Virtual IP in "Firewall / Virtual IPs" of type CARP, with interface LAN and single address 192.168.1.1.

                                iii. VLAN interface in "Interfaces / VLANs" with tag 10 on the physical interface em0. "VLAN 10 on em0", used for communication with the VDSL Modem.

                                iv. Interface in "Interfaces / Interface Assignments", named it WAN, set it with static IPv4 IP (192.168.0.4) and assigned it to Network port "VLAN 10 on em0". IPv4 Upstream gateway is set to none.

                                v. Virtual IP in "Firewall / Virtual IPs" of type CARP, with interface WAN and single address 192.168.0.2.

                                vi. PPPoE Interface in "Interfaces / PPPs" with link interface "192.168.0.2 (vhid 2) - WAN CARP VIP" with username and password.

                                vii. Interface in "Interfaces / Interface Assignments", named it WANPPPoE and assigned it to Network port "PPPOE(_vip610...)".

                                viii. Gateway in "System / Routing / Gateways" with interface "PPPoE", Address family "IPv4", Gateway "dynamic", checked "Use non-local gateway" (public IP assigned is in different subnet from the providers Gateway) and set as "Default gateway IPv4".

                                ix. Outbound NAT in "Firewall / NAT / Outbound", with interface "PPPoE", Address family "IPv4", Source Type "Network", Source Address Range "192.168.1.0/24" (LAN), Destination "Any", Translation Address "192.168.0.2 (WAN CARP VIP)".

                                x. DNS Resolver Network Interfaces set to "192.168.1.1 (LAN CARP VIP)", Outgoing Network Interfaces set to "192.168.0.2 (WAN CARP VIP)"

                                PPPoE is successfully established and public IP is assigned. However, the LAN portion of the configuration is unable to access the public internet.
                                Any hint on what I am doing wrong?
                                Thanks in advance.

                                1 Reply Last reply Reply Quote 0
                                • werterW werter referenced this topic on Apr 9, 2023, 2:33 PM
                                • werterW werter referenced this topic on Apr 21, 2023, 9:30 AM
                                • werterW werter referenced this topic on Apr 23, 2023, 4:49 PM
                                • werterW werter referenced this topic on Apr 25, 2023, 1:06 PM
                                • werterW werter referenced this topic on Apr 29, 2023, 2:12 PM
                                • werterW werter referenced this topic on May 19, 2023, 10:01 AM
                                • W
                                  wifi75 @Gabri.91
                                  last edited by Jun 7, 2023, 6:56 AM

                                  @Gabri-91 I have a dynamic connection in pppoe on vlan 835, I have performed all the steps but it doesn't connect using the carp interface.
                                  I double checked all the steps and it seems to be ok, but it doesn't want to connect to the wan...

                                  N 1 Reply Last reply Jun 17, 2023, 1:49 PM Reply Quote 0
                                  • W wifi75 referenced this topic on Jun 8, 2023, 8:45 AM
                                  • N
                                    netblues @wifi75
                                    last edited by Jun 17, 2023, 1:49 PM

                                    @wifi75

                                    This never really worked. pppoe running on a carp interface isn't an option.
                                    And as far as natting is concerned, appart from the ppp interface everything else is irrelevant.
                                    pppoe is a layer 2 thing.
                                    Natting works on layer 3.

                                    JeGrJ 1 Reply Last reply Jun 20, 2023, 7:49 AM Reply Quote 1
                                    • JeGrJ
                                      JeGr LAYER 8 Moderator @netblues
                                      last edited by Jun 20, 2023, 7:49 AM

                                      @netblues said in Configure an PPPoE on an CARP IF:

                                      This never really worked. pppoe running on a carp interface isn't an option.

                                      It sure is. We have a few customers set up that way and working well - within boundaries. Of course in such a setup the secondary node of a CARP setup won't easily have internet which is/can be a problem and as such the setup isn't really recommended. But it IS working though. It's important to check though that both nodes on it's WAN "carrier" interface are connected to each other and the DSL modem correctly so both have access to dial-in if needed. If that's set up correctly it's a relatively simple setup:

                                      • either node gets the physical interface for the PPPoE connection assigned with its own IP, say 10.12.34.251 and .252
                                      • check pinging from one to the other and back (allow ICMP on that interface first)
                                      • then add a CARP VIP to it, e.g. .254 - that one should now be active on the primary node anad backup on the secondary node. If that is not the case you don't need to proceed with PPPoE stuff. That's basic CARP that should be working first!
                                      • If that's running you can now add the PPPoE interface but as carrier you don't choose your physical interface BUT the NEW CARP VIP you created (yes, that .254 one from above!) This ensures the PPPoE connection switches from node 1 to 2 and back if needed.
                                      • Then set up PPPoE as usual.
                                      • When finished assign that interface (pppoe0) as your WAN_PPPoE or something else like it. THAT one is your actual WAN, the other physical interface and the VIP on it are only a sort-of transfer/carrier network.

                                      Cheers

                                      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
                                      • D dougrabson referenced this topic on Sep 24, 2023, 2:55 PM
                                      • D dougrabson referenced this topic on Sep 24, 2023, 3:04 PM
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.