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

    Multiple PPPoE with the same gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 3 Posters 7.5k 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.
    • D Offline
      Decker
      last edited by

      (Sorry for my english ;) I need to estabilish 2 PPPoE connections (2 pppoe sessions) to my internet provider and set up load balancing. But they have same gateway ip (for example, pppoe0 uses login - user0, dynamic wan ip and gateway ip - 10.50.254.197, pppoe1 uses login - user1, dynamic wan ip and gateway ip - 10.50.254.197 too). pppoe0 connection runs normally, but i have problems with pppoe1 connection, it can't start. Screenshots of two connections and ifconfig you can see in Russian Support forum - http://forum.pfsense.org/index.php/topic,28245.msg147055.html#msg147055 .

      ppp.log:

      Sep 13 03:24:32	ppp: [opt1] IPCP: rec'd Configure Request #2 (Ack-Sent)
      Sep 13 03:24:32	ppp: [opt1] IPADDR 10.50.254.197
      Sep 13 03:24:32	ppp: [opt1] 10.50.254.197 is OK
      Sep 13 03:24:32	ppp: [opt1] IPCP: SendConfigAck #2
      Sep 13 03:24:32	ppp: [opt1] IPADDR 10.50.254.197
      Sep 13 03:24:32	ppp: [opt1] IPCP: SendConfigReq #2
      Sep 13 03:24:32	ppp: [opt1] IPADDR 0.0.0.0
      Sep 13 03:24:32	ppp: [opt1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
      Sep 13 03:24:32	ppp: [opt1] IPCP: rec'd Configure Reject #2 (Ack-Sent)
      Sep 13 03:24:32	ppp: [opt1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
      Sep 13 03:24:32	ppp: [opt1] IPCP: SendConfigReq #3
      Sep 13 03:24:32	ppp: [opt1] IPADDR 0.0.0.0
      Sep 13 03:24:32	ppp: [opt1] IPCP: rec'd Configure Nak #3 (Ack-Sent)
      Sep 13 03:24:32	ppp: [opt1] IPADDR 212.106.34.109
      Sep 13 03:24:32	ppp: [opt1] 212.106.34.109 is OK
      Sep 13 03:24:32	ppp: [opt1] IPCP: SendConfigReq #4
      Sep 13 03:24:32	ppp: [opt1] IPADDR 212.106.34.109
      Sep 13 03:24:32	ppp: [opt1] IPCP: rec'd Configure Ack #4 (Ack-Sent)
      Sep 13 03:24:32	ppp: [opt1] IPADDR 212.106.34.109
      Sep 13 03:24:32	ppp: [opt1] IPCP: state change Ack-Sent --> Opened
      Sep 13 03:24:32	ppp: [opt1] IPCP: LayerUp
      Sep 13 03:24:32	ppp: [opt1] 212.106.34.109 -> 10.50.254.197
      Sep 13 03:24:32	ppp: [opt1] IFACE: Adding IPv4 address to pppoe1 failed: File exists
      Sep 13 03:24:32	ppp: [opt1] IFACE: IfaceChangeAddr() error, closing IPCP
      Sep 13 03:24:32	ppp: [opt1] IPCP: parameter negotiation failed
      Sep 13 03:24:32	ppp: [opt1] IPCP: state change Opened --> Stopping
      Sep 13 03:24:32	ppp: [opt1] IPCP: SendTerminateReq #5
      Sep 13 03:24:32	ppp: [opt1] IPCP: LayerDown
      Sep 13 03:24:32	ppp: [opt1] IPCP: rec'd Terminate Ack #5 (Stopping)
      Sep 13 03:24:32	ppp: [opt1] IPCP: state change Stopping --> Stopped
      Sep 13 03:24:32	ppp: [opt1] IPCP: LayerFinish
      Sep 13 03:24:32	ppp: [opt1] Bundle: No NCPs left. Closing links...
      Sep 13 03:24:32	ppp: [opt1] Bundle: closing link "opt1_link0"...
      Sep 13 03:24:32	ppp: [opt1_link0] Link: CLOSE event
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: Close event
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: state change Opened --> Closing
      Sep 13 03:24:32	ppp: [opt1_link0] Link: Leave bundle "opt1"
      Sep 13 03:24:32	ppp: [opt1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
      Sep 13 03:24:32	ppp: [opt1] IPCP: Close event
      Sep 13 03:24:32	ppp: [opt1] IPCP: state change Stopped --> Closed
      Sep 13 03:24:32	ppp: [opt1] IPCP: Down event
      Sep 13 03:24:32	ppp: [opt1] IPCP: state change Closed --> Initial
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: SendTerminateReq #2
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: LayerDown
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: rec'd Terminate Ack #2 (Closing)
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: state change Closing --> Closed
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: LayerFinish
      Sep 13 03:24:32	ppp: [opt1_link0] Link: DOWN event
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: Down event
      Sep 13 03:24:32	ppp: [opt1_link0] LCP: state change Closed --> Initial
      

      I think that the problem in the same gateway (Sep 13 03:24:32 ppp: [opt1] 212.106.34.109 -> 10.50.254.197
      Sep 13 03:24:32 ppp: [opt1] IFACE: Adding IPv4 address to pppoe1 failed: File exists) and in the routing tables. For both connections I have same gateway. How to establish two ADSL connections with same gateway?

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG Offline
        GruensFroeschli
        last edited by

        This is not possible.
        You need a device in front of the pfSense which does NAT for one of your WANs.
        Since you write that these are ADSL lines, i suppose you can configure one of your modems to NAT traffic for you.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • D Offline
          Decker
          last edited by

          @GruensFroeschli:

          This is not possible.
          You need a device in front of the pfSense which does NAT for one of your WANs.
          Since you write that these are ADSL lines, i suppose you can configure one of your modems to NAT traffic for you.

          This is not possible in current version (2.0 beta) or this is impossible at all?

          I understand that i can set up one of the connection in my ADSL modem, for example pppoe0 is set up in modem and through modem NAT it comes to pfSense as DHCP interface (for example), and second connection (pppoe1) is configured by pfSense directly (i.e. in modem we have one pppoe and one bridge). But if i have more than two connections? I want to setup a some kind of gateway for torrent downloading with multipath routing / load balancing … for two connections (one in modem and one in pfSense, WAN1 = DHCP, WAN2 = PPPoE) i've already done this (each connection / account have 5 Mbps incoming speed shaped by my provider, for two - i have 5 + 5 = 10 Mbps with load balancing, it's already work for me) ... But i have another one account ... and wanna set up 3 connections ... and want 15 Mbps download speed from internet with my ADSL2+ ... ) Can i do this without another router?

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG Offline
            GruensFroeschli
            last edited by

            It is currently impossible with any version of pfSense.

            If you have more than 2 modem it should not be a problem.
            Just configure the modem to NAT traffic.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • A Offline
              aiselcom
              last edited by

              Sorry to jump on this thread but I have a similar question.  I am planning to deploy pf to run my wifi network.  I have 3 wan connections for loadbalancing and redundancy.  I will use captive portal and user manager as well.

              WAN:
              2 DSL lines and 1 cable isp.  DSL connections are PPPOE.

              LAN: Switch connected to LAN port.  WIFI access points (ubiquiti) connected to the switch.

              Are you saying that I can only do one PPPOE connection from pf?
              so my WAN setup can only work as follows:

              1. pppoe directly from pf
              2. PPPOE on modem/router and NAT to PF
              3. cable ISP to PF
              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG Offline
                GruensFroeschli
                last edited by

                Yes.

                With 2.0 you will have the option to terminate all the PPPoE connections on the pfSense.
                However the limitation that no two WANs can have the same gateway still applies.

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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