Re: 2 internet access and default route routing problem

From: Leon. (noemail_at_nowhere.com)
Date: 11/17/03


Date: Mon, 17 Nov 2003 12:30:29 +1100


"Javi" <javim@oasyssoft.com> wrote in message
news:a8a4787b.0311160826.5b8d56ed@posting.google.com...
> Hi all,
>
> The situation:
> I have a Red Hat 9 linux box with 3 network interfaces, one to the LAN
> and the other 2 connected to the internet. One of them is connected to
> a DSL Router in MONO mode (the linux ethernet has the public IP) while
> the other is connected to a ISDN Router in MULTIhost mode (the router
> has the public IP and a private IP to link with the linux box)
>
> (200.XX.XX.XX) ISDN (192.168.1.1) -- | RH 9 |
> | LINUX |(10.0.0.1) --- LAN
> (10.0.0.X)
> DSL (100.XX.XX.10) ---| BOX |
>
> I have domainA associated with the ISDN public IP (let's say
> 200.XX.XX.XX) and domainB associated with the DSL IP (100.XX.XX.10).
> Both domains are redirected to the same web server (10.0.0.3) on the
> LAN.
> We want the LAN clients to surf the Internet with the DSL, so the DSL
> is the default route.
> So, the routing table is like this:
>
> 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth1
> 192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0
> 0 eth2
> 100.XX.XX.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 0 lo
> 0.0.0.0 100.XX.XX.1 0.0.0.0 UG 0 0
> 0 eth0
>
> The problem:
>
> DomainB (the DSL-associated one) works fine, but domainA does not work
> at all. If we change the default route to the ISDN Router, the
> situation is teh opposite: domainA works but domainB doesn't. It seems
> that only the domain associated with the default route works, cause
> all packets return back to the client through the default router
> instead of the router they came in...
>
> The question:
> Is my configuration possible? Does anyone know how can I make all
> theese IPs to work fine together? DomainA -> ISDN, DomainB -> DSL and
> LAN clients going outside through the DSL router?

Spoofing is the sending of packets with a source address that you dont
own.

The problem is the ISP's are preventing spoofing ( which is your sending of
packets to them with
someone else's Ip address as the source). ISP A doesnt know you have the Ip
address from ISP B.

The network routers are configured to prevent spoof packets to secure their
network, and to secure your systems too.

When someone makes a connection to you via ISP A, but the return packets go
to ISP B, actually the tcp/ip session requires the packets be labelled with
the IP address that you get from ISP A. ( The way TCP/IP stack identify
packets is by source address, target address, port number and packet
number.)

And so your testing of switching the default route is merely testing the
ISP's antispoofing firewall rules.

The thing is you need two default routes, with one route done with 'routing
based on source address'.

The first is more specific, You need to add the 'source' parameter when
adding the route.
you probably put this command into rc.local or something manually.

You need to add a route like this (I will say in it plain english, because I
dont know the actual syntax - just look up the man page for 'route' )

Add a route , where the source address is blah (hopefully its static ip
address!), where the destination is 0.0.0.0 send it via the isdn interface.

and just leave the standard default route to go via the dsl connection.

>
> I hope you have understood me despite my english level..
> Thanks in advance...



Relevant Pages

  • Re: OT udp port 138 BROWSER traffic
    ... >> dsl issues extend from at least June, and I could say more, but won't. ... >> issues that are interfering with my connection at their end. ... >> happening is the router is simply ignoring my traffic, ... it was a BAD filter that was not doing it's job. ...
    (comp.os.linux.security)
  • Re: Simultaneous DSL and cable modem access on a SBS network...sorf ot.
    ... Your existing router would be surplus to requirements. ... Cable connection. ... I have my MX records pointing to the DSL line, ... The server and the fax (the line the DSL modem ...
    (microsoft.public.windows.server.sbs)
  • Re: Simultaneous DSL and cable modem access on a SBS network...sorf ot.
    ... Your existing router would be surplus to requirements. ... Cable connection. ... I have my MX records pointing to the DSL line, as primary, ... The server and the fax (the line the DSL modem ...
    (microsoft.public.windows.server.sbs)
  • Re: TCP conection problems IBM VM -> FreeBSD
    ... can you track down other SYN requests which do correspond? ... both sides of your router box are using routable IPs.... ... pf tracks connection state and will drop subsequent traffic which does match an legit connection or a new connection open attempt. ... That shouldn't matter then, if you're just doing straight routing via this /30, rather than re-writing the packets. ...
    (freebsd-questions)
  • Re: Windows XP fails to renew my IP address
    ... I have a very simply plain-vanilla DSL set up at home. ... plugs into the WAN socket of my wireless router and one of the 4 open ... DSL connection at home I actually had to set the connection mode to ... The DSL modem does ...
    (microsoft.public.windowsxp.network_web)