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

    Multiples gateways

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 1.6k 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.
    • J
      jdh
      last edited by

      Hi !

      Is it possible to have differents gateways dependant on kind of traffic ?

      I explain my goal :

      • I have a pfsense firewall (WAN+LAN+OPT1=DMZ),
      • On DMZ, I have a server (more powerfull than the firewall) able to do transparent proxy cache (Squid), transparent proxy ftp (frox), transparent proxy pop3 (p3scan),

      If I try to use a NAT rule (source interface LAN, address any), the ip address is changed to the DMZ server.
      If I try to use a "policy based rules", the traffic goes from the WAN of firewall.

      The idea is to be able to change de "defaut gateway" (as a routeur) depending of the protocol.
      For exemple, when I use a routeur the mac address is set to the routeur and not the ip address.

      A example for Linux/iptables (in french) is http://irp.nain-t.net/doku.php/100iproute:start

      Albert EINSTEIN : Si vous ne pouvez pas l'exprimer simplement, c'est que vous ne le comprenez pas assez bien. (If you can’t explain it simply, you don’t understand it well enough.)

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