(E-Mail Removed) (David Efflandt) wrote in
news:(E-Mail Removed):
> Your mistake with proxy_arp was probably the netmask for eth0 interface
> or conflicting/missing routing for eth1 hosts.
>
> Your eth0 should be configured with netmask 255.255.255.255, broadcast
> same as IP, host route to the gateway on eth0, and default route to that
> gateway.
>
> Then your eth1 could use the same IP as eth0, netmask 255.255.255.248.
> Your public boxes on private side would use your eth0/eth1 IP as gateway.
>
> echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
>
> Then it should work, with eth0 answering incoming arp requests for your
> IPs on eth1. I am doing something similar with a /29 wireless subnet of
> ISP
> |
> 111.222.111.152/32, host route to ISP gw, default to gw
> |
> eth0 proxy_arp enabled
> new Linux box
> eth1
> |
> 111.222.111.152/29
> |
> 8 port ethernet switch
> | | |
> .154 .155 .156
No Joy. The GW is 153. Only an unused IP (157 or 158) can be used for
eth0. Do you see what I've done wrong? (Do you need a description of
WBTH/WGTFTH?):
|#!/bin/bash -x
|
|# This does I/O and does not generate any errors.
|# However, proxyARP doesn't work.
|
|/usr/sbin/firewall.sh stop # Set Policy ACCEPT, Flush
|ifconfig eth1 down
|ifconfig eth0 down
|ifconfig lo down
|modprobe -r 3c59x
|modprobe -r 8139too
|ifconfig lo 127.0.0.1
|
|modprobe 8139too
|ifconfig eth0 206.72.89.158 broadcast 206.72.89.158 \
|netmask 255.255.255.255
|
|modprobe 3c59x
|ifconfig eth1 206.72.89.158 broadcast 206.72.89.159 \
|netmask 255.255.255.248
|
|ip route add 206.72.89.153 dev eth0
|route add default gw 206.72.89.153
|echo 1 >/proc/sys/net/ipv4/conf/eth0/proxy_arp
|echo 1 >/proc/sys/net/ipv4/ip_forward
|# The above purportedly will answer arp requests for all IPs on eth1
|iptables -A FORWARD -j LOG
FWIW, 154 155 and 156 all use the same 'ifconfig eth1' and 'default gw'
entries, identical except for IP. I "wrapped" the long lines for posting.
gypsy
"WBTH/WGTFTH" copyright the author.