FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-03-2008, 02:53 AM
Alex Samad
 
Default redirects don't seem to be working

Hi

its probably just me, but

I have a network 172.20.0.0/16 dgw is 172.20.0.1

ip 134.134.134.1/32 is available via 172.20.1.50

so on 172.20.0.1 I have set


net.ipv4.conf.eth1.send_redirects = 1


when I go to machine x ( 172.20.243.253) and try

telnet 134.134.134.1 8080

it doesn't seem to make it

accept_redirects in on machine X and if I run

ip r r 134.134.134.1/32 via 172.20.1.50

it works.



when I try

tcpdump -pni eth0 icmp

on machine X, I see the redirects being sent by the dgw. but when I do a
ip r g 134.134.134.1 I still have it pointing to the old address ?


Alex
 
Old 11-05-2008, 06:29 PM
"Boyd Stephen Smith Jr."
 
Default redirects don't seem to be working

On Sunday 02 November 2008, Alex Samad <alex@samad.com.au> wrote
about 'redirects don't seem to be working':
>I have a network 172.20.0.0/16 dgw is 172.20.0.1
>
>ip 134.134.134.1/32 is available via 172.20.1.50
>
>so on 172.20.0.1 I have set
>
>
>net.ipv4.conf.eth1.send_redirects = 1

Okay, but does 172.20.0.1 know that 134.134.134.1 is reachable via
172.20.1.50? Specifically, does it have a route for that specific host.
Look at the output of /sbin/route -n or /sbin/ip route show.

It won't sent redirects for routes it doesn't know. It only knows the
routes it's been told or discovers. (I'm not exactly sure how it would
discover this route.)
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss03@volumehost.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.org/ \_/
 
Old 11-05-2008, 07:57 PM
Alex Samad
 
Default redirects don't seem to be working

On Wed, Nov 05, 2008 at 01:29:30PM -0600, Boyd Stephen Smith Jr. wrote:
> On Sunday 02 November 2008, Alex Samad <alex@samad.com.au> wrote
> about 'redirects don't seem to be working':
> >I have a network 172.20.0.0/16 dgw is 172.20.0.1
> >
> >ip 134.134.134.1/32 is available via 172.20.1.50
> >
> >so on 172.20.0.1 I have set
> >
> >
> >net.ipv4.conf.eth1.send_redirects = 1
>
> Okay, but does 172.20.0.1 know that 134.134.134.1 is reachable via
> 172.20.1.50? Specifically, does it have a route for that specific host.
> Look at the output of /sbin/route -n or /sbin/ip route show.

yep I have one, use ip r.

my current work around is to use SNAT and iptables, which is not the
best solution as every packet will need to come and then go back out the
new router (172.20.0.1)

>
> It won't sent redirects for routes it doesn't know. It only knows the
> routes it's been told or discovers. (I'm not exactly sure how it would
> discover this route.)
> --
> Boyd Stephen Smith Jr. ,= ,-_-. =.
> bss03@volumehost.net ((_/)o o(\_))
> ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
> http://iguanasuicide.org/ \_/



--
"Sometimes, Washington is one of these towns where the person -- people who think they've got the sharp elbow is the most effective person."

- George W. Bush
12/03/2002
New Orleans, LA
 

Thread Tools




All times are GMT. The time now is 11:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org