[NTLUG:Discuss] Linux - wet11 bridge
terry
linux at cowtown.net
Thu Sep 11 13:50:00 CDT 2003
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