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

    LAN1 to WAN1 and LAN2 to WAN2

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 3 Posters 694 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.
    • N Offline
      ntiesto
      last edited by

      Hi. I'm making a router/firewall with pfsense. I have this scenario:
      WAN1 x.x.x.x default gatway
      WAN2 y.y.y.y
      Lan1 10.0.0.0/22
      Lan2 10.4.17.0/24
      The LAN1 go out with WAN1 without problem. The LAN2 don't go out with WAN2.
      The ping in diagnostin from WAN2 to 8.8.8.8 is ok.
      Can you help me please?

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

        Well what rules did you put on lan2 firewall tab. Had you messed without automatic nat?

        What gateway is wan 2 suppose to use? Did you forward your lan2 traffic out this gateway via a firewall rule?

        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
        • N Offline
          ntiesto
          last edited by

          I make a rule in firewall/nat/outbound
          interface WAN2
          source 10.4.17.0/24
          source port *
          destination *
          destination port *
          nat address WAN2 address
          nat port *
          And in rules lan2
          accept protocol any source any destination WAN2 net

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

            Outbound NAT does not route traffic. It only determines what NAT is done on traffic routed out that interface by the routing table / policy routing, etc.

            You need to policy route LAN2 traffic out WAN2 using policy routing on the LAN2 rules (setting WAN2 as the gateway).

            accept protocol any source any destination WAN2 net

            pass protocol any source LAN2 net dest any gateway WAN2

            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
            • N Offline
              ntiesto
              last edited by

              Timoteo test this setting and I will say to youcolored text

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