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

    Accessing modem from inside firewall

    Scheduled Pinned Locked Moved NAT
    61 Posts 8 Posters 14.2k 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.
    • B
      balubeto
      last edited by

      I can not understand the 003 image. What rules should I add?

      Thanks

      Bye

      balubeto

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        that is not a rule.. That is the actual interface connected to the modem.. Just putting an IP address on it that matches with the IP address of the modems IP.

        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.8, 24.11

        1 Reply Last reply Reply Quote 0
        • pttP
          ptt Rebel Alliance
          last edited by

          You create & configure the "Interface" for modem access (GEST in my case)

          then, as John pointed, you set the NAT as "Hybrid"

          now, you create the NAT Rule (Mapping) to access the Modem…

          That's all..

          NAT_Hybrid.png
          NAT_Hybrid.png_thumb
          NAT_CFG.png
          NAT_CFG.png_thumb

          1 Reply Last reply Reply Quote 0
          • B
            balubeto
            last edited by

            Firewall 192.168.1.1
            Router 10.0.0.1

            I configured the router in bridge mode and have configured the firewall in this way





            When I connect my router to the WAN port on the firewall, I can't access the router. Where did a mistake?

            Thank you,

            Bye

            balubeto

            1 Reply Last reply Reply Quote 0
            • pttP
              ptt Rebel Alliance
              last edited by

              Your NAT setting is wrong ….  Set/leave it as "Hybrid Outbound NAT"

              ![Your NAT is wrong.jpg](/public/imported_attachments/1/Your NAT is wrong.jpg)
              ![Your NAT is wrong.jpg_thumb](/public/imported_attachments/1/Your NAT is wrong.jpg_thumb)

              1 Reply Last reply Reply Quote 0
              • B
                balubeto
                last edited by

                @ptt:

                Your NAT setting is wrong ….  Set/leave it as "Hybrid Outbound NAT"

                This setting

                is fine?

                Thanks

                Bye

                balubeto

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  Why do you have 10.0.0.0/8 on your lan side??  Also why is your LAN connected to Bridge0???

                  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.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • B
                    bimmerdriver
                    last edited by

                    My gateway uses a private network address for the management interface. My routers are connected to a bridged port so they don't have visibility of the private network. I wanted to be able to access the gateway, but I was okay with not having it accessible from any computer. I had a spare NIC on the hyper-v server that is hosting the pfsense routers, so I connected it one of the LAN ports on the gateway and bumped up the metric so the route wouldn't be used except to access the private address. I don't think there's any reason why it wouldn't work on any host with dual NICs.

                    1 Reply Last reply Reply Quote 0
                    • B
                      balubeto
                      last edited by

                      Router VDSL2 in Bridge mode: 10.0.0.1
                      Firewall hardware: 192.168.1.1

                      I connected the router to the WAN port of the firewall configuring it in this way:










                      but I can not access the router from the LAN and I have no Internet because the PPPoE client can not connect even if its login is correct. Why?

                      Thanks

                      Bye

                      balubeto

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        Does your PPPoE work if you get rid of all the modem access junk? Is there anything interesting in the PPP logs? Are you sure the modem is in bridge mode?

                        After you get PPPoE working again and you go back to trying to access the modem, are you sure it's 10.0.0.0/8 and not 10.0.0.0/24?

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • B
                          balubeto
                          last edited by

                          @Derelict:

                          Does your PPPoE work if you get rid of all the modem access junk? Is there anything interesting in the PPP logs? Are you sure the modem is in bridge mode?

                          After you get PPPoE working again and you go back to trying to access the modem, are you sure it's 10.0.0.0/8 and not 10.0.0.0/24?

                          Why should I put 10.0.0.0/24?

                          Thanks

                          Bye

                          balubeto

                          1 Reply Last reply Reply Quote 0
                          • DerelictD
                            Derelict LAYER 8 Netgate
                            last edited by

                            Because that's the netmask the cable modem is configured for? I asked if you were sure. I didn't say you should change it.

                            Chattanooga, Tennessee, USA
                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

                            1 Reply Last reply Reply Quote 0
                            • jahonixJ
                              jahonix
                              last edited by

                              And on your Modem_access Interface you should UNcheck "Block private networks".

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                How exactly do you think your nat is going to work?  You have 10.0.0/8 as dest but you also have it a source for your lan automatic nat, etc.

                                What I would do is START over!!!  delete all that crap.. And why again do you think you need to run a bridge on pfsense?

                                And I find it highly unlikely your "modem" is using /8 as its mask for its 10 address.. Your status doesn't even show your wan interface up..

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • B
                                  balubeto
                                  last edited by

                                  I noticed that if I enable the Interfaces –-> Modem_access interface and, then, I click on the Connect button on the Status ---> Interfaces, the firewall connects to the Internet but the computers on the LAN have no more Internet. Why?

                                  Thanks

                                  Bye

                                  balubeto

                                  1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by

                                    Prob has something to do with running same 10/8 network on both your wan and lan?  Or maybe some nonsense you did with a bridge??

                                    What I would do is start over!!  NO freaking bridges… Actually validate what your modem is using for its mask on this 10 address.  And then create your interface using that.. And don't use an overlapping network on your lan side, 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.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      balubeto
                                      last edited by

                                      @johnpoz:

                                      Prob has something to do with running same 10/8 network on both your wan and lan?  Or maybe some nonsense you did with a bridge??

                                      What I would do is start over!!  NO freaking bridges… Actually validate what your modem is using for its mask on this 10 address.  And then create your interface using that.. And don't use an overlapping network on your lan side, etc.

                                      Excuse me, but how do I solve my problem?

                                      Thanks

                                      Bye

                                      balubeto

                                      1 Reply Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by

                                        My gawd dude… I just told you!!

                                        Lets start with basic info number 1... Ok your modem is using a 10.address - what is the mask on that?  I find it like impossible to believe it would be /8 so what it /24?

                                        So if its 10.0.0.1/24 then make your interface 10.0.0.2/24

                                        On the lan side of your network - do not use ANY networks that are 10.0.0.0/24 or that would overlap it like 10.0.0.0/8 or /16 or /23 etc.. -- say away from all 10 networks would be my suggestion.

                                        Then create your outbound so when you want to talk to 10.0.0/24 you nat to your 10.0.0.2 address.  Using hybrid mode put that outbound nat above your automatic nats.

                                        And don't create any freaking bridges!!!  You have ZERO use for them!!

                                        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.8, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          balubeto
                                          last edited by

                                          @johnpoz:

                                          My gawd dude… I just told you!!

                                          Lets start with basic info number 1... Ok your modem is using a 10.address - what is the mask on that?  I find it like impossible to believe it would be /8 so what it /24?

                                          So if its 10.0.0.1/24 then make your interface 10.0.0.2/24

                                          On the lan side of your network - do not use ANY networks that are 10.0.0.0/24 or that would overlap it like 10.0.0.0/8 or /16 or /23 etc.. -- say away from all 10 networks would be my suggestion.

                                          Then create your outbound so when you want to talk to 10.0.0/24 you nat to your 10.0.0.2 address.  Using hybrid mode put that outbound nat above your automatic nats.

                                          And don't create any freaking bridges!!!  You have ZERO use for them!!

                                          So, can you explain in detail what I have to do to try if your idea works?

                                          Thanks

                                          Bye

                                          balubeto

                                          1 Reply Last reply Reply Quote 0
                                          • johnpozJ
                                            johnpoz LAYER 8 Global Moderator
                                            last edited by

                                            How is that not enough detail for you.. .Really??  Do you want me to remote to your system and do it for you?

                                            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.8, 24.11

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