Outbound Port Forwading



  • 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


Log in to reply