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.0k 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

      @johnpoz:

      I already solved your problem multiple times and told you exactly what do for gosh sake…

      The info you need is in the access my modem article..
      https://doc.pfsense.org/index.php/Accessing_modem_from_inside_firewall

      Here are some pictures.. Now I have to use a vip to do this since I am actually using my WAN with a public IP on it.. But you are using pppoe so you would do this via interface actually assigned to your WAN interface.

      So my modem uses 192.168.100.1/24 -- I know its a /24 because when it doesn't have a isp connection it hands out IPs via dhcp in 192.168.100.0/24  And doesn't really matter if you have the mask exactly right as long as your not overlapping with your other networks, and your modem and IP on your wan are in the same network..  So use /24!!! is your best option if you do not know for sure what the mask is..

      So I create VIP..  You would do it on your wan interface that your calling modem_access.. You then create an outbound nat that says hey when going to that network from your source use this interface address..

      You can see me accessing my modem, you can see the states in the state table on pfsense.. What is it that your not understanding here???  Do you not understand how pfsense nats to yoru public network??  Its the SAME freaking thing.. But only to another rfc1918 network..

      Which devices are the 192.168.100.2 and 192.168.9.x IPs displayed in your image?

      Thanks

      Bye

      balubeto

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

        That is my freaking VIP…  Its right there in the freaking pictures!!  What do you not get??  Nobody can be this freaking dense.. Your just freaking trolling now...

        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

          router=10.0.0.1/24
          Firewall=192.168.1.1


          I still can not access the router. Why?

          balubeto

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

            Because "you're doing it wrong" !  ;)

            As pointed/noted before, since you are using PPPoE on WAN,  the VIP is NOT needed/necessary….

            https://forum.pfsense.org/index.php?topic=118740.msg658480#msg658480

            https://forum.pfsense.org/index.php?topic=118740.msg658918#msg658918

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

              Dude I think he is just trolling nobody can be this freaking dense… Its just not possible.. It's been stated over and over again..  I think his just thinks its funny to see how long we will continue to try and help him..

              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

                The ptt's solution works in part because I can access the router but, when I disconnect and connect the PPPoE service through the Status –-> Interfaces window, the Internet does no more work:


                While the johnpoz's solution (logically disabling the Modem_access interface) does not work because I can not access my router:

                In addition, some of you wanted to know the interfaces and the bridges that I have:

                So, 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

                  ARrrgghhh I am done with this thread - you clearly are freaking trolling.. Who told you to turn off your PPPoe?  Connection..  And why and the F are you bridging all your interfaces…  Told you not to do that!!!  WTF dude???

                  Nobody can be this freaking DENSE.. .Clearly your just trolling hope you having fun... Im out..

                  Even if you wanted to bridge some interfaces... Nobody can be this freaking stupid... Really!!!

                  How would this freaking work dude??  Come on!!!  If you just don't have clue one on what a mask is or what IPs are then say so..  Once again you have 10/8 as a dest and on your lan side??  And you put a 192.168.1. on your modem_access (wan)??  What???

                  thisstupid.jpg_thumb
                  thisstupid.jpg

                  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:

                    ARrrgghhh I am done with this thread - you clearly are freaking trolling.. Who told you to turn off your PPPoe?  Connection..  And why and the F are you bridging all your interfaces…  Told you not to do that!!!  WTF dude???

                    Nobody can be this freaking DENSE.. .Clearly your just trolling hope you having fun... Im out..

                    Even if you wanted to bridge some interfaces... Nobody can be this freaking stupid... Really!!!

                    How would this freaking work dude??  Come on!!!  If you just don't have clue one on what a mask is or what IPs are then say so..  Once again you have 10/8 as a dest and on your lan side??  And you put a 192.168.1. on your modem_access (wan)??  What???

                    In your image, how come your pfSense has created the two automatic rules where the 10.0.0.0/8 address also appears in the Source? To me this address does not appear.

                    Why?

                    Thanks

                    Bye

                    balubeto

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

                      I'm still waiting for a solution to this old problem.

                      Thanks

                      Bye

                      balubeto

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

                        Might be time to try posting to the forum for your native language.

                        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 why to johnpoz, the automatic rules are:

                          whereas to me, they are:

                          Where am I wrong?

                          Thanks

                          Bye

                          balubeto

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

                            Dude that is what you posted.. That you had 10/8 on you automatic rules

                            What can you not understand???  WTF really??  You posted this a while back..

                            So did you fix that now from your current post..  We have went over this and over this and over this..

                            Its not freaking rocket science… If its not working then you have the IPs wrong, or mask wrong or whatever..  Lets go over this basic concept yet again!!!

                            Device you want to get to is 10.0.0.1/???  What is the mask on this??  Your using 8, ok that should work even if the other guy had different if your using 10.0.0.2... But from your one posting your listing your 10.0.0.1 address so I can not make out WTF your doing!!!!  See pic attached where you post up with address of 10.0.0.1 on pfsense..

                            Right from the help doc

                            https://doc.pfsense.org/index.php/Accessing_modem_from_inside_firewall
                            Configure a new Interface

                            A PPPoE WAN is actually assigned to a virtual PPPoE adapter, not the physical port.

                            Under Interfaces > (assign), create a new OPT interface, and assign it to the physical network card that is on WAN. For example, if the WAN on the assignment page is "PPPOE0(re2)", choose re2, and Save the changes.

                            Go to Interfaces > (new OPT interface), and Enable the interface. Give it an IP address in the same subnet as the modem, such as 192.168.1.5/24. Do not set a gateway. Rename the interface to ModemAccess or a similar useful name.

                            So you have PPPoE interface right??????  And its on what physical interface on your pfsense box Re2, em0, eth1, what???  Post up a screen shot of your interfaces!!

                            If your using PPPoE then you DO NOT USE A VIP!!!  you make sure you have an interface assigned to your physical wan interface.. Re2 if that is your wan..  You then give it an IP and mask in the network your modem devices is on.. if your modem is 10.0.0.1, you really should know what the mask is?  But if you want to use /8 ok on this opt interface you created that is using re2 if you do not have a WAN interface already assigned to this??  POST UP YOUR INTERFACES!!!

                            How are you even sure this modem interface is 10.0.0.1???  What if you just turn the physical interface that is connected to this modem to dhcp.. Does the physical interface get an IP??

                            whatisyourvip.png
                            whatisyourvip.png_thumb

                            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
                            • H
                              hda
                              last edited by

                              @johnpoz:

                              POST UP YOUR INTERFACES!!!

                              Now you get screenshot all over again  ;D 8)

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by

                                Assigned the underlying WAN interface used for PPPoE and setting up a GW pointing to the modem IP (which of course needs to be on a separate subnet) there takes about 2 minutes. Works for me everywhere. Worked with 2.2.x, still works exactly the same with 2.3.x. It does NOT take 1/4 year to get working. No messing with hybrid NAT and whatever nonsense.

                                Solution:

                                >>> Go hire someone who can follow simple instructions, ugh. <<<

                                (Note: above above won't work if you try to access the modem from WAN via port forward. Given the topic's subject here, I do NOT think that's what the OP is trying to do, nor what 99.999% of other users are trying to do. All they want is a simple access from LAN to the modem. Gimme a break with hybrid NATs.)

                                Screenshot_modemaccess.png
                                Screenshot_modemaccess.png_thumb
                                Screenshot_modemaccess2.png
                                Screenshot_modemaccess2.png_thumb
                                Screenshot_modemaccess0.png
                                Screenshot_modemaccess0.png_thumb

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

                                  Firewall: 192.168.1.1/24
                                  VDSL2 router: 10.0.0.1/8

                                  Now, my current configuration is:











                                  When I type the 10.0.0.1 address in the browser, the firewall Login window appears instead of that of the router.

                                  Where did I go wrong?

                                  Thanks

                                  Bye

                                  balubeto

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

                                    Dude really?????????

                                    Your modem is 10.0.0.1 that your trying to get to.. So you set pfsense IP to 10.0.0.1 – how and the F would that work??  Come on dude!!

                                    And your still showing 10/8 on the LAN side...

                                    I am just done - nobody on the planet can be this freaking DENSE!!!

                                    Why are you setting your "modem access" interface on em2???  How and the F would that work - come on!!

                                    sameIP.png
                                    sameIP.png_thumb
                                    natting10.png
                                    natting10.png_thumb
                                    wtf.png
                                    wtf.png_thumb

                                    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:

                                      Dude really?????????

                                      Your modem is 10.0.0.1 that your trying to get to.. So you set pfsense IP to 10.0.0.1 – how and the F would that work??  Come on dude!!

                                      And your still showing 10/8 on the LAN side...

                                      I am just done - nobody on the planet can be this freaking DENSE!!!

                                      Why are you setting your "modem access" interface on em2???  How and the F would that work - come on!!

                                      Sorry but I'm following the guide https://doc.pfsense.org/index.php/Accessing_modem_from_inside_firewall.

                                      Where did I go wrong?

                                      Thanks

                                      Bye

                                      balubeto

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

                                        So your trying to access an IP 10.0.0.1, so you give pfsense the SAME address 10.0.0.1 - how would that work???  Really… You need to set this to 10.0.0.2

                                        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
                                        • D
                                          doktornotor Banned
                                          last edited by

                                          ZOMG.

                                          1/ You cannot have the same IP on the modem and on pfSense.
                                          2/ You do NOT need a frickin' /8 for point-to-point link!!!

                                          If it still does not work, forget the hybrid NAT crap, switch it to automatic and set up a gateway as noted above.

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

                                            @johnpoz:

                                            So your trying to access an IP 10.0.0.1, so you give pfsense the SAME address 10.0.0.1 - how would that work???  Really… You need to set this to 10.0.0.2

                                            I understood the trick: it is only necessary to configure the Modem_access interface like this:

                                            Thanks

                                            Bye

                                            balubeto

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