[NTLUG:Discuss] Linux - wet11 bridge
terry
linux at cowtown.net
Thu Sep 11 18:52:31 CDT 2003
Never mind... I found my error. I'd improperly formatted ifcfg-eth1, a
very stupid mistake, the first line read:
DEVICE= eth0
Changed that to read:
DEVICE= eth1
and all is well. I was able to remove:
ifconfig eth1 up
ifconfig eth1 ###.##.#.###
from rc.local and I can now access wet11's config pages.
Still have to establish route
route add default gw ###.##.#.# eth1
Should I just put that line back in rc.local ?
Or should it be done some other way?
terry wrote:
> I've just set up an ethernet - wireless bridge, Linksys's wet11, and
> all is well with the connection to the access point, (which is now
> providing my link to outside). I also set up NAT / ipmasquerading so
> that I can share the connection [as I'm only using one IP], and that
> sees to be working okay. However, now that I've configured NAT, I
> find that I'm no longer able to connect to wet11's configuration pages
> [via the browser]. I can connect the cable another computer's nic and
> connect to it just fine.
>
> The way I configured it: I installed a second nic in one of my
> computers and connected it to wet11, while leaving it's original nic
> connected to my hub. On this computer I set up IP masquerading by
> adding following lines to /etc/rc.d/rc.local
> ====================
> /sbin/ipchains -P forward DENY
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/ipchains -A forward -i eth0 -j MASQ
>
> iptables -t nat -A POSTROUTING -j MASQUERADE -o eth1 -s 192.###.#.0/24
> ====================
> I'm also using /etc/rc.d/rc.local to configure eth1 - so above
> these previous commands, you'll see:
> ===================
> ifconfig eth1 up
> ifconfig eth1 ###.##.#.###
>
> route add default gw ###.##.#.# eth1
> ==================
>
> Anyone see any obvious, [or not so obvious], errors in the way I've
> done this?
>
--
Registered Linux User #188099
<><
More information about the Discuss
mailing list