(no subject)

Paul freebsd at caspersworld.co.uk
Mon Aug 7 01:48:15 BST 2006


Hi,

Im still fairly new to FreeBSD, but have managed to get by untill now

I run BSD on a DEC alphaserver 4000, with 2 different network cards 
(de0 and de1)


I have 2 ADSL lines coming in to my house, both on ADSL routers.
The first one is a 192.168.0.0/24 network. The gateway is on 
192.168.0.1, BSD is on de1 using 192.168.0.10 and is used as my 
general home internet connecting. I have multiple computer attached to 
this network (using windows and BSD) and it used for general internet 
use, listening to online radio and playing online games etc.
The second one is a 10.0.200.0/24 network. The gateway is on 
10.0.200.1, BSD is on de0 using 10.0.200.10 and is used as a DNS 
server and file backup server (using rsync to provide offsite backups) 
for a friend (Well thats what I want). There is also a single windows 
box on this network (this box also has a seperate network card, 
sitting on the 192.168.0.0/24 network)
These networks are seperate networks, using seperate routers and 
switches.

The networks looks something like

     ______________
ADSL|Home network  |
----|192.168.0.1/24|---------------------------------------------------
---------------
    |______________|     |                |                
|                |
                   ______|_______   ______|_______   ______|_______   
______|_______
                  |192.168.0.10  | |192.168.0.11  | |192.168.0.101 | 
|192.168.0.102 |   etc up to 192.168.0.107
                  |FreeBSD Server| |Windows Server| |FreeBSD Client| 
|Windows       |
                  |10.0.200.10   | |10.0.200.11   | |Desktop       | 
|Desktop       |
                  |______________| |______________| |______________| 
|______________|
     ______________      |               | 
ADSL|Server Network|     |               |
----|10.0.200.1/24 |---------------------
    |______________|
   
    
I currently have my default gateway on FreeBSD set to 192.168.0.1.

I can connect to the BSD box externally no problems using the IP 
address from the first ADSL connection.
However, any external connection requests I have make on the IP 
address from the second ADSL connection just times out
I have no problems with the Windows server

If I swap the default gateway to 10.0.200.1 then the problem gets 
swapped over.

Am I right in thinking I have a routing issue somewhere?

I have tried a few different things including tring a few different 
setups with ipfw and playing with the routing tables, but have had no 
luck

What I really want is for the alpha to have a default gateway of 
192.168.0.1 (I use it for personal tasks as well as for my friend), to 
be able to connect to it internally from the 192.168.0.0/24 network, 
and externally using the IP from the first ADSL line
I would also like to be able to connect to it externally using the IP 
address from the seconds ADSL line, so my friend can backup to it 
using rsync and also use it as a DNS server

The reason why I want to use 2 ADSL line is that if I use all the 
bandwidth on the home ADSL connection (playing games etc) there is 
still a second ADSL connection purely for rsync and DNS requests. 
Currently im getting about 10Gb a day being downloaded via rsync

At the moment, I have resorted to just using the first ADSL line, but 
I notice a big difference while I try to play online games, if an 
rsync is taking place 
I know that I could just limit the speed that rsync transfers at, but 
I really want the transfer to happen as soon as possible and there is 
a second ADSL line that is already being paid for

How do I go about trying to get my desired setup, or where should I 
start to look?

Many Thanks
Paul




More information about the Ukfreebsd mailing list