• 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.
  • 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
                      17 out of 17
                      • First post
                        17/17
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.