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 15.1k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      "I have a VDSL2 router (10.0.0.1)"
      "I assigned the re2 physical interface and I set it to 10.0.0.1"

      How do you expect that to work??  Just curious… Do you mean you set re2 to 10.0.0.2?

      So what do you think you should do for nat, if your wanting to talk to a client on a 10 network on your wan interface that has no gateway and doesn't understand how to get to your 192.168 network on your lan??  Hint if you "nat" your 192.168 traffic to look like its coming from a 10 address, then your "router" will no how to talk back ;)

      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:

        "I have a VDSL2 router (10.0.0.1)"
        "I assigned the re2 physical interface and I set it to 10.0.0.1"

        How do you expect that to work??  Just curious… Do you mean you set re2 to 10.0.0.2?

        So what do you think you should do for nat, if your wanting to talk to a client on a 10 network on your wan interface that has no gateway and doesn't understand how to get to your 192.168 network on your lan??  Hint if you "nat" your 192.168 traffic to look like its coming from a 10 address, then your "router" will no how to talk back ;)

        I was wrong to write: the re2 physical interface has the IP 1.0.0.2.

        With these settings, it is possible to reach my goal? If so, how should I do? If not, what are the addresses of the router and re2 interface appropriate for do this?

        Thanks

        Bye

        balubeto

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

          Sorry but there is someone willing to help me?

          Thanks

          Bye

          balubeto

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

            So create an outbound nat using the vip you created of 10.0.0.2 - do you need a picture?

            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:

              So create an outbound nat using the vip you created of 10.0.0.2 - do you need a picture?

              How should I fill out this window:


              ?

              Thanks

              Bye

              balubeto

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

                This is how i have it done….  No "VIP" here...

                ADSL Modem in "Bridge"  with 172.20.254.1/29 IP address

                pfSense WAN PPPoE (re1)

                Modem Access Interface  "GEST"  (means: "gestión" = management)  ;)  (re1) with 172.20.254.6/29 IP address

                The rest of the info, in the attached images ;)

                001.png
                001.png_thumb
                002.png
                002.png_thumb
                003.png
                003.png_thumb
                004.png
                004.png_thumb
                005.png
                005.png_thumb
                006.png
                006.png_thumb

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

                  @ptt:

                  This is how i have it done….  No "VIP" here...

                  ADSL Modem in "Bridge"  with 172.20.254.1/29 IP address

                  pfSense WAN PPPoE (re1)

                  Modem Access Interface  "GEST"  (means: "gestión" = management)  ;)  (re1) with 172.20.254.6/29 IP address

                  The rest of the info, in the attached images ;)

                  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

                    Good catch ptt, no you do not need a vip if your NOT using the wan interface IP I guess.  Good catch that his wan is actually PPPoE.  I was over looking that.

                    But I would not suggest manual mode for the outbound nat, just use hybrid and add the nat for interface that is connected to your modem.

                    This is really no different than using a vip, but since your really not actually using the IP that is on your physical interface connected to your modem, you can just set the IP right on the interface and no need for a vip.

                    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
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      Yeah PPPoE is done differently. That writeup has you putting the IP subnet of the modem on the physical interface the PPPoE is on. No VIPs there.

                      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

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