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

Routing Question [2 Internet Connections]

Hello

I got 2 Internet Connections (Dsl, Cable) and 3 Internal Nets and Dmz's:
---------------------------------------------
eth0 --> internal net 192.168.0.254
eth1 --> external Net Cable 62.66.66.94
eth2 --> dmz1 192.168.1.1
eth3 --> external Net DSL 212.55.45.46
eth4 --> dmz2 192.168.2.1
Standard Gateway is 62.66.66.89 (Cable Net)

Routing Table  
Kernel IP routing table
Destination     Gateway     Genmask         Iface
62.66.66.88     0.0.0.0     255.255.255.248  eth1
212.55.45.44    0.0.0.0     255.255.255.128  eth3
192.168.2.0     0.0.0.0     255.255.255.0    eth4
192.168.1.0     0.0.0.0     255.255.255.0    eth2
192.168.0.0     0.0.0.0     255.255.255.0    eth0
0.0.0.0         62.66.66.89 0.0.0.0          eth1
-------------------------------------------------

Now i want to have webservers in both dmz's (192.168.1.0 and 192.168.2.0). In the 192.168.1.0 net i have a webserver, this webserver is accessible through dnat over the cable net (62.66.66.94)...everything works here fine.

The problem is now: In the 192.168.2.0 Net, the second dmz, i have also multiple webservers, but this webservers have to take the way over the dsl net (212.55.45.44) and not over the cable net (you remember the standard gateway is the cable gateway) 

So my question is now, how do i have to make the routing so that the 192.168.2.0 net goes out through the dsl router (The ip of the dsl router is 212.55.44.45) and not over the standard gateway?

Can someone guide me to the light at the end of the tunnel?

thx + greets

p.s i use Astaro 2.0.30
 
 [size="1"][ 13 November 2002, 02:43: Message edited by: roeschu ][/size]


This thread was automatically locked due to age.
  • I can help on some questions.  Assuming you are running 3.2x you need to Edit the DSL interface and set Default gateway there.  You will then have two gateways and the option of setting gateway priority where you likely want the fastest (Cable?) as primary.

    You then have two default gateways which act as a backup if one fails.  I'm not sure but this should also make connections arriving via DSL to route back via DSL instead of Cable.  I'm interested in verifying this.

    BTW, I have a similar set-up but since my license is only for 3 interfaces I put the two internet lines on the same interface and both DMZs on one as well.  This has worked very well so far.
  • thx pablito

    Well i will test around a little bit therefore. But currently i think i could save some time if i would use a second astaro box ...one for the dsl connection and one for the cable...

    greets
  • You could put in two boxes but loose the automatic fallback when one line fails and some other nice routing features.  And you would need another license.  You can easily run two internet connections from one public side NIC, even if one is static and the other DHCP/PPPOE.
  • Well maybe there is another way.

    I've just read some pages of the "linux advanced routing & Traffic control Howto" there seems to be a solution for my problem(chapter 4). It's about iproute2 etc. with some tricks this could work on astaro too...well i have to test it first a little bit.

    greetings