LINKSYS WRT54G Wireless G Router Instructions
V24:_WLAN_separate_from_LAN,_with_independent_DHCP
--Nienberg 08 February 2010
• if you want to be able to control some of the wireless settings from the GUI, you can improve the
startup script to something like the following. Remember you have to reboot the router though after
you make a change in the GUI so the startup script will run. You could extend the concept for the m
and w parameters, but you will have to convert them from the text stored in nvram to the integer
expected by the command line.
PSK=$(nvram get wl0_wpa_psk)
SSID=$(nvram get wl0_ssid)
REKEY=$(nvram get wl0_wpa_gtk_rekey)
killall nas
nas -P /tmp/nas.wl0lan.pid -H 34954 -l eth1 -i eth1 -A -m 132 -k $PSK -s $SSID -w 6 -g $REKEY &
• if you have port redirection (Virtual Servers) on the LAN and if you want wireless users to be able to
access the Virtual Servers then you must be more careful with the order of the firewall rules. The
following script is an example:
LAN_IP=$(nvram get lan_ipaddr)/$(nvram get lan_netmask)
# we want users of our wireless to be able to access our virtual servers,
# so our rules must come after the rules that forward to our virtual servers.
# we insert them just before the last two rules.
# delete this rule created by the GUI. it is too high in the order
iptables -D FORWARD -i eth1 -j ACCEPT
# count the number of lines in the output of the list minus 3
INSERT_LINE=$(expr $(iptables -nL FORWARD | wc -l) - 3)
# prevent the wireless from sending to the LAN
iptables -I FORWARD $INSERT_LINE -i eth1 -d $LAN_IP -j logdrop
# accept anything else from the wireless (put back the deleted rule)
INSERT_LINE=$(expr $INSERT_LINE + 1)
iptables -I FORWARD $INSERT_LINE -i eth1 -j ACCEPT
--Cdufour 27 February 2010
Running V24 preSP2 build 13064 VINT/nokaid on a WRT54G v2.2, I found out that the culprit is not the
missing '-l eth1' parameter for the 'nas' service, but rather a services order start issue. I found out that
restarting the 'nas' service a few seconds after the end of the boot process solves the problem of clients not
being able to obtain a DHCP lease (Note: I use DNSmasq DHCP, for I have the 'DHCP Server' disabled on
the LAN segment; see Separate LAN and WLAN):
In 'Administration -> Commands -> Save Startup':
sh -c 'sleep 15; nas=$(ps w | grep "^ *$(pidof nas) " | sed "s/.*nas -P/nas -P/"); killall -9 nas
Comments
3
| General | Details |
|---|---|
| Name | LINKSYS WRT54G Wireless G Router Instructions |
| Make | Linksys |
| Language | English |
| Filetype | PDF (Download) |
| File size | 0.04 MB |
If you have any questions regarding LINKSYS WRT54G Wireless G Router Instructions, please ask here and describe the problem in detail.

LINKSYS EA7500 AC1900 Max Stream Wifi Router User Guide

Linksys WRT300N Wireless-N Broadband Router User Guide

LINKSYS MX4200 Router Installation Guide

LINKSYS N600 Dual Band Router User Guide

LINKSYS E2500 Dual Band Router User Guide

LINKSYS AX3200 Dual-Band Gigabit Wi-Fi 6 Router User Guide

LINKSYS FGW5500 5G WiFi 6 Router User Guide

LINKSYS AX1800 Dual-Band WiFi 6 Router E7350 User Guide

LINKSYS 750MR7500 Hydra Pro 6E Mesh Router User Guide

LINKSYS E900 Wi-Fi Router User Manual

















