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

    Routing one LAN traffic through a specfic WAN link

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 1.7k 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.
    • A Offline
      acoustiq
      last edited by

      Hi guys,

      What I have right now is this:

      2 WAN links = WAN and OPT2
      2 LAN links = LAN and OPT1

      I have a specific LAN IP [192.168.1.201] that needs to go out only through OPT2 - how do I do that?

      I realize it should be just a simple firewall rule, but I really can't figure out how to do it properly…

      The local IP is the mail server and I have the DNS MX records for it on OPT2. If I don't do this, the emails try to go out through WAN [a lot faster] but all my emails are filtered by remote mail servers [which is logical, as it's a simple dynamic PPPoE link for end-users with no DNS records]

      Thanks!

      1 Reply Last reply Reply Quote 0
      • M Offline
        marvosa
        last edited by

        Use 1:1 NAT:

        http://doc.pfsense.org/index.php/1:1_NAT

        1 Reply Last reply Reply Quote 0
        • N Offline
          Nachtfalke
          last edited by

          Define the WAN1 gateway in the firewall rule for source 192.168.1.201 on LAN tab.

          1 Reply Last reply Reply Quote 0
          • A Offline
            acoustiq
            last edited by

            For some reason I couldn't get 1:1 NAT to work properly. Kept messing up some other things…

            However, the second suggestion worked flawlessly.

            Thanks a lot guys, problem solved!

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