IlPuntoTecnico
Hardware e Software => Connessioni ADSL/VDSL/FTTC => Topic aperto da: rotra - 01 Aprile 2012, 19:22
-
Ciao a tutti!
Ho flashato il fw USR (varie versioni) sull'AGA. Ho bisogno di collegarlo in client mode a un altro router (non in WDS, client mode + routed o bridged, ovvero come se fosse un PC che si collega ad un AP). Ok, da interfaccia web non c'è nulla, quindi sono passato alla linea di comando ma non riesco a farlo funzionare.
Ho provato ad esempio con:
CHANNEL="1"
#WLAN einschalten
wlctl up
#WLAN AP-Modus deaktivieren/Client Modus aktivieren
wlctl ap 0
#Channel einstellen
wlctl channel $CHANNEL
#Bridging einschalten
wlctl wet 1
brctl addif br0 wl0
ifconfig wl0 up
ifconfig eth0 up
ebtables -t broute -A BROUTING -p arp -j ACCEPT
ebtables -t broute -A BROUTING -p ipv4 -j ACCEPT
ebtables -t broute -A BROUTING -j DROP
###############################Verschluesselung#######################
SSID="Alice-11111111"
WPA_PSK="sssssssssssssssssssssss"
#WEP ausschalten
wlctl wepstatus 0
#Verbindung zum Zielnetz unter Verwendung von $WPA_PSK aufbauen
nas -i wl0 -S -m 4 -k $WPA_PSK -s $SSID -w 6 -g 3600
######################################################################
tratto da un sito tedesco ma non specifico per l'AGA.
Ho anche letto varie guide, guidine e esempi ma niente: con
wlctl dump
vedo che si imposta il SSID ma di fatto non riesco poi a pingare l'altro router.
Qualcuno ha suggerimenti prima che butto via tutto e compro un dd-wrt?
Grazie!
romano
-
Ho notato che il post è vecchio ma posto comunque in caso servisse a qualcuno
SSID="Alice-11111111"
WPA_PSK="sssssssssssssssssssssss"
CHANNEL="1"
if (pidof nas); then
kill -TERM `pidof nas`
if (pidof nas); then
kill -KILL `pidof nas`
fi
fi
wlctl up
wlctl ap 0
wlctl channel $CHANNEL
wlctl wet 1
wlctl wsec 6
wlctl wpa_auth 4
wlctl wepstatus 0
nas -i wl0 -S -m 4 -k $WPA_PSK -s $SSID -w 6 -g 3600 &
sleep 5
if (pidof nas); then
kill -TERM `pidof nas`
sleep 1
if (pidof nas); then
kill -KILL `pidof nas`
fi
fi
nas -i wl0 -S -m 4 -g 3600 -s $SSID -w 2 -k $WPA_PSK &
fi
brctl delif br0 wl0 #elimino wl0 dal bridge
ifconfig wl0 192.168.1.249 netmask 255.255.255.0 #assegno un indirizzo a wl0
route add -net default gw 192.168.1.1 wl0 #imposto il default gateway
iptables -t nat -A POSTROUTING -o wl0 -s 192.168.0.0/24 -j SNAT --to 192.168.1.249 #NAT
iptables -A FORWARD -i br0 -o wl0 -s 192.168.0.0/24 -j ACCEPT #accetto i pacchetti in uscita
iptables -A FORWARD -i wl0 -o br0 -m state --state ESTABLISHED,RELATED -j ACCEPT #e i pacchetti di ritorno
Bisogna cambiare anche l'indirizzo ip del router in 192.168.0.1