Сообщение от Atilla
Посмотреть сообщение
WEP:
#!/bin/sh
#Encryption mode:
# 0 - disabled; 1 - WEP64; 5 - WEP128; 2 - WPA-PSK/WPA2-PSK
iwpriv wlan0 set_mib encmode=5
#Number of key for encrypt. Range 0-3
iwpriv wlan0 set_mib wepdkeyid=0
#64bit/128bit WEP Encryption
iwpriv wlan0 set_mib wepkey1=00000000000000000000000001
iwpriv wlan0 set_mib wepkey2=
iwpriv wlan0 set_mib wepkey3=
iwpriv wlan0 set_mib wepkey4=
GENERAL:
#!/bin/sh
#Set ESSID of wirelless Infrastructure Network
iwpriv wlan0 set_mib ssid="TEST"
iwpriv wlan0 set_mib hiddenAP=1
#Set Mode: 8 - Client;16 - AP; 32 - AdHoc
iwpriv wlan0 set_mib opmode=8
#Set Regulatory Domain:
# "3" - 13 channels available, "6" - 14 channels available.
# FCC=1;IC=2;ETSI=3;SPAIN=4;FRANCE=5;MKK=6
iwpriv wlan0 set_mib regdomain=6
#Set Channel here
iwpriv wlan0 set_mib channel=10
#Set Initial Gain: in range 0-7
# It seems to be sens but maybe not. Just test
iwpriv wlan0 set_mib initialGain=4
#Set TransmitPower for CCK(802.11b) modulation
# Please Change it in variable
CCKPOWER=12
iwpriv wlan0 set_mib TxPowerCCK=`ader $CCKPOWER 14`
#iwpriv wlan0 set_mib TxPowerCCK=1010101010101010101010101010
#Set TransmitPower for OFDM(802.11g) modulation
# Please Change it in variable
OFDMPOWER=15
iwpriv wlan0 set_mib TxPowerOFDM=`ader $OFDMPOWER 162`
#iwpriv wlan0 set_mib TxPowerOFDM=10101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010 101010101010101010101010101010101010
iwpriv wlan0 set_mib basicrates=4095
iwpriv wlan0 set_mib oprates=4095
iwpriv wlan0 set_mib fixrate=1
iwpriv wlan0 set_mib autorate=1
iwpriv wlan0 set_mib band=3
iwpriv wlan0 set_mib bcnint=100
#RTS/CTS Threshold
iwpriv wlan0 set_mib rtsthres=500
iwpriv wlan0 set_mib fragthres=2346
iwpriv wlan0 set_mib expired_time=50000
iwpriv wlan0 set_mib dtimperiod=1
iwpriv wlan0 set_mib show_hidden_bss=1
iwpriv wlan0 set_mib preamble=0
iwpriv wlan0 set_mib shortretry=6
iwpriv wlan0 set_mib longretry=6
iwpriv wlan0 set_mib Diversity=0
iwpriv wlan0 set_mib DefaultAnt=0
iwpriv wlan0 set_mib RFChipID=7
iwpriv wlan0 set_mib led_type=7
#G protection
iwpriv wlan0 set_mib disable_protection=0
#For bridged mode set this parameters
# Nat2.5 is technology to change the source MAC to MAC of Wlan-interface
# be carefull it says disabled, so make inverse in your decision
iwpriv wlan0 set_mib nat25_disable=1
# Macclone says all about itself. It just takes MAC of ETHERNET device on other end of line
# and take it for Wlan-interface. be carefull if this enabled it must be one device on a line.
iwpriv wlan0 set_mib macclone_enable=0
iwpriv wlan0 set_mib dhcp_bcst_disable=1
#Block packets between clients connected
# 0 - disable; 1 - block relay;2 - block relay but passup
iwpriv wlan0 set_mib block_relay=0
iwpriv wlan0 set_mib wifi_specific=0
INTERFACES:
BRIDGE_START=yes
#When auto_bridge is "yes" then init.script makes bridge itself
# when aut_bridge is "no" then init.script start /etc/network/bridge
AUTO_BRIDGE=no
BR0_IPADDR=192.168.47.118/24
IPV4_FORWARD_ENABLE=yes
START_IPTABLES=no
ETH0_ENABLED=yes
ETH0_IPADDR=192.168.47.120/24
ETH0_MACADDR=0021911061E2
ETH0_DEVICE=eth0
ETH1_ENABLED=no
ETH1_IPADDR=192.168.47.119/24
ETH1_MACADDR=0021911061E1
ETH1_DEVICE=eth1
WLAN_ENABLED=yes
WLAN_IPADDR=192.168.47.121/24
WLAN_MACADDR=002127e03e66
(На данный момент всё сделано так. G700 цеплялся к точке 192.168.1.118 Без WEP-а работает.)
Комментарий