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

Use different gateway than the default with the http proxy?

Hi folks,

first of all I am telling you how my scenario looks like right now. We've got a 2Mbit SDSL line with serveral public IP addresses. The address of the default gateway for these hosts with the public IP addresses is the .50.

The ASG is in our public DMZ with the public IP .41 on the internal interface, the emails come from an upstreaming mailserver with the public IP .35, on which our mx record points to. In the ASG is also an additional interface which is configured for pppoe to a 16Mbit adsl line with dynamic addresses, this one is the default gateway of the ASG.

Currently the .35 accepts all incoming emails and then forwards them to the .41, our ASG. The internal users of our network are using the HTTP proxy of the ASG via the public .41 IP on the internal interface for surfing. They also use the .41 for outgoing SMTP. The .41, the ASG, uses the .35 as a smarthost.

What I want to do now is to abolish the upstreaming/smarthost .35 mailserver so that the ASG is the first instance who recieves emails and the last one who sends them out. 

What I plan to do is this
- Turn of the upstreaming machine with the .35
- Change the IP of the internal interface of the ASG from .41 to .35
- Add an additional address to the internal interface with the address .41
- Remove the .35 from the smarthost settings in the smtp proxy
- Remove the .35 from the upstream host list in the smtp proxy

I tried this already out, but there is a huge problem. The adsl line is the default gateway of the ASG, so the emails are sent via this interface with dynamic IPs (not good :x). If I set the internal interface to the default gateway, which is the .50, outgoing email will work, but surfing is not working anymore over the adsl line, it also runs over the sdsl line. 

Is there a way which allows me to set the .50 on the internal interface as the default gateway BUT to use the adsl line as a gateway for the http proxy?

Thanks in advance, regards Andy

Edit: Added same painted pictures :x





This thread was automatically locked due to age.
  • Andy, I've tried to diagram your description, but I can't get there.  Can you create a diagram and post it?

    Then again, maybe this answers your question: Policy Route a second WAN Connection

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hey Bob,

    I painted some pictures of our current scenario (didn`t find our Visio :x) and the new one without the one machine, not so good to look at but I think the situation is recognizable.

    Regards, Andy
  • Hi Andy,

    If I understand what you are trying to do correctly (didn't really follow the diagrams, but that may be because I haven't had any coffee this morning), the problem you are encountering is that when you make the changes the smtp proxy traffic is going out the wrong interface. I believe to solve this problem you will want to create a policy route for the smtp traffic (since it sounds like this is the only traffic that needs to go out to the sdsl router), this will allow you to keep the default gateway on the existing interface.

    There is a kb article on the astaro knowledgebase it's Article 290074 in case the link doesn't work

    http://portal.knowledgebase.net/display/2n/kb/article.asp?aid=290074
  • The trick is to "copy shortcut" from the "Download" icon:
    http://portal.knowledgebase.net/utility/downloadArticle.asp?aid=290074

    This is similar to the solution I linked to above.  You might consult both.

    Cheers - Bob

    PS IGNORE the trick!  Just go to the Astaro Knowledgebase and search on the article number 290074.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Thanks for your help. I tried it out yesterday evening, but it didn't work for me. It seems, that the policy routes have no effect, everything runs through the default gateway. When the adsl line is configured as the default gateway surfing via the http proxy works but the smtp routing policy has no effect (smtp proxy used), it tries to send over the adsl line. When I configure the sdsl line as the default gateway, the smtp proxy works but the policy for http routing does not work (http proxy used). 

    Like in one of the KBs is written down 

    "Please note that if any traffic is using a proxy such as the http proxy it will still pass through the systems regular default gateway."

    Not good, seems that there is no chance to do what I discribed in my first posting (when using proxies).
  • If you followed the instructions correctly in the article that Dilandau recommended above, then it should work like you want.  If it's not working, then there's a different problem.

    Do you have any conflicting SNAT rules?  Perhaps one that comes before the one from the article:

    Source: external address of the primary line
    Destination: any
    Service: http
    Change source to: external address of the secondary interface



    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I cant get to the link to see, can someone please help
  • Just go to the Astaro Knowledgebase and search on the article number 290074.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA