All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] simple(?!?) source routing
@ 2004-01-13 10:05 Chris Bolton
  2004-01-15  1:11 ` andybr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Bolton @ 2004-01-13 10:05 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

Hi,

I've set up a Linux box with redhat on to act as an internet gateway and I'm running into a few problems.  Its got two adsl modems connected to it, both connected to seperate 512kbs lines.  Now I've followed the simple source routing in the advanced routing howto to the letter but it doesnt work.

I've got it autoconnecting on startup and redhat puts ppp1 as the default gateway, this is then setup for masquerading for the entire network.  Therefore I've tried setting up ppp0 as the deafult gateway for only one computer (10.0.0.11), as it says at http://lartc.org/howto/lartc.rpdb.html#LARTC.RPDB.SIMPLE I've done everything it says there and im 99% sure I've put the right ip addreses in etc.  When Ive gone through it that computer is no longer able to access the net (the rest of the network is unaffected).

I'm pretty sure its the way ppp0 is configured, if I set it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule add default via xxx.xxx.xxx.xxx dev ppp1 table chris) it works fine but obviously thers no point in that.

Hope all this makes sence to someone, it baerly does ti me.  May thanks in advance.

Chris

[-- Attachment #2: Type: text/html, Size: 2054 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:[LARTC] simple(?!?) source routing
  2004-01-13 10:05 [LARTC] simple(?!?) source routing Chris Bolton
@ 2004-01-15  1:11 ` andybr
  2004-01-15  8:37 ` Fw: " Chris Bolton
  2004-01-15  9:28 ` Chris Bolton
  2 siblings, 0 replies; 4+ messages in thread
From: andybr @ 2004-01-15  1:11 UTC (permalink / raw)
  To: lartc

Hi all,

This is easy. First let ppp0 as your default gateway and 
use iproute to create a table call any name you want and 
then you put ppp1 default route inside that table. After 
that you have to create a rule to put the host you would 
like insede it and dont forget to put a rule in the 
iptables saying that everything going out via ppp1 SNAT -
-to IP_PPP1_EXTERNAL. ;)

[]´s
Anderson


> Hi,
> 
> I've set up a Linux box with redhat on to act as an int
ernet gateway and I'm running into a few problems.  Its g
ot two adsl modems connected to it, both connected to sep
erate 512kbs lines.  Now I've followed the simple source 
routing in the advanced routing howto to the letter but i
t doesnt work.
> 
> I've got it autoconnecting on startup and redhat puts p
pp1 as the default gateway, this is then setup for masque
rading for the entire network.  Therefore I've tried sett
ing up ppp0 as the deafult gateway for only one computer 
(10.0.0.11), as it says at http://lartc.org/howto/lartc.r
pdb.html#LARTC.RPDB.SIMPLE I've done everything it says t
here and im 99% sure I've put the right ip addreses in et
c.  When Ive gone through it that computer is no longer a
ble to access the net (the rest of the network is unaffec
ted).
> 
> I'm pretty sure its the way ppp0 is configured, if I se
t it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule a
dd default via xxx.xxx.xxx.xxx dev ppp1 table chris) it w
orks fine but obviously thers no point in that.
> 
> Hope all this makes sence to someone, it baerly does ti
 me.  May thanks in advance.
> 
> Chris

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fw: Re:[LARTC] simple(?!?) source routing
  2004-01-13 10:05 [LARTC] simple(?!?) source routing Chris Bolton
  2004-01-15  1:11 ` andybr
@ 2004-01-15  8:37 ` Chris Bolton
  2004-01-15  9:28 ` Chris Bolton
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Bolton @ 2004-01-15  8:37 UTC (permalink / raw)
  To: lartc

 Hi,

 Thanks for the reply.  Thats where the problem starts.  If I set ppp0 as
the
 default gw the internet doesnt work anymore.  This is how im doing it...

 route del default
 route add default gw 217.32.81.74 dev ppp0

 if I put it back to ppp1...

 route del default
 route add default gw 217.32.68.73 dev ppp1

 It works fine again.  Whats up with that?

 Cheers,
 Chris
 ----- Original Message ----- 
 From: "andybr" <andybr@bol.com.br>
 To: <cbolton@hirstanddanson.co.uk>
 Cc: <lartc@mailman.ds9a.nl>
 Sent: Thursday, January 15, 2004 1:11 AM
 Subject: Re:[LARTC] simple(?!?) source routing


 > Hi all,
 >
 > This is easy. First let ppp0 as your default gateway and
 > use iproute to create a table call any name you want and
 > then you put ppp1 default route inside that table. After
 > that you have to create a rule to put the host you would
 > like insede it and dont forget to put a rule in the
 > iptables saying that everything going out via ppp1 SNAT -
 > -to IP_PPP1_EXTERNAL. ;)
 >
 > []´s
 > Anderson
 >
 >
 > > Hi,
 > >
 > > I've set up a Linux box with redhat on to act as an int
 > ernet gateway and I'm running into a few problems.  Its g
 > ot two adsl modems connected to it, both connected to sep
 > erate 512kbs lines.  Now I've followed the simple source
 > routing in the advanced routing howto to the letter but i
 > t doesnt work.
 > >
 > > I've got it autoconnecting on startup and redhat puts p
 > pp1 as the default gateway, this is then setup for masque
 > rading for the entire network.  Therefore I've tried sett
 > ing up ppp0 as the deafult gateway for only one computer
 > (10.0.0.11), as it says at http://lartc.org/howto/lartc.r
 > pdb.html#LARTC.RPDB.SIMPLE I've done everything it says t
 > here and im 99% sure I've put the right ip addreses in et
 > c.  When Ive gone through it that computer is no longer a
 > ble to access the net (the rest of the network is unaffec
 > ted).
 > >
 > > I'm pretty sure its the way ppp0 is configured, if I se
 > t it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule a
 > dd default via xxx.xxx.xxx.xxx dev ppp1 table chris) it w
 > orks fine but obviously thers no point in that.
 > >
 > > Hope all this makes sence to someone, it baerly does ti
 >  me.  May thanks in advance.
 > >
 > > Chris
 >
 >
 >
__________________________________________________________________________
 > Acabe com aquelas janelinhas que pulam na sua tela.
 > AntiPop-up UOL - É grátis!
 > http://antipopup.uol.com.br/
 >
 >
 > _______________________________________________
 > LARTC mailing list / LARTC@mailman.ds9a.nl
 > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 >

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re:[LARTC] simple(?!?) source routing
  2004-01-13 10:05 [LARTC] simple(?!?) source routing Chris Bolton
  2004-01-15  1:11 ` andybr
  2004-01-15  8:37 ` Fw: " Chris Bolton
@ 2004-01-15  9:28 ` Chris Bolton
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Bolton @ 2004-01-15  9:28 UTC (permalink / raw)
  To: lartc

