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

    Routing outgoing trafic

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 263 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.
    • K
      kzurad
      last edited by

      Configuration
      WAN address W1=1.2.3.3
      WAN virtual address VIRT=1.2.3.100.
      DMZ IPGateway=5.6.7.1
      DMZ network = 5.6.7.0/24
      DMZ host = 5.6.7.100
      all incoming traffic to W1 is forwarded to DMZ host

      How to route all outgoing traffic from DMZ host, which is in DMZ through VIRT instead of W1?

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

        I think, you're talking about Network Address Translation (NAT) here, not routing.

        That can be done in Firewall > NAT > Outbound
        If you haven't ever touched this, it's working in the automatic mode. So activate the hybrid mode and save that.
        Then add a new rule:
        interface: WAN
        protocol: any
        source: 5.6.7.100/32
        destination: any
        tranlation: VIRT(1.2.3.100)

        1 Reply Last reply Reply Quote 1
        • K
          kzurad
          last edited by

          Thank you, @viragomann
          It works.

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