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

    Access router (modem) in front of WAN interface

    Scheduled Pinned Locked Moved Routing and Multi WAN
    12 Posts 3 Posters 848 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
      demux
      last edited by

      Hi,

      I do have a DSL router (Vigor 130) as a modem in front of pfSense, means pfSense does the PPPoE login stuff. This router has an http port open on an IP address of 192.168.199.250 where it can be configured.

      As long as there is no DSL connection the WAN port of pfSense does not have an IP address and I am not able to access the Vigor. Is there any way to get through the WAN port and access the Vigor even if the PPPoE connection is down?

      I tried an IP alias, policy routing, static routes... did not work.

      Thanx!
      -demux

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @demux
        last edited by

        @demux
        How to access the modem is well explained in the pfSense docs: Accessing a CPE/Modem from Inside the Firewall

        1 Reply Last reply Reply Quote 0
        • D
          demux
          last edited by

          @viragomann

          Uiii, did not know about that part of the documentation. Thanks !!!!

          1 Reply Last reply Reply Quote 0
          • neogridN
            neogrid
            last edited by

            Do what this dude has done https://www.linuxserver.io/blog/2019-11-10-modem-webui-pfsense

            1 Reply Last reply Reply Quote 0
            • D
              demux
              last edited by demux

              I just wanted to add the interface but the interface is not listed as available.

              When adding an interface and changing the interface port afterwards I get this:

              The following input errors were detected:
              Port igb1 was assigned to 2 interfaces: WAN1 (WAN) OPT4 (OPT4)

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @demux
                last edited by

                @demux
                So there is already assigned an interface to the port.
                What is WAN1? How is it configured?

                Do you have multiple WAN connections or just a single?
                As you stated above, your WAN is configured for PPPoE, so you can also use the native port for modem access.

                D 1 Reply Last reply Reply Quote 0
                • D
                  demux @viragomann
                  last edited by

                  @viragomann

                  It works fine for the PPPoE interface, I successfully added a second interface.
                  Yes, there are multiple WAN connections. I just tried that for the other interface (DHCP). We need to access two modems.
                  (Sorry forgot to mention that.)

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @demux
                    last edited by

                    @demux
                    The suggested method works on a PPPoE interface, as you mentioned you want to do.

                    On a DHCP ctivated interface you cannot add an additional IP configuration and this is also not needed at all.

                    So the modem is in bridged mode?
                    However, before you go further with the DHCP, ensure that the modem is replying to it's private IP on the same port.
                    Some modems you can only be accessed on different ports then the bridged one.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      demux @viragomann
                      last edited by demux

                      @viragomann

                      It is in bridged mode. And it does respond. It is on 192.168.100.1
                      But I cannot get through pfSense.

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        viragomann @demux
                        last edited by

                        @demux
                        So you have add a virtual IP to that interface out of the modems private subnet. Firewall > virtual IPs. Use type IP alias.

                        Assuming the modems private subnet is 192.168.100.1/24, assign e.g. 192.168.100.10/24 to the interface.
                        Add an outbound NAT rule for the destination 192.168.100.0/24 (or at least 192.168.100.1/32) and set the translation address to 192.168.100.10.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          demux @viragomann
                          last edited by

                          @viragomann

                          Means basically the same as with PPPoE/VDSL except that not adding a separate interface but adding an IP alias. Right?

                          V 1 Reply Last reply Reply Quote 0
                          • V
                            viragomann @demux
                            last edited by

                            @demux
                            Yes, it's the same use case. You need an IP within the modems private subnet which you're natting the source packets to to communicate with the modem.
                            Since the interface has already an IPv4 from the DHCP, you need to add the additional IP as a virtual one.

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