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

Access Modem GUI Behind Firewall

NAT
firewall rules nat rules interface gui access modem
5
107
9.0k
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
    Globaltrader312 @johnpoz
    last edited by Globaltrader312 Jun 24, 2024, 6:44 PM Jun 24, 2024, 6:04 PM

    @johnpoz

    sorry the answers always come a little late

    so I have deleted the static route again.

    then i checked the routing tbale once see screen shot interface and IP are visible.

    I created these any to any in the firewall for the lan rules for IPV4 and IPv6 according to the instructions for the failover setup erv, otherwise I created them separately.

    I have selected the failover gateway in the dropdown under advanced in the lan rules I think the firewall will send everything over it can it be because of that ? see screen shot....

    I would like to do your steps I'm just stuck at the point where I write I should create a rule about the Policy Based rules which exactly only the outbound nat I have or another ?

    I will do the sniff and then send the info. 🔒 Log in to view 🔒 Log in to view🔒 Log in to view 🔒 Log in to view no traffic comes through when I check with packet capture on interface Vigor BGE 1

    1 Reply Last reply Reply Quote 0
    • G
      Gblenn @johnpoz
      last edited by Gblenn Jun 24, 2024, 9:05 PM Jun 24, 2024, 6:19 PM

      @johnpoz said in Access Modem GUI Behind Firewall:

      Set up a static route, under System / Routing / Static Routes... create one with :

      You do not need a route.. If pfsense has an interface connected to network X.. Why would it send traffic out any other gateway be it default or not when it has an interface attached to that network?

      Unless you had a specific route, to this 192.168.5.X address it would always pick the interface it has in network 192.168.5.x

      Viewing the routing table in pfsense could be helpful info.. But there is zero reason to create a route, unless he has created a route with a better route for 192.168.5 out some other interface.

      If he is sending the traffic out some other interface because of policy routing then no its never going to work.. But create a route isn't going to fix his policy routing rule that would be sending traffic out the wrong gateway... He just needs a rule above his policy route that allows the traffic and uses pfsense normal routing..

      🔒 Log in to view

      No you are of course absolutely right, his routing table clearly shows 192.168.5.0/24 as well, and I find it strange that it wouldn't "just work". Very confusing all of it though... and if there is some policy rule as well, I missed that...

      A question though... will pfsense process send a request to an unknown IP via the WAN, even if it belongs to an RFC 1918 range? I guess I was thinking it would just drop it?

      J 1 Reply Last reply Jun 24, 2024, 8:07 PM Reply Quote 1
      • J
        johnpoz LAYER 8 Global Moderator @Gblenn
        last edited by Jun 24, 2024, 8:07 PM

        @Gblenn said in Access Modem GUI Behind Firewall:

        and I find it strange that it wouldn't "just work".

        because as you can see by his lan rules - he is policy routing.. Which has been brought up multiple times already.. He needs a rule to allows the normal routing to work..

        🔒 Log in to view

        Here

        https://docs.netgate.com/pfsense/en/latest/multiwan/policy-route.html#bypassing-policy-routing

        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

        G 1 Reply Last reply Jun 24, 2024, 9:02 PM Reply Quote 1
        • G
          Globaltrader312 @johnpoz
          last edited by Jun 24, 2024, 9:02 PM

          @johnpoz I apologise for asking this question.

          I have looked at the instructions, unfortunately I do not understand one point in the instructions it says to create an alias for RFC1918 and in the picture it can also be seen that RFC1918 was set as destination.

          but when i want to create a new rule, the destination RF1918 is displayed as invalid IP so i don't quite understand how i can set this i can only set an IP subnet e.g. 192.168.0.0/16

          J 1 Reply Last reply Jun 24, 2024, 9:13 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @Globaltrader312
            last edited by Jun 24, 2024, 9:13 PM

            @Globaltrader312 Huh.. You don't need to create such an alias you could just put in 192.168.0.0/16 cidr in the rule.. Or just your 192.168.5.1/32 or 192.168.5.0/24

            But creating an alias for all rfc1918 space would be done in the alias section

            🔒 Log in to view

            Here would be an example of using it in rule - this isn't a rule like you need but just an example of using the alias in a firewall rule

            🔒 Log in 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

            G 1 Reply Last reply Jun 24, 2024, 9:44 PM Reply Quote 1
            • G
              Globaltrader312 @johnpoz
              last edited by Jun 24, 2024, 9:44 PM

              @johnpoz

              I have now created the rule via the Policy Based Rules and traffic is also flowing see screen shot and packet capture

              but the GUI of the Vigor is still not accessible.

              can it be that I still have to enter the changed ports from vigor in the firewall 8080 and 444 which I changed because of an advice from another user a few posts before.🔒 Log in to view 🔒 Log in to view

              J 1 Reply Last reply Jun 25, 2024, 10:16 AM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @Globaltrader312
                last edited by johnpoz Jun 25, 2024, 10:17 AM Jun 25, 2024, 10:16 AM

                @Globaltrader312 well if your device is not listening on port 80 any more, and you try and talk to port 80 which is what your sniff shows - then yeah its not going to answer. Either change its port back to 80, or talk to it on port whatever you changed it too

                http://192.168.5.1:port

                But your sniff shows 192.168.5.0 -- that is not really a valid IP address using a /24 mask.. I thought you set your pfsense interface to be .2 and or .3 why would it be using .0??

                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

                G 1 Reply Last reply Jun 25, 2024, 2:36 PM Reply Quote 1
                • G
                  Globaltrader312 @johnpoz
                  last edited by Jun 25, 2024, 2:36 PM

                  @johnpoz

                  so i have now set the ports back to 80 and 443 it still does not work unfortunately

                  the 192.168.5.0/24 is because when I set Vigor to /32 under interfcaes no packets get through.

                  if i set it to /24 then packets go through at 192.168.5 but it says 192.168.5.0 / 24.🔒 Log in to view

                  J 1 Reply Last reply Jun 25, 2024, 2:56 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @Globaltrader312
                    last edited by Jun 25, 2024, 2:56 PM

                    @Globaltrader312 no idea what your talking about?

                    Your address there is 192.168.5.3, why would pfsense change the address it sends from to .0??? That doesn't happen

                    The mask of /24 means this

                    The Wire or network is .0, the host address on this /24 network is .1 to .254, the broadcast address is .255

                    What you show there is correct, the interface address would be .3, there is no scenario that I can think of where pfsense would jsut on its own change that to .0 as its source address when natting to that interface.

                    Please post your outbound nat rule..

                    Why do you show .3 and .4?

                    🔒 Log in to view

                    Did you create a vip or something? And your natting to the vip address? VIP is not something you need to create.. VIP was my attempt at showing you how it can be done when your actual interface has a actual public IP like mine does... You are using PPPoE so you don't need to create 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.7.2, 24.11

                    G 1 Reply Last reply Jun 25, 2024, 3:00 PM Reply Quote 1
                    • G
                      Globaltrader312 @johnpoz
                      last edited by Jun 25, 2024, 3:00 PM

                      @johnpoz 🔒 Log in to view

                      J 1 Reply Last reply Jun 25, 2024, 3:10 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @Globaltrader312
                        last edited by johnpoz Jun 25, 2024, 3:10 PM Jun 25, 2024, 3:10 PM

                        @Globaltrader312 just show your outbound nat tab.. Not the specific details of 1 of them - for a we know this one isn't even being used because you have some other one above it.

                        Example here is mine

                        🔒 Log in to view

                        But this isn't right

                        🔒 Log in to view

                        Click the dropdown and pick the Vigor address, which would be 192.168.5.3 from your screenshot

                        🔒 Log in 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

                        G 1 Reply Last reply Jun 25, 2024, 3:18 PM Reply Quote 1
                        • G
                          Globaltrader312 @johnpoz
                          last edited by Globaltrader312 Jun 25, 2024, 3:23 PM Jun 25, 2024, 3:18 PM

                          @johnpoz 🔒 Log in to view

                          thank you guys for your help it works after i entered the alias rfc1918 as soure and selected 192.168.5.0/24 as destination and Vigor aadress as translation address.🔒 Log in to view

                          J 1 Reply Last reply Jun 25, 2024, 4:28 PM Reply Quote 1
                          • J
                            johnpoz LAYER 8 Global Moderator @Globaltrader312
                            last edited by johnpoz Jun 25, 2024, 4:29 PM Jun 25, 2024, 4:28 PM

                            @Globaltrader312 so if you would of followed the instructions, you would of been done in like 2 seconds.

                            And actually understood that you were policy routing.. How did you think something would work when your shoving it out some gateway that is not connected to what you want to talk too?

                            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
                              JonathanLee
                              last edited by Jun 25, 2024, 7:18 PM

                              Great job, and you also learned port forwarding, ACL ordering, alias creation and much more. I love this forum you can learn so
                              much. Now you just need a OpenVPN configured with a NAS server for private cloud use

                              Make sure to upvote

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