two dsl connections, two routers, dual nics on linux box , want to run two websites

two dsl connections, two routers, dual nics on linux box , want to run two websites

Post by Laitk » Mon, 21 Jun 2004 03:58:19



Hello,

I have two dsl connections, with one public ip on each. I have a linux
box with two nic cards.

xx.xx.xx.xx(WAN)---ROUTER(LAN23.123.45.110) ---- MYLINUX
(23.123.45.107) eth1
yy.yy.yy.yy(WAN)---ROUTER(LAN192.182.1.1)   ---- MYLINUX
(192.168.1.100) eth0

I have apache listening on both interfaces.

Problem:

1. How do I make the packets route back to the gateway from which they
originate.

Currently the gateway marked as "default" is able to serve content
from the apache. The other one cannot.

I tried adding static routes, but that didn't work.

Any help is appreciated.

Thanks
--
Jay

---------------------------------------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  
Use Iface
adsl-23-123-45- adsl-23-123-45- 255.255.255.255 UGH   0      0      
0 eth1
23.123.45.0     *               255.255.255.0   U     0      0      
0 eth1
192.168.1.0     *               255.255.255.0   U     0      0      
0 eth0
loopback        *               255.0.0.0       U     0      0      
0 lo
default         192.168.1.1     0.0.0.0         UG    1      0      
0 eth0

eth0      Link encap:Ethernet  HWaddr 00:0D:87:57:A0:DE
          inet addr:192.168.1.100  Bcast:192.168.1.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3060612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3577217 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1566982235 (1494.3 Mb)  TX bytes:1126616733 (1074.4
Mb)
          Interrupt:11 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:40:05:39:0E:EA
          inet addr:23.123.45.107  Bcast:68.123.24.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90635 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31082 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:23017102 (21.9 Mb)  TX bytes:13283751 (12.6 Mb)
          Interrupt:11 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6920794 (6.6 Mb)  TX bytes:6920794 (6.6 Mb)

 
 
 

two dsl connections, two routers, dual nics on linux box , want to run two websites

Post by Snowba » Mon, 21 Jun 2004 04:27:49



> I have two dsl connections, with one public ip on each. I have a linux
> box with two nic cards.
> 1. How do I make the packets route back to the gateway from which they
> originate.

http://lartc.org/howto/lartc.rpdb.multiple-links.html

 
 
 

1. two routers (two wans) connecting to one lan using two nics.

Hello,
Let me try reposting this once more maybe I wasn't too clear in my
previous post.
I have a Linux RH7.3 server running ssh service. I want clients to log
in using ssh from two different Wans.

Wan1: Frame relay router (closed network with another frame relay
router)
Wan2:DSL router allowing clients to login from the internet.

The ip of the frame relay router is 192.168.100.254
The ip of the dsl router is 192.168.10.254

The fr relay is associated with eth0:192.168.100.10 defaultgw
192.168.100.254
The dsl is associated with eth1:192.168.10.10 defaultgw 192.168.10.254

Our GUI network configurator is not working due to bugzilla reports.
However it worked during the initial install and setup of these two
cards. But now we cannot access the tool.
We tried linuxconf but that only allows us one default gw to be
configured. Only one network works at a time.

Is it possible to have two default gateways (one per interface) and
have the box recognize and negotiate them both at the same time?
Which config files can I vi to achieve the desired result of two
gateways without using the gui tool?
If we are only allowed one default gateway per machine, how will the
box know
that the other router exists?
If static routes is the answer, then it is not clear to me how this
will work.
route -net add 192.168.10.0 255.255.255.0 eth1
Remember someone coming over the internet will have a private ip of
192.168.20.1 nat'ed through some pubic ip 68.1.1.10 for example trying
to ssh to
my public ip 68.1.10.20 conecting to my eth1:192.168.10.10.

        |--?------eth1---dsl router--------internet      
server--|                            
        |--defgw--eth0---frame router1--|--frame router2

Any suggestions?

Thanks guys.

2. Root permissions

3. Two NICs, Two networks, secure websites

4. g++ compiles inexplicably huge binaries - stendec.shar (0/1)

5. Two NICS, Two default routers?

6. LD question.

7. Having two separate networks connect using two Linux routers and ISDN

8. Help with X on Gateway 2000

9. dual boot, two disks, linux first, w2k second

10. Joining two networks through two dial-up-ing linux boxes

11. How to connect two Linux boxes via Com ports having two wires only

12. How to setup two terminals, two keyboards, two mouses?

13. Connecting two networks with two linux boxes.