# # -------------------------------------------------------------------------- # These Variables are loaded into ( sourced from ) NetGear.WG311.Install.sh # -------------------------------------------------------------------------- # # # Original File # ------------- # http://www.Linux-Sec.net/Wireless/Install-HowTo/madwifi.txt # http://www.Linux-Sec.net/Wireless/Install-HowTo/NetGear.WG311.Install.sh # http://www.Linux-Sec.net/Wireless/Install-HowTo/NetGear.WG311.config ( this file ) # # # 10-Dec-03 amo Install Wireless PCI card ( Netgear WQG311 -- 802.11g ) # 19-Dec-03 amo Allow for 2.6.0 vs 2.4.23 kernels # 02-Jan-04 amo Added slackware/redhat switch # 04-Jan-04 amo Converted to stop|start format, iwconfig, iwpriv commands # 18-Apr-04 amo Renamed wl.install.sh to NetGear.WG311.Install.txt # 19-Apr-04 amo Install latest iwconfig ( beta27 ) # 20-Apr-04 amo Separate out the commands # 21-Apr-04 amo Separate out Wireless Config Variables # 05-May-04 amo Added Rate, Mode # # # # # # # Turn on IP_Forward on your AP # # ----------------------------- # # - enable packet forwarding on the Gateway # # echo "1" > /proc/sys/net/ipv4/ip_forward # # # # - turn on masquerade and add a firewall # # ./NetGear.WG311.Install.sh ap # # # # # Host IP# of this wireless device # IPADDR="192.168.1.1" # # # Wireless Gateway # GATEWAY="192.168.1.1" # # # Determine broadcast and network addresses from the IP address and netmask: # # BROADCAST=`ipmask $NETMASK $IPADDR | cut -f 1 -d ' '` BROADCAST=192.168.1.255 # # # NETWORK=`ipmask $NETMASK $IPADDR | cut -f 2 -d ' '` NETWORK=192.168.1.0 # # # Network Mask NETMASK="255.255.255.0" # # # # # ------------------------------------- # Define the Wireless Network Variables # ------------------------------------- # # # ESSID (extended network name) : My Network, any # - it is case SenSitiVe # - up to 32 alphanumeric characters # - Do not use spaces, dashes, slashes, or other non-alphanumeric characters. # # use the same ESSID and same Channel as the ESSID for your AP # ESSID="any" ESSID="Any-ESSID" # # NICK="WL1" # # # NWID/Domain (cell identifier) : 89AB, 100, off NWID="off" # # INTERFACE="ath0" # # # Where is the AccessPoint to the internet # AP="xx:xx:xx:xx:xx:xx" AP="any" # AP="off" # # An AP address equal to 00:00:00:00:00:00 means that the card # failed to associate with an Access Point # # # Key Sizes # ---------- # http://www.iss.net/wireless/WLAN_FAQ.php # 5 char - 40 bit # 6 char - 48 bit # # WG311 supports 40/48/128 bit keys # # # KEY=off to disable # # in open mode no authentication is used and the card may also accept non-encrypted sessions, KEY="open" # # KEY="02468" # # # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto # -------------- # # the node is the synchronisation master or act as an Access Point MODE="Master" # # Ad-Hoc network composed of only one cell and without Access Point # MODE="Ad-Hoc" # # Managed node connects to a network composed of many Access Points # MODE="Managed" # # For wireless clients # MODE="auto" # # # Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency) # FREQ="" # # # use the same ESSID and same Channel as the ESSID for your AP # For best use of the spectrum and sharing with neighbors # 802.11b networks should use channels 01, 06 or 11. # CHANNEL="1" # # # 11b Rates: 1Mbps 2Mbps 5.5Mbps 11Mbps # 11g Rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps # RATE="auto" # RATE="54MB" # RATE="24MB" # # RTS="off" FRAG=off # # # 3 - 802.11g # 2 - 802.11b # 1 - 802.11a # # MODEGBA=3 MODEGBA=2 # # # ====================== # Other Wireless Options # ====================== # http://inferno.slug.org/cgi-bin/wiki?Wireless_Opts # # # End of file