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

Accessing modem from internal network

General pfSense Questions
5
17
1.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.
  • M
    MacUsers
    last edited by MacUsers Jun 16, 2021, 1:08 AM Jun 16, 2021, 1:07 AM

    Hi there,
    What's the best way of accessing the modem (LTE) from internal network? All the docs I have seen so far, talks about the PPPoE WAN, which is actually assigned to a virtual PPPoE adapter and create a new interface on the physical WAN interface, with an IP address in the same subnet as the modem. But for my mobile/LTE connection that directly assigned to the physical port, hence cannot create another interface on the same physical interface.

    So this is what I did:

    1. Created a VLAN on the parent WAN interface
    2. Created an interface on the newly created VLAN
    3. Created a Bridge, using the WAN and VLAN as the members
    4. Created a F/W rule on LAN, using LAN Net as source and Bridge Net as the destination
    5. Created an outbound NAT rule on the Bridge interface, nat'ing traffic from the LAN subnet to the LTE modem subnet

    doing so, I can access the modem page from the internal LAN, but is it the best way to do that, in this scenario? And I don't like bridging. Is there any better way?

    -San

    J G 2 Replies Last reply Jun 16, 2021, 2:11 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @MacUsers
      last edited by Jun 16, 2021, 2:11 AM

      @macusers said in Accessing modem from internal network:

      hence cannot create another interface on the same physical interface.

      Huh? Why are you creating vlans? And bridges? What is the LTE modems IP? Create a vip on the physical interface its plugged into.. Nat to that IP from your lan..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      M 1 Reply Last reply Jun 16, 2021, 5:38 AM Reply Quote 0
      • G
        gabacho4 Rebel Alliance @MacUsers
        last edited by gabacho4 Jun 16, 2021, 2:33 AM Jun 16, 2021, 2:30 AM

        @macusers I have a MikroTik LtAP modem/router combo that I use. It functions as the uplink for my pfsense router so pfsense knows where it is as my WAN gets an IP address from it. I just have a firewall rule on my LAN interface that says: accept any connection source LAN net with destination 192.168.88.1. Then in advanced I have the gateway as my WAN. Works like a charm. If your modem is in passthrough mode or something like they you’ll need to set up a static route since pfsense would have no way of knowing what your modem’s IP is.

        EDIT: yes I am double NAT’ed but things work for me with appropriate destination NAT rules. I could put the LtAP in passthrough but I got locked out once and said screw it and just left myself double NAT’ed.

        1 Reply Last reply Reply Quote 0
        • M
          MacUsers @johnpoz
          last edited by Jun 16, 2021, 5:38 AM

          @johnpoz said in Accessing modem from internal network:

          Huh? Why are you creating vlans? And bridges? What is the LTE modems IP? Create a vip on the physical interface its plugged into.. Nat to that IP from your lan..

          Okay, I'll try that.
          Created VLAN, just to mimic this, when no physical interface is available.
          https://docs.netgate.com/pfsense/en/latest/recipes/modem-access.html

          J 1 Reply Last reply Jun 16, 2021, 9:18 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @MacUsers
            last edited by Jun 16, 2021, 9:18 AM

            Here - my cable modem IP is the common 192.168. 100.1, my wan gets a public IP.

            So I have vip on my wan interface of 192.168.100.2/24, create the outbound nat via hybrid and bobs your uncle

            login-to-view

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            M 2 Replies Last reply Jun 16, 2021, 4:50 PM Reply Quote 0
            • M
              MacUsers @johnpoz
              last edited by Jun 16, 2021, 4:50 PM

              @johnpoz
              Interesting!! tried that quickly after reading your mail but didn't work - I was in half-sleep though 😊

              Let me follow what you did and report back here.

              @gabacho4
              My modem is running in IP passthrough mode. If the VIP trick works, then could avoid the static-route path aswell.

              1 Reply Last reply Reply Quote 0
              • A
                AndyRH
                last edited by Jun 16, 2021, 6:32 PM

                Your responses leave me wondering why mine works. My ATT router is in DMZ mode and gives pfSense an address of 75.som.thi.ng, but if I type 192.168.1.254 in the address bar of a browser the router menu pops up and I can do what I need.
                I have not added any rules to get to the ATT router. Worked like this from day 1.

                🤷

                o||||o
                7100-1u

                G M 2 Replies Last reply Jun 16, 2021, 7:51 PM Reply Quote 0
                • G
                  gabacho4 Rebel Alliance @AndyRH
                  last edited by Jun 16, 2021, 7:51 PM

                  @andyrh your setup works because the att modem is providing your pfsense an ip via dhcp. Even though the ip range is different than your att router ip both the att and the pfsense devices know the routing accordingly.

                  1 Reply Last reply Reply Quote 0
                  • M
                    MacUsers @johnpoz
                    last edited by MacUsers Jun 17, 2021, 3:33 PM Jun 17, 2021, 3:29 PM

                    Thanks @johnpoz, it worked!

                    I also had to setup a F/W rule to allow the traffic from my LAN net to make it work.

                    This is actually a test setup for the multi-WAN fail-over testing and for the completeness, this is what I did:

                    1. WAN1 - Static IP from ISP
                    2. WAN2 - LTE Dynamic IP
                    3. LAN1 - Local network: 10.1.10.1/28
                    4. WAN2 Modem - 192.168.1.1

                    Virtual IP on WAN2:
                    login-to-view

                    Out-bound NAT:
                    login-to-view
                    (I restricted the access only from the LAN1 interface, for the future proofing)

                    Firewall rule:
                    login-to-view

                    The modem rule should (if not must) be placed before any generic rule. And that's all!

                    Thanks @johnpoz, again!!

                    1 Reply Last reply Reply Quote 0
                    • M
                      MacUsers @AndyRH
                      last edited by Jun 17, 2021, 3:38 PM

                      @andyrh said in Accessing modem from internal network:

                      Your responses leave me wondering why mine works. My ATT router is in DMZ mode and gives pfSense an address of 75.som.thi.ng, but if I type 192.168.1.254 in the address bar of a browser the router menu pops up and I can do what I need.
                      I have not added any rules to get to the ATT router. Worked like this from day 1.

                      🤷

                      This is the part I didn't understand as well (but was lazy to investigate). My Virgin modem runs in modem-mode, so hands over the public IP (static, in my case) straight to pfSense. The Virgin modem admin-page run on local 192.168.100.1 address. I can also access the BB modem homepage from internal network, with out doing any extra step(s). Not sure how that works or pfSense figures that out.

                      -S

                      J 1 Reply Last reply Jun 17, 2021, 4:08 PM Reply Quote 0
                      • J
                        JKnott @MacUsers
                        last edited by Jun 17, 2021, 4:08 PM

                        @macusers

                        That's common. I can do the same using 10.0.0.1. This is done by the modem, not pfsense. What pfsense does is forward any addresses that are not on the local LAN out to the default gateway. The modem is in a position to intercept that address. I bet if you had a 192.168.100.0 subnet, then it wouldn't work.

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

                        M 1 Reply Last reply Jun 17, 2021, 5:24 PM Reply Quote 0
                        • M
                          MacUsers @JKnott
                          last edited by Jun 17, 2021, 5:24 PM

                          @jknott said in Accessing modem from internal network:

                          @macusers

                          I bet if you had a 192.168.100.0 subnet, then it wouldn't work.

                          that's the problem - I don't. My entire network rums on 10.1, 10.2 and 10.3 and the only thing that come close is a 192/168/60.0/28 subnet for my guest WiFi.

                          and in fact, apart from this LTE providing dynamic IP, there is no such different between my BB modem and this LTE modem, in terms how they both connected to pfSense.

                          I'd like to know what I"m missing here.

                          J 1 Reply Last reply Jun 17, 2021, 6:01 PM Reply Quote 0
                          • J
                            JKnott @MacUsers
                            last edited by Jun 17, 2021, 6:01 PM

                            @macusers

                            ????

                            Are you saying it works? Or it doesn't? I thought you were wondering how you could get to it. If you can and there's no 192.168.100.0 subnet then that's normal. Are you now saying it doesn't work???

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

                            M 1 Reply Last reply Jun 17, 2021, 6:15 PM Reply Quote 0
                            • M
                              MacUsers @JKnott
                              last edited by MacUsers Jun 17, 2021, 7:31 PM Jun 17, 2021, 6:15 PM

                              @jknott
                              It still works despite not having an internal 192.168.100.x subnet, which I struggle to understand how.

                              And if it was common/normal, then why I had to do all of the stuff that I mentioned above, for the LTE modem.

                              Just to clarify:
                              WAN1 - VMB Cable Modem: 192.168.100.1
                              WAN2 - LTE/Mobile Modem: 192.168.1.1

                              192.168.100.1 can be accessed without doing any extra steps (don't understand how) but for 192.168.1.1 need those VIP and NAT etc.

                              Both running in pure modem-mode but WAN1 with static IP and WAN2 with dynamic IP - that's the difference, mostly.
                              -S

                              J J 2 Replies Last reply Jun 17, 2021, 6:24 PM Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator @MacUsers
                                last edited by Jun 17, 2021, 6:24 PM

                                @macusers said in Accessing modem from internal network:

                                192.168.100.1 can be accessed without doing any extra steps

                                Yeah I can access my cable modem without having to do the nat/vip stuff as well.. All depends on what the modem does.. Pfsense doesn't know where to send 192.168.100.1 - so it goes towards your default gateway.. The modem says hey thats me!! and answers.

                                Only reason I show the nat/vip stuff is be it you "have" to or not.. Its the correct way to access another L3 network that sits on your wan L2.. Which is what the modems rfc1918 address is when your getting a public IP on your wan, etc.

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JKnott @MacUsers
                                  last edited by Jun 17, 2021, 7:49 PM

                                  @macusers said in Accessing modem from internal network:

                                  It still works despite not having an internal 192.168.100.x subnet, which I struggle to understand how.

                                  As I said, since pfsense doesn't have that address on a network it knows about, it sends the packet to the gateway. This means it passes through the modem, which can then intercept it. Your modem is configured to accept any packet from your network to that address.

                                  PfSense running on Qotom mini PC
                                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                  UniFi AC-Lite access point

                                  I haven't lost my mind. It's around here...somewhere...

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    MacUsers
                                    last edited by Jun 17, 2021, 8:14 PM

                                    thanks both @johnpoz & @JKnott! understood!!

                                    1 Reply Last reply Reply Quote 0
                                    • A astrolabius referenced this topic on Nov 1, 2023, 8:05 PM
                                    3 out of 17
                                    • First post
                                      3/17
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.