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

Divert HTTP & SMTP

Hi

Does anyone know if its possible to divert HTTP and SMTP traffic to seperate lines. I have fixed link that has limited bandwidth and also an ADSL line which has a much bigger capacity but no static IP. I would like to route SMTP through the fixed link, and HTTP traffic through the ADSL link. These two would be connected to seperate network cards. Or is there another way?

Thanks

Amal


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

    with V7 you can do this simply with Policy routing.

    Regards,

    Alex
  • Hi Alex & Amal,

    I've recently tried something similar, but ran into a problem with the proxies.  Policy routing can't be used to route traffic from the local proxy - this always uses the system default route because the outgoing traffic is generated locally.  Therefore, if you use the HTTP proxy and the SMTP proxy then traffic for both protocols with go on the default interface.

    You can still get your setup to work by not using one of the proxies.  For example, if you turn off the HTTP proxy then you can policy route HTTP requests through your non-default interface and SMTP will go via your default.

    I'd like to continue to use both proxies (they're the major reason that I use Astaro) so my solution will be to use a separate router upstream from my firewall.  eg.

      Internal_Network  --->  Astaro_Firewall  --->  Router  =====> Internet

    Cheers,

    Marty
  • I have exactly the same problem. I think I'm going to opt to use the SMTP proxy and drop the HTTP proxy until the proxies can be defined to use a specific interface.  This of course after I added all of the other routes needed to get stuff working. Ah well.
Reply
  • I have exactly the same problem. I think I'm going to opt to use the SMTP proxy and drop the HTTP proxy until the proxies can be defined to use a specific interface.  This of course after I added all of the other routes needed to get stuff working. Ah well.
Children
  • I too would like the ability to bind each of the proxies to an external interface. In the UK we can't always get fast DSL lines, so I have a couple installed, I would like to use one for web browsing and the other for other services, but this is not easy with the Astaro.

    I have used other firewalls in the past that enable this feature, and even load balancing across multiple external interfaces, rather than having just a fail-over which wastes a DSL line.

    It would be very useful to have this facility.

    Dave
  • Hello,

    if you want to use a different interface than the default-interface you have to put 

    "tcp_outgoing_address ***.yyy.zzz.aaa"  into the squid.conf file
    where ***.yyy.zzz.aaa ist the adress of the astaro-interface you want to use.

    This works  fine for me!

    Andreas