View previous topic :: View next topic |
Author |
Message |
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Tue Oct 25, 2005 4:42 pm Post subject: [Wifi] Blacklister un AP (résolu) |
|
|
Yop tout le monde,
je voulais savoir s'il y avait un moyen simple de blacklister cetains access points. Par exemple, lorsque je fais un dhcp sur mon AP, je me connecte sur celui du voisin ...
Merci
Last edited by bulki on Wed Oct 26, 2005 12:00 pm; edited 1 time in total |
|
Back to top |
|
|
MrCoYoTe Tux's lil' helper
Joined: 04 Jan 2005 Posts: 99
|
Posted: Tue Oct 25, 2005 4:48 pm Post subject: |
|
|
J'ai pas très bien compris, ton AP ? access point normal genre linksys ? ou c'est un AP fait maison ? parceque je sais pas mais avant de faire un dhcp wlan0 en général on définit l'AP et sa mac adresse avec la commande iwconfig.
Alors à moins que ton voisin est le meme nom et la meme mac address ce qui est impossible ..... |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Tue Oct 25, 2005 4:58 pm Post subject: |
|
|
MrCoYoTe wrote: | J'ai pas très bien compris, ton AP ? access point normal genre linksys ? ou c'est un AP fait maison ? parceque je sais pas mais avant de faire un dhcp wlan0 en général on définit l'AP et sa mac adresse avec la commande iwconfig.
Alors à moins que ton voisin est le meme nom et la meme mac address ce qui est impossible ..... |
Disons que je suis souvent en déplacement, que je ne connais pas TJRS toutes les infos sur la borne sur laquelle je me connecte. Certaines fois, je suis dans un environnement avec plusieurs bornes autour de moi (cf Université).
Comme avant toute chose je définis un:
Code: | iwconfig eth1 mode managed essid off key off
|
Pour remettre les pendules à l'heure, il devrait se connecter automatiquement sans que je lui donne de plus amples infos sur la borne qui a le meilleur rapport signal/bruit...
Dans mon cas, il se connecte sur celle du voisin... |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Oct 25, 2005 5:01 pm Post subject: |
|
|
rajoute ap <MAC DE TON AP WIFI> a ta commande pour specifier l'acces point a utiliser _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Tue Oct 25, 2005 5:04 pm Post subject: |
|
|
kernel_sensei wrote: | rajoute ap <MAC DE TON AP WIFI> a ta commande pour specifier l'acces point a utiliser |
Mais si je peux en utiliser 10 et sur ces 10, 1 seule ne me convient pas, n'y a-t-il pas un moyen de faire en sorte qu'il ne s'y connecte pas ? |
|
Back to top |
|
|
nico_calais l33t
Joined: 09 Jun 2005 Posts: 628 Location: Saint Julien en Genevois
|
Posted: Wed Oct 26, 2005 6:59 am Post subject: |
|
|
Qu'est ce que tu utilises exactement comme AP ? _________________ "Unix IS user friendly... It's just selective about who its friends are." Tollef Fog Heen tollef@add.no |
|
Back to top |
|
|
LostControl l33t
Joined: 02 Mar 2004 Posts: 885 Location: La Glane, Suisse
|
Posted: Wed Oct 26, 2005 7:05 am Post subject: |
|
|
Salut,
Voici un extrait de /etc/conf.d/wireless :
Code: | # You can define blacklisted Access Points in the same way
#blacklist_aps=( "ESSID 1" "ESSID 2" )
#blacklist_aps_eth0=( "ESSID 3" ESSID 4" ) |
Que dire de plus ? Ah oui, peut-être que /etc/conf.d/wireless vient de /etc/conf.d/wireless.example. Voilà tout est dit !
A+ _________________ http://www.jaqpot.net
http://www.fail2ban.org |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Wed Oct 26, 2005 12:00 pm Post subject: |
|
|
LostControl wrote: | Salut,
Voici un extrait de /etc/conf.d/wireless :
Code: | # You can define blacklisted Access Points in the same way
#blacklist_aps=( "ESSID 1" "ESSID 2" )
#blacklist_aps_eth0=( "ESSID 3" ESSID 4" ) |
Que dire de plus ? Ah oui, peut-être que /etc/conf.d/wireless vient de /etc/conf.d/wireless.example. Voilà tout est dit !
A+ |
Mieux que ça, tu pouvais pas faire
Merci bcp |
|
Back to top |
|
|
LostControl l33t
Joined: 02 Mar 2004 Posts: 885 Location: La Glane, Suisse
|
Posted: Wed Oct 26, 2005 12:05 pm Post subject: |
|
|
bulki wrote: | Mieux que ça, tu pouvais pas faire
Merci bcp |
Mais de rien
Tu pourrais également résoudre ton problème de manière inverse avec ça :
Code: | # This lists the preferred ESSIDs to connect to in order
# ESSID's can contain any characters here as they must match the broadcast
# ESSID exactly.
# Surround each ESSID with the " character and seperate them with a space
# If the first ESSID isn't found then it moves onto the next
# If this isn't defined then it connects to the first one found
#preferred_aps=( "ESSID 1" "ESSID 2" )
# You can also define a preferred_aps list per interface
#preferred_aps_eth0=( "ESSID 3" "ESSID 4" )
# You can also say whether we only connect to preferred APs or not
# Values are "any", "preferredonly", "forcepreferred", "forcepreferredonly" and "forceany"
# "any" means it will connect to visible APs in the preferred list and then any
# other available AP
# "preferredonly" means it will only connect to visible APs in the preferred list
# "forcepreferred" means it will forceably connect to APs in order if it does not find
# them in a scan
# "forcepreferredonly" means it forceably connects to the APs in order and does not bother
# to scan
# "forceany" does the same as forcepreferred + connects to any other available AP
# Default is "any"
#associate_order="any"
#associate_order_eth0="any" |
A+ _________________ http://www.jaqpot.net
http://www.fail2ban.org |
|
Back to top |
|
|
|