Nety DD-WRT Novice
Joined: 26 Feb 2009 Posts: 1
|
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.
http://www.dd-wrt.com/wiki/index.php/WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc
The commands I am using are as below.
Startup:
ifconfig eth2 up inet 192.168.8.1 netmask 255.255.255.0
cat << EOF > /tmp/new.dnsmasq.conf
interface=eth2
resolv-file=/tmp/resolv.dnsmasq
leasefile-ro
dhcp-script=/etc/lease_update.sh
dhcp-lease-max=50
dhcp-option=eth2,3,192.168.8.1
dhcp-range=eth2,192.168.8.100,192.168.8.249,255.255.255.0,1440m
EOF
killall dnsmasq
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 &
Firewall:
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. |
|