All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Public Router using Private Links
@ 2003-03-25 16:21 Walter D. Wyndroski
  2003-03-25 16:50 ` Martin A. Brown
  2003-03-25 17:55 ` Walter D. Wyndroski
  0 siblings, 2 replies; 3+ messages in thread
From: Walter D. Wyndroski @ 2003-03-25 16:21 UTC (permalink / raw)
  To: lartc

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

I am running a public core router using private links from my provider.

Details:
RH7.3
9 interfaces (all Intel)
eth0 is default gateway and has a private IP address
all other interfaces are links to other routers or networks
eth3 has a public IP address

The core router will rarely need to access sites out on the internet, but when it does it cannot get there because the eth0 has a private IP address. Is there a way to force the router to use the ip address from eth3 to access sites on the internet? If so, how would I route traffic originating from eth3 to the internet? I have tried a few policy statements coupled with some separate rules and tables to no avail. All I am getting is Destination host unreachable when I issue the command "ping -v -I eth3 www.yahoo.com".

Please advise. Thank you in advance.

Walt
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



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

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

* Re: [LARTC] Public Router using Private Links
  2003-03-25 16:21 [LARTC] Public Router using Private Links Walter D. Wyndroski
@ 2003-03-25 16:50 ` Martin A. Brown
  2003-03-25 17:55 ` Walter D. Wyndroski
  1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2003-03-25 16:50 UTC (permalink / raw)
  To: lartc

Walt,

Try this....the "src" keyword is a hint to the kernel about what address
to select on a given route.  This will only work if the kernel is asked to
select the source IP based on a route.

# ip route change default via $CURRENTGATEWAY src $IP_ON_ETH3

This might work before the change:

# ping -n -v -I $IP_ON_ETH3 www.yahoo.com

See also:

  http://linux-ip.net/html/routing-saddr-selection.html
  http://linux-ip.net/gl/ip-cref/node155.html

Good luck,

-Martin

 : I am running a public core router using private links from my provider.
 :
 : Details:
 : RH7.3
 : 9 interfaces (all Intel)
 : eth0 is default gateway and has a private IP address
 : all other interfaces are links to other routers or networks
 : eth3 has a public IP address
 :
 : The core router will rarely need to access sites out on the internet,
 : but when it does it cannot get there because the eth0 has a private IP
 : address. Is there a way to force the router to use the ip address from
 : eth3 to access sites on the internet? If so, how would I route traffic
 : originating from eth3 to the internet? I have tried a few policy
 : statements coupled with some separate rules and tables to no avail. All
 : I am getting is Destination host unreachable when I issue the command
 : "ping -v -I eth3 www.yahoo.com".
 :
 : Please advise. Thank you in advance.
 :
 : Walt
 :

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com

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

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

* Re: [LARTC] Public Router using Private Links
  2003-03-25 16:21 [LARTC] Public Router using Private Links Walter D. Wyndroski
  2003-03-25 16:50 ` Martin A. Brown
@ 2003-03-25 17:55 ` Walter D. Wyndroski
  1 sibling, 0 replies; 3+ messages in thread
From: Walter D. Wyndroski @ 2003-03-25 17:55 UTC (permalink / raw)
  To: lartc

Thank you sooo much!!! That worked perfectly. Also thanks for the links to
the nice documentation. I've been looking for similar documentation for a
couple of weeks now.

Walt

----- Original Message -----
From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: "Walter D. Wyndroski" <wdwrn@friendlycity.net>
Cc: <lartc@mailman.ds9a.nl>
Sent: Tuesday, March 25, 2003 11:50 AM
Subject: Re: [LARTC] Public Router using Private Links


> Walt,
>
> Try this....the "src" keyword is a hint to the kernel about what address
> to select on a given route.  This will only work if the kernel is asked to
> select the source IP based on a route.
>
> # ip route change default via $CURRENTGATEWAY src $IP_ON_ETH3
>
> This might work before the change:
>
> # ping -n -v -I $IP_ON_ETH3 www.yahoo.com
>
> See also:
>
>   http://linux-ip.net/html/routing-saddr-selection.html
>   http://linux-ip.net/gl/ip-cref/node155.html
>
> Good luck,
>
> -Martin
>
>  : I am running a public core router using private links from my provider.
>  :
>  : Details:
>  : RH7.3
>  : 9 interfaces (all Intel)
>  : eth0 is default gateway and has a private IP address
>  : all other interfaces are links to other routers or networks
>  : eth3 has a public IP address
>  :
>  : The core router will rarely need to access sites out on the internet,
>  : but when it does it cannot get there because the eth0 has a private IP
>  : address. Is there a way to force the router to use the ip address from
>  : eth3 to access sites on the internet? If so, how would I route traffic
>  : originating from eth3 to the internet? I have tried a few policy
>  : statements coupled with some separate rules and tables to no avail. All
>  : I am getting is Destination host unreachable when I issue the command
>  : "ping -v -I eth3 www.yahoo.com".
>  :
>  : Please advise. Thank you in advance.
>  :
>  : Walt
>  :
>
> --
> Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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

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

end of thread, other threads:[~2003-03-25 17:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-25 16:21 [LARTC] Public Router using Private Links Walter D. Wyndroski
2003-03-25 16:50 ` Martin A. Brown
2003-03-25 17:55 ` Walter D. Wyndroski

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.