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

    send packets out the same interface it arrived on

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 377 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.
    • T
      thetevfik
      last edited by

      My questions seems rather an easy one but I couldnt make it work.
      I have servers behind Netgate Firewall and two wan interfaces.
      I want packets arriving from wan1 to leave again from wan1. Same goes with wan2.
      I want packets arriving from wan2 to leave again from wan2.
      In my case all packets regardless of their arriving interface, leave the inteface where default gw is.
      Both modems I have are performing destination NAT.
      07f1cc90-9673-45aa-aeae-c18d9f9e719c-image.png

      Any hint will be appreaciated.

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        @thetevfik said in send packets out the same interface it arrived on:

        I want packets arriving from wan1 to leave again from wan1. Same goes with wan2.
        I want packets arriving from wan2 to leave again from wan2.

        I guess, you're talking about responds packets on request from outside.
        So that's the default behaviour in pfSense, it is controlled by the "reply-to" flag, which is added to any packet coming in on an interface which has a gateway is defined on. However, there are some requirements:

        • The rule allowing the respective access in pfSense must not be a floating rule.
        • The rule allowing the respective access must not be a defined on an interface group.

        So probably you have to check if these requirements are given on your pfSense.

        1 Reply Last reply Reply Quote 1
        • T
          thetevfik
          last edited by

          Bull's-eye. The answer I was looking for. Thank you @viragomann very much

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