Hi,

Found the problem, usb timeout errors in /var/log.messages relating to
speedtouch modems, had the problem before so its nothing new.

Thanks again,

Chris

----- Original Message ----- 
From: "Chris Bolton" <cbolton@hirstanddanson.co.uk>
Cc: <lartc@mailman.ds9a.nl>
Sent: Thursday, January 15, 2004 8:37 AM
Subject: Fw: Re:[LARTC] simple(?!?) source routing


> Hi,
>
>  Thanks for the reply.  Thats where the problem starts.  If I set ppp0 as
> the
>  default gw the internet doesnt work anymore.  This is how im doing it...
>
>  route del default
>  route add default gw 217.32.81.74 dev ppp0
>
>  if I put it back to ppp1...
>
>  route del default
>  route add default gw 217.32.68.73 dev ppp1
>
>  It works fine again.  Whats up with that?
>
>  Cheers,
>  Chris
>  ----- Original Message ----- 
>  From: "andybr" <andybr@bol.com.br>
>  To: <cbolton@hirstanddanson.co.uk>
>  Cc: <lartc@mailman.ds9a.nl>
>  Sent: Thursday, January 15, 2004 1:11 AM
>  Subject: Re:[LARTC] simple(?!?) source routing
>
>
>  > Hi all,
>  >
>  > This is easy. First let ppp0 as your default gateway and
>  > use iproute to create a table call any name you want and
>  > then you put ppp1 default route inside that table. After
>  > that you have to create a rule to put the host you would
>  > like insede it and dont forget to put a rule in the
>  > iptables saying that everything going out via ppp1 SNAT -
>  > -to IP_PPP1_EXTERNAL. ;)
>  >
>  > []´s
>  > Anderson
>  >
>  >
>  > > Hi,
>  > >
>  > > I've set up a Linux box with redhat on to act as an int
>  > ernet gateway and I'm running into a few problems.  Its g
>  > ot two adsl modems connected to it, both connected to sep
>  > erate 512kbs lines.  Now I've followed the simple source
>  > routing in the advanced routing howto to the letter but i
>  > t doesnt work.
>  > >
>  > > I've got it autoconnecting on startup and redhat puts p
>  > pp1 as the default gateway, this is then setup for masque
>  > rading for the entire network.  Therefore I've tried sett
>  > ing up ppp0 as the deafult gateway for only one computer
>  > (10.0.0.11), as it says at http://lartc.org/howto/lartc.r
>  > pdb.html#LARTC.RPDB.SIMPLE I've done everything it says t
>  > here and im 99% sure I've put the right ip addreses in et
>  > c.  When Ive gone through it that computer is no longer a
>  > ble to access the net (the rest of the network is unaffec
>  > ted).
>  > >
>  > > I'm pretty sure its the way ppp0 is configured, if I se
>  > t it up so 10.0.0.11 uses ppp1 instead of ppp0 (ip rule a
>  > dd default via xxx.xxx.xxx.xxx dev ppp1 table chris) it w
>  > orks fine but obviously thers no point in that.
>  > >
>  > > Hope all this makes sence to someone, it baerly does ti
>  >  me.  May thanks in advance.
>  > >
>  > > Chris
>  >
>  >
>  >
> __________________________________________________________________________
>  > Acabe com aquelas janelinhas que pulam na sua tela.
>  > AntiPop-up UOL - É grátis!
>  > http://antipopup.uol.com.br/
>  >
>  >
>  > _______________________________________________
>  > LARTC mailing list / LARTC@mailman.ds9a.nl
>  > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>  >
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-15  9:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13 10:05 [LARTC] simple(?!?) source routing Chris Bolton
2004-01-15  1:11 ` andybr
2004-01-15  8:37 ` Fw: " Chris Bolton
2004-01-15  9:28 ` Chris Bolton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.