Linux Netfilter discussions
 help / color / mirror / Atom feed
From: George Alexandru Dragoi <waruiinu@gmail.com>
To: "alexb@atix.com.br" <alexb@atix.com.br>
Cc: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: ARP question
Date: Fri, 11 Mar 2005 19:43:58 +0200	[thread overview]
Message-ID: <3063e5050311094359b3723e@mail.gmail.com> (raw)
In-Reply-To: <1110546366.423197bebe6e1@webmail.atix.com.br>

It has to do with icmp redirescts. You can do these:
on the main server, the one with the internet connectiosn, eun this command:

# for i in /proc/sys/net/ipv4/conf/*/send_redirects ; do echo 0 > $i ; done
also make sure in FORWARD chain in iptables packets between the 2
subnets is accepted.

Also, you can make sure all hots from lan accept the redirects, like

# for i in /proc/sys/net/ipv4/conf/*/accept_redirects ; do echo 1 > $i ; done

Another way, wich is probably the best if you administrate all
computers in lan (hostA, hostB and Serv6) is to add static routes like
these:

HostA:
# ip ro add 200.1.1.0/27 dev eth0

eth0 is the card connected to lan

same on hostB

on serv6:

# ip ro add 200.2.2.8/29 dev eth0

You can read about icmp redirects on google, it is usually used for
sending info to routers about some better routes when they can guess
the topology permit it.

On Fri, 11 Mar 2005 10:06:06 -0300, alexb@atix.com.br <alexb@atix.com.br> wrote:
> I've a strange problem in my network that I beleave is related to the arp table
> and would like to ask if someone could help me trace down the source of my
> probleme.
> 
> My firewall has two internal networks on the same nic and routes back trafic
> from one network to the other eaven they are on the same segment. It's not
> elegand, but in an emergency (after a host crash) its what I could bring up.
> 
>                   Internet
>                       |
>                       |    eth0=PublicIP
>                   firewall
>                       |    eth1=200.1.1.1/27
>                       |  eth1:0=200.2.2.9/29
>                       |
>    Host-A          Host-B         Serv6
>  200.2.2.12/29   200.2.2.14/29  200.1.1.6/27 eth0:0=200.1.1.5/27
> 
> At Host-A it happens that the IP+MAC of Serv6 gets in his arp table, but there
> is no direct route between this hosts. When that happens every services
> provided by serv6 can still be accessed at Host-A as they are routed thru the
> firewall. But I can't ping from Host-A to Serv6.
> If I force to remove Serve6 from host-A arp table (arp -i eth0 -d Serv6) and
> flush his route table (ip route flush cache) then I can ping Serv6.
> Unfortunetly, some minutes later, Serv6 gots into the arp table from Host-A and
> stops ping that I use to monitore the server.
> The problem just occurs on Host-A, I can't see a topological difference betwean
> Host-A and Host-B, just the service they are running.
> Also I have a secont IP bind to the same nic at Serv6, that doesn't get afected
> by this problem (in fact the second IP doesn't ever apears in the arp table).
> 
> What I whant to figure out is how the base IP from Serv6 goes into Host-A arp
> table, as there are no explicit route between the two networks on both (host-A
> and Serv6) forcing them to use the Default Gatway to comunicate. As I
> understand they shouldn't issue any arp requests from the other host as they
> will comunicate thru the GW (firewall).
> 
> Any idea ?
> 
> Thanks
> 
> Alexander E. Belck
> 
> -----------------------------------------------------------------
> Esta mensagem foi enviada pelo IMP, o Internet Messaging Program.
> 
> 


-- 
Bla bla


  reply	other threads:[~2005-03-11 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 13:06 ARP question alexb
2005-03-11 17:43 ` George Alexandru Dragoi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-28  6:40 arp question Stephane Couture

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3063e5050311094359b3723e@mail.gmail.com \
    --to=waruiinu@gmail.com \
    --cc=alexb@atix.com.br \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox