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

    Outbound Port Forwading

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 998 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.
    • G
      gerry
      last edited by

      I have multiple public ips set up as virtual IPs - all inbound natting / port forwarding works fine.
      I also have some outbound NAT rules set up to route specific lan IPs out through specific public IPs which also work fine.
      Src IP/Port , Dst IP/Port -> Virt IP/Src Port - Dst IP/Port

      I would like to route outbound requests for specific ports out through specific public IPs on specific ports.

      Src IP/Port , Dst IP/Port -> Virt IP/Src Port - Dst IP/Specified Port

      Using outbound NAT :  Src:LAN Subnet , Src Port:any , Dst:!Lan Subnet , Dst Port:40000 , Nat IP: PUB_1 , Nat Port: *
      Src IP/Port , Dst IP/Port -> Nat IP/Src Port - Dst IP/Port
      This gets me most of the way there - BUT I don't see any way to change the destination port.

      Using  Port Forwarding : Src:LAN Subnet , Src Port:any , Dst:!Lan Subnet , Dst Port:40000 , Target IP: must enter  , Target Port: 25
      Src IP/Port , Dst IP/Port -> Src IP/Port - Target IP/Port
      This allows me to change the destination port BUT it forces me to change the destination IP ( which I don't want to do ) and doesn't allow me to change the Src IP ( which I do want to do ).

      If Outbound NAT also included optional Target IP/Port that would be ideal.

      I am a loss on where to go from here - from everything I have tried it looks like this is not possible.

      Or have I missed something ?

      Gerry

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