This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change SMTP IP & Webtraffic IP

Hello,

where can i control which IP is used for surfing ?
Is this ip automatically the IP with the default gateway ?

Greets
Stephan


This thread was automatically locked due to age.
  • Hi , 

    By default it is your WAN address . You can control it if you want to change it with SNAT or policy base routing. 

     All my best
  • Ok i will try this with policy based routing. Thanks gilipeled
  • Hi ,

    If you need help post it here and I will guide you.

    Gil
  • Hi , 

    By default it is your WAN address .

     All my best


    for sure can't be internal inteface [:)]
  • Hi,

    sorry for Hijacking this, but I have the exact same question.
    I have two mail servers which serves different mail domains, and both have different public IP addresses.

    I've managed this with the additional address feature for the WAN interface.
    Emails are up and running, but filtered by some ISP with reverse MX lookup.

    What I tried is a SNAT rule:
    Position 1
    Rule Type: SNAT
    Traffic from: the internal network where the mail server is located
    Service: any
    Going to: any
    Change source to: interface address with different public IP than the WAN interface
    Change service to: blank
    Auto Firewall rule: checked

    This one does not have any effect at all.

    Then I tried a masquerading rule:
    Network: the internal network
    Position: 1
    Interface: WAN
    Use address: the additional address

     Again, no effect at all, whatismyip.com shows the IP from the WAN interface rather than that from the additional address.

    Any clue what I might do wrong?

    Thanks and best regards,
    Matthias
  • Hi,

    Update: the only way to change my IP to the additional address is an SNAT rule with Source: WAN and destination WAN (additional address)

    But since I only have one WAN interface, this way I cannot assign another IP to the second mail server.

    Does anyone has an idea how I could get this config up and running?

    Tnx and best regards,
    Matthias
  • Matthias, assuming that you create an Additional Address "Mail" on the External internface:

    SNAT : External (Address) -> SMTP -> Internet : from External [Mail] (Address)


    Did that do what you want?

    Cheers - Bob
    PS The same would be true for "Web Surfing" instead of "SMTP."  The solution is different if you have two WAN connections and are using Uplink Balancing.
  • Bob,
    I don't know if I am getting you right,but isn't the suggestion you do the same I did describe in my update? 

    I don't know if I really could point out what I need:
    SMTP Server1: 192.168.1.1 /24
    SMTP Server2: 192.168.2.1 /24

    WAN1: physical WAN IP 46.1.1.1 (ISP does not allow PTR records on this address)
    WAN1: additional_address_1: 46.1.1.2 (PTR company1.com)
    WAN1: additional_address_2: 46.1.1.3 (PTR company2.com)


    So how could I configure UTM 9 to translate Server1 to 46.1.1.2 and Server2 to 46.1.1.3?

    Tnx and best regards,
    Matthias
  • Just add additional IP address on the WAN interface and use SNAT to server 2 to use this address.
    And configure the rules to allow it.

    All my best