Hi all,

I seem to be having some trouble with proxy arp and am hoping someone here
can help.  I am attempting to setup a Linux router which will route my
internet traffic to my ISP's gateway.  Unfortunately, it doesn't seem to be
working properly.  For now, the router machine has two ethernet connections. 
One to the gateway and one to the machine I want to route.

gateway = 209.53.18.254

router eth1 = 209.53.18.174

router eth0 = 209.53.18.24

internal machine = 209.53.18.20

The router's /etc/init.d/network reads as follows.

#!/bin/sh
# Sysctls we have to enable for routing
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
ifconfig lo 127.0.0.1
ifconfig eth0 209.53.18.24 netmask 255.255.192.0 broadcast 209.53.63.255
route del -net 209.53.0.0 netmask 255.255.192.0 eth0
ifconfig eth1 209.53.18.174 netmask 255.255.192.0 broadcast 209.53.63.255
route add default gw 209.53.18.254 eth1
# 209.53.18.20 (00:10:5A:80:35:3C) is on eth0 and should be routed out
route add -host 209.53.18.20 eth0
# set up proxy arp to respond on eth1 for this host
arp -i eth1 -s 209.53.18.20 00:10:5A:80:35:3C pub

It seems to pass traffic out as is indicated by the following traceroute
from the internal machine.

continuum:~$ traceroute -n 209.53.18.254
traceroute to 209.53.18.254 (209.53.18.254), 30 hops max, 40 byte packets
 1  209.53.18.24  1 ms  0 ms  0 ms
 2  * *
 3
continuum:~$

I suspect it's the proxy arp that isn't working properly by the output of
this arp command on the router.

argus:~# arp -n
Address                 HWtype  HWaddress           Flags Mask
Iface
209.53.18.254           ether   40:00:D1:35:12:F3   C
eth1
209.53.0.17             ether   40:00:D1:35:12:F3   C
eth1
209.53.12.101           ether   40:00:D1:35:12:F3   C
eth1
209.53.0.1              ether   40:00:D1:35:12:F3   C
eth1
209.53.18.20            ether   00:10:5A:80:35:3C   C
eth0
209.53.18.20            *       *                   MP
eth1
argus:~#

In the pub entry, shouldn't the proper mac address show up instead of a *. 
Is that what the problem is here?

argus:~# uname -a
Linux argus 2.2.12 #1 Sat Sep 25 22:46:56 PDT 1999 i586 unknown
argus:~#

Any suggestions greately appreciated,
Shane

-- 
Shane Wegner: [EMAIL PROTECTED]
Personal website: http://www.cm.nu/~shane       Fax: (604) 930-0529
PGP: keyid:       2048/1C0FFA59                 ICQ UIN: 120000
     Fingerprint: C6 5F B3 85 0B 11 30 F3
                  52 89 0C 6C 49 08 94 7B

PGP signature

Reply via email to