Joined: 26 Feb 2009
|Posted: Thu Feb 26, 2009 22:39 Post subject: Use WRT54G v1.1 as access point and seperate switch for lan.
|OK so what I want to do is a bit different and I have not been able to get it working.
I want the wan port to only be connected to the wireless side. I do not want it to be firewalled as it is being feed from inside the network. Ideally I also want it to pass on DHCP requests rather then running the DHCP server on the router. I do want it to run security.
I also want to be able to use the 4 lan ports as a simple switch but with no connection to the wan or wifi side.
I have tried to get what I want following this guide but it does not quite work and does not quite do it how I want anyway.
The commands I am using are as below.
ifconfig eth2 up inet 192.168.8.1 netmask 255.255.255.0
cat << EOF > /tmp/new.dnsmasq.conf
dnsmasq --conf-file /tmp/new.dnsmasq.conf
wlconf eth2 up
nas -P /tmp/nas.wl0lan.pid -H 34954 -l eth2 -i eth2 -A -m 128 -k replced for security -s as for k -w 2 -g 3600 &
iptables -I INPUT 9 -i eth2 -m state --state NEW -j logaccept
iptables -I FORWARD 7 -i eth2 -o vlan1 -j ACCEPT
Thanks in advance for any help you can provide.