Re: Help proxy_arp

From: Edu (faramir_27@hotmail.com)
Date: 01/19/03


From: faramir_27@hotmail.com (Edu)
Date: 19 Jan 2003 03:12:39 -0800

Yes, yes...I should explain more things about my problem:

My box has two ethernet interfaces, in one of them may appear a host
with any IP from 0.0.0.0 to 255.255.255.255 (of course, I mean any IP
but the reserved ones) and my box must act as a completely transparent
proxy for all of them. It's not easy, but many issues are solved.

These hosts will try to find their default gateways, DNS, etc. and my
box must respond with its own MAC address to all of ARP requests in
order to act as the gateway for all hosts (which, as I said, may have
any possible IP). Enabling proxy_arp it worked except for the fact it
sends ARP responses when a host is verifying that there's no other
host with the same IP. That's what I want to change.

Another problem I must solve is the fact that there may be duplicated
IPs, but this is another story.

Edu

efflandt@xnet.com (David Efflandt) wrote in message news:<slrnb2kfbk.fa7.efflandt@typhoon.xnet.com>...
> On Sat, 18 Jan 2003 19:26:15 +0100, Edu <eduardg@mat.upc.es> wrote:
> > Hi,
> >
> > I would like to change the default proxy_arp behaviour. I think that
> > enabling proxy_arp in a Linux box (echo 1 >
> > /proc/sys/net/ipv4/ethX/proxy_arp) makes it to response all ARP requests
> > with its own MAC address, but...
>
> Only for itself or other interface(s) it is proxy arp for.
>
> > many times, when a PC starts its network devices, it sends an ARP request to
> > check out that nobody has its same IP address, so... I'd want the Proxy_ARP
> > to ignore these requests but the rest.
>
> No 2 machines on the same subnet should have the same IP anyway, so this
> does not really make any sense. In other words if proxy_arp is enabled on
> eth0 with 192.168.1.0/255.255.255.0 network) and eth1 is
> 192.168.1.240/255.255.255.248 network, then no computer on eth0 can use
> IPs 192.168.1.240-.247. Proxy arp is kind of like a bridge that puts
> other interfaces on the same network that proxy_arp is enabled on, except
> eth1 in this case would not see 192.168.1.255 broadcasts from eth0. But
> eth0 should and would answer arp requests that come in on that interface
> for any IP on eth1.



Relevant Pages

  • Re: single host netmask (255.255.255.255)
    ... The routes from three interfaces, propagate via OSPF to the rest of network.... ... One way is to remember IP addresses assigned to each interfaces, but more smart solution is to assign to this machine one EXTERNAL LOOPBACK address (single IP with mask 255.255.255.255, in other words SINGLE HOST assigned to Microsoft loopback adapter), and propagate this address ... The address 255.255.255.255 denotes a broadcast on a local hardware network, ...
    (microsoft.public.win2000.networking)
  • Re: jails and multple interfaces
    ... The server has two network interfaces, I am configuring one for host ... All the services running on the host are configured to bind to the host ... I have the jail host's services all binding to the first interfaces ip, ...
    (freebsd-stable)
  • Re: A few more newbie questions
    ... IP address) for network interfaces on this host. ... To specify the addresses/names of other machines, ...
    (comp.os.linux.misc)
  • Re: FreeBSD 4.9 / VRRP / vlan
    ... |> vlan20, I see arp requests going out, on the tcpdump I launched on the ... |> according host, I see the arp request coming in, the response going out, ... | subnet assigned to vlan interface ... | by hand, and second, `proper' subnet, assigned with freevrrpd. ...
    (freebsd-net)
  • Re: FreeBSD 4.9 / VRRP / vlan
    ... > vlan20, I see arp requests going out, on the tcpdump I launched on the ... > but I don't see any response going in on the router. ... > host, the echo reply going back, but they're not received on the router. ... by hand, and second, `proper' subnet, assigned with freevrrpd. ...
    (freebsd-net)