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

    Port forward Mail outbound ( only outgoing )

    Scheduled Pinned Locked Moved NAT
    2 Posts 1 Posters 535 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.
    • C
      chaiyut
      last edited by

      Hello

      Information:
      FW WAN ip - 1.1.1.7
      FW VIP - 1.1.1.8
      HAProxy ip - 192.168.1.10:10026
      Docker host 1 ip - 192.168.1.11:10026
      Docker host 2 ip - 192.168.1.12:10026

      ISP --- FW --- HAProxy --- Docker host 1
                       |
                       |-------- Docker host 2
      

      I build Docker and expose port 10026 to container port 25, then use HAProxy to load balance both mail docker ( only send out an email not for receive an email )

      When send out an email the mail header said the mail come from 1.1.1.7 but I want to set an IP for 1.1.1.8 I already try with port forward but it's won't work. ( still IP 1.1.1.7 )

      Try to check with Outbound NAT but not sure how to set and which IP should I use ?

      1 Reply Last reply Reply Quote 0
      • C
        chaiyut
        last edited by

        Found the solution.

        Go to outbound nat

        Source:
        Network 192.168.1.11/32
        Destination:
        Any - port 25

        Translation:
        Address:
        1.1.1.8

        Save and Apply

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