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

One Gateway DNAT on two Internet Connections

Hi,

I've been reading almost all threads on a configuration with two internet connections.


I understand that it's not possible to route outgoing traffic thru two connections based on services and so on. but I would like to receive server queries on one line and surf using the other line.

The goal: Accept DNS queries on the adsl line (fix ip) doing NAT to an internal DNS server. Surf from internal net to
Internet using cable connection (faster).


The problem I have:

I have two internet connections (ADSL Fix Ip / Cable Dynamic), and I've connected each connection to independent interfaces.

My configuration:
++++++++++++

eth0 -> Internal net (10.0.0.1)

eth1 -> Public Adsl (192.168.1.1) ------> ADSL router 192.168.1.254 ----> Public IP

eth2 -> Public Cable (Dynamic, Public IP)

1) I've told the ADSL router (192.168.1.254) to forward all ports to the astaro "public" IP 192.168.1.1


2) I've enabled masquerading on my internal net 10.0.0.0 for
both internet connections (the default GWY is on the 
cable connection only)

3) Filter set: Internal -> Any -> Any Service -> Allow
                     Any -> Any -> DNS Service -> Allow

4) Dnat : 192.168.1.1 -> DNS -> 10.0.0.253 (DNS Server)

Doing so, I'm allowed to surf from the internal net to Internet
using the cable connection, but the DNAT doesn't work. 

To have DNAT work, I have to disable the cable connection
and activate the Gateway for ADSL, then it works fine, but
I have to surf with the ADSL line (slower).

Has anyone any idea on how could i fix this?

thank you in advance!   


This thread was automatically locked due to age.