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

Routing between WAN and LAN

Scheduled Pinned Locked Moved Routing and Multi WAN
34 Posts 5 Posters 10.3k Views 3 Watching
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.
  • J Offline
    johnpoz LAYER 8 Global Moderator @viragomann
    last edited by johnpoz Jun 2, 2021, 4:08 PM Jun 2, 2021, 4:06 PM

    @viragomann said in Routing between WAN and LAN:

    In the WAN interface settings there is a check to "Block private networks"

    Yeah good point, but he will still need port forwards. Not firewall rules only.. He is not just routing.. He is just in a double nat setup.

    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 25.07 | Lab VMs 2.8, 25.07

    V 1 Reply Last reply Jun 2, 2021, 4:13 PM Reply Quote 0
    • V Offline
      viragomann @johnpoz
      last edited by Jun 2, 2021, 4:13 PM

      @johnpoz said in Routing between WAN and LAN:

      but he will still need port forwards

      Why? As I got him, he would only separate the two LANs. So he could disable NAT and do only firewalling.

      B J 2 Replies Last reply Jun 2, 2021, 4:17 PM Reply Quote 0
      • B Offline
        brandon-lizard @viragomann
        last edited by brandon-lizard Jun 2, 2021, 4:18 PM Jun 2, 2021, 4:17 PM

        @viragomann

        I setup a static route on my lan 1 router.

        Destination network -> 10.47.2.0
        Mask - > 255.255.255.0
        Gateway - > 10.47.1.143

        Result:

        Ping - > 10.47.2.1 - >>> Reply from 10.47.2.1 (that's good)

        Now, trying to ping a device on that network.

        Ping -> 10.47.2.101 - >>> Request timed out

        What gives, I don't understand?

        V 1 Reply Last reply Jun 2, 2021, 4:23 PM Reply Quote 0
        • V Offline
          viragomann @brandon-lizard
          last edited by Jun 2, 2021, 4:23 PM

          @brandon-lizard
          I assume, pfSense is the default gateway on the destination device.

          So ensure that the ping is not blocked by its own firewall.

          B 1 Reply Last reply Jun 2, 2021, 4:25 PM Reply Quote 0
          • B Offline
            brandon-lizard @viragomann
            last edited by Jun 2, 2021, 4:25 PM

            @viragomann

            No, on the destination device (10.47.2.101), the default gateway is 10.47.2.1

            V 1 Reply Last reply Jun 2, 2021, 4:27 PM Reply Quote 0
            • V Offline
              viragomann @brandon-lizard
              last edited by Jun 2, 2021, 4:27 PM

              @brandon-lizard said in Routing between WAN and LAN:

              the default gateway is 10.47.2.1

              So this is the LAN IP of pfSense, as you stated above. So it's ok.

              1 Reply Last reply Reply Quote 0
              • J Offline
                johnpoz LAYER 8 Global Moderator @viragomann
                last edited by johnpoz Jun 2, 2021, 4:31 PM Jun 2, 2021, 4:28 PM

                @viragomann said in Routing between WAN and LAN:

                So he could disable NAT and do only firewalling.

                No not really - he would have an asymmetrical nightmare.

                If he wanted to have pfsense be downstream, then he would need a transit network.. Soho routers not going to allow for such a setup.

                But yeah sure, you could very easy setup pfsense as a downstream router/firewall if your equipment supported it. But trying to use a transit network between the upstream and downstream with host on it is going to be asymmetrical.

                In his setup what he is calling lan1 is a transit between 2 routers - you can not have hosts on this network without either host routing or natting at the downstream router without having issues between the devices talking to each other because of the asymmetrical traffic flow.

                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 25.07 | Lab VMs 2.8, 25.07

                V 1 Reply Last reply Jun 2, 2021, 4:32 PM Reply Quote 0
                • V Offline
                  viragomann @johnpoz
                  last edited by Jun 2, 2021, 4:32 PM

                  @johnpoz
                  I think, I miss something here, what others see.
                  In the first post the second router wasn't mentioned. And now I still don't know, what its role...

                  A drawing might be helpful.

                  J 1 Reply Last reply Jun 2, 2021, 4:37 PM Reply Quote 0
                  • J Offline
                    johnpoz LAYER 8 Global Moderator @viragomann
                    last edited by johnpoz Jun 2, 2021, 4:38 PM Jun 2, 2021, 4:37 PM

                    @viragomann

                    He called it out here

                    something I need to change in my linksys router on lan 1

                    But yeah a drawing is always good! What I took from his statements is he has this.

                    this.png

                    That is going to be asymmetrical unless you host route on every device in what he calls his lan1, or nat at pfsense.

                    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 25.07 | Lab VMs 2.8, 25.07

                    V 1 Reply Last reply Jun 2, 2021, 4:43 PM Reply Quote 0
                    • V Offline
                      viragomann @johnpoz
                      last edited by Jun 2, 2021, 4:43 PM

                      @johnpoz
                      Ahh, yeah, didn't see it this way before, but absolutely agree.

                      B 1 Reply Last reply Jun 2, 2021, 4:47 PM Reply Quote 0
                      • B Offline
                        brandon-lizard @viragomann
                        last edited by Jun 2, 2021, 4:47 PM

                        @viragomann img06022021_0001.jpg

                        B 1 Reply Last reply Jun 2, 2021, 4:55 PM Reply Quote 0
                        • B Offline
                          brandon-lizard @brandon-lizard
                          last edited by Jun 2, 2021, 4:55 PM

                          @brandon-lizard

                          I'm not too familiar with nat and forwarding/routing stuff. I've been reading up on it, but it confuses me.

                          Are you saying it's not possible to access the computer at 10.47.2.101 from LAN 1?

                          B V 2 Replies Last reply Jun 2, 2021, 5:05 PM Reply Quote 0
                          • B Offline
                            bingo600 @brandon-lizard
                            last edited by bingo600 Jun 2, 2021, 5:11 PM Jun 2, 2021, 5:05 PM

                            @brandon-lizard

                            I'm sure @johnpoz will suggest this soon.

                            What pfSense device do you have ?
                            Does it have possibility 3 netcards ??

                            Here is a suggestion , that "keeps your" 10.47.1.x devices, no need to change ip addresses on the devices on that network (well except the linksys).
                            And introduces a "Pure Transit network" (No user devices on it) behind the Linksys.

                            Suggestion.png

                            /Bingo

                            If you find my answer useful - Please give the post a 👍 - "thumbs up"

                            pfSense+ 23.05.1 (ZFS)

                            QOTOM-Q355G4 Quad Lan.
                            CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                            LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                            B 1 Reply Last reply Jun 2, 2021, 5:11 PM Reply Quote 0
                            • V Offline
                              viragomann @brandon-lizard
                              last edited by Jun 2, 2021, 5:05 PM

                              @brandon-lizard
                              @johnpoz already mentioned all options you have here.

                              Best practice would be to set up a transit network between the Linksys and pfSense. So your LAN 1 devices simply send their packets to the Linksys and they get forwarded to pfSense.
                              But I assume, that router isn't capable of handling multiple subnets.

                              The other options are NAT or adding a static route for LAN 2 to each LAN 1 device you want to enable to communicate with that network.

                              When doing NAT you have add virtual IPs to pfSense for each device behind you want to access and forwarded the packets to the destination devices.

                              Both not optimal, I think. Maybe you can exchange the Linksys and pfSense, then you could set up a transit network.

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                brandon-lizard @bingo600
                                last edited by Jun 2, 2021, 5:11 PM

                                @bingo600

                                I do have 3 netcards available, yes. My pfsense is actually running in proxmox. I also have a nas and pbx. I'd like those to all be on the 10.47.2.0 network.

                                J B 3 Replies Last reply Jun 2, 2021, 5:14 PM Reply Quote 0
                                • J Offline
                                  johnpoz LAYER 8 Global Moderator @brandon-lizard
                                  last edited by Jun 2, 2021, 5:14 PM

                                  @brandon-lizard said in Routing between WAN and LAN:

                                  My pfsense is actually running in proxmox

                                  Yeah another complexity..

                                  Which you left off your drawing.

                                  I suggest you just do the double nat setup.. Which will work just fine, and would be default out of the box setup for pfsense.

                                  Only thing you have to do is as mentioned turn off the block rfc1918 rule, and setup your port forwards for stuff you want lan1 to access on lan2.

                                  https://docs.netgate.com/pfsense/en/latest/nat/port-forwards.html

                                  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 25.07 | Lab VMs 2.8, 25.07

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bingo600 @brandon-lizard
                                    last edited by Jun 2, 2021, 5:16 PM

                                    @brandon-lizard

                                    Then i suggest you move the 10.47.1.x network "behind/into" the pfSense.
                                    Tip: Keep all 10.47.x.x networks behind the pfSense (makes life easier).

                                    And make a 192.168.47.0/14 network as Transit.

                                    Now you can still restrict the 10.47.1.x devices via pfSense rules , if 10.47.2.x devices needs to be "protected". And you don't have to bother with portforwarding , as 10.47.1.x is now "behind/inside pfSense".

                                    If you find my answer useful - Please give the post a 👍 - "thumbs up"

                                    pfSense+ 23.05.1 (ZFS)

                                    QOTOM-Q355G4 Quad Lan.
                                    CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                    LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                    V 1 Reply Last reply Jun 2, 2021, 5:25 PM Reply Quote 0
                                    • B Offline
                                      bingo600
                                      last edited by Jun 2, 2021, 5:19 PM

                                      @johnpoz

                                      Sorry ... for making another suggestion 😊

                                      If you find my answer useful - Please give the post a 👍 - "thumbs up"

                                      pfSense+ 23.05.1 (ZFS)

                                      QOTOM-Q355G4 Quad Lan.
                                      CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                      LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                      J 1 Reply Last reply Jun 2, 2021, 5:23 PM Reply Quote 0
                                      • J Offline
                                        johnpoz LAYER 8 Global Moderator @bingo600
                                        last edited by Jun 2, 2021, 5:23 PM

                                        Yeah removing devices off the network being used between linksys and pfsense, would be a better solution yes. And would remove the need to port forward for his networks behind pfsense.

                                        But I have a sneaky suspicion he also has wireless devices connecting to his linksys router that would not be able to access anything behind pfsense without port forwards.

                                        If was me, I would ditch the linksys as a router and just use it as an AP. And use pfsense for all his routing needs. Pfsense would get his public IP on its wan.. And all his networks would be behind pfsense.

                                        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 25.07 | Lab VMs 2.8, 25.07

                                        B 1 Reply Last reply Jun 2, 2021, 5:26 PM Reply Quote 0
                                        • B Offline
                                          bingo600 @brandon-lizard
                                          last edited by Jun 2, 2021, 5:24 PM

                                          @brandon-lizard

                                          If you want to access the NAS or other "inside" devices from the internet.
                                          Then just do the portforwards as @johnpoz says , you'll have to do them anyway.

                                          I'd still suggest using a 192.168.47.0 as the "linksys (transit) net".

                                          To keep the 10.47.x.x/16 net "inside" the firewall.

                                          If you find my answer useful - Please give the post a 👍 - "thumbs up"

                                          pfSense+ 23.05.1 (ZFS)

                                          QOTOM-Q355G4 Quad Lan.
                                          CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                          LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                          1 Reply Last reply Reply Quote 0
                                          25 out of 34
                                          • First post
                                            25/34
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received