#1 Le 05/05/2015, à 12:52
- WonknU
Désactivation de la connection automatique sur des réseaux ouverts
Bonjour,
J'ai déjà cherché et je n'ai pas trouvé comment désactiver la connexion automatique du wifi à des réseaux ouverts.
Pour bien préciser ce que je cherche à faire, je vais vous donner un cas concret:
J'arrive dans un café, j'allume mon ordinateur et là, il se connecte au plus fort Access Point ouvert sans me demander l'autorisation.
C'est cela que j'aimerai éviter pour des raisons de sécurités...
Sous Android, par ex, il m'envoie une notification me disant qu'il existe des réseaux ouverts et que je peux m'y connecter, mais il attend que je le fasse.
Merci pour votre aide
vins@vins-K53SC:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
vins@vins-K53SC:~$ lsusb
Bus 002 Device 010: ID 046d:c058 Logitech, Inc. M115 Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 001 Device 004: ID 058f:a014 Alcor Micro Corp. Asus Integrated Webcam
Bus 001 Device 006: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
vins@vins-K53SC:~$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520MX] (rev a1)
03:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
vins@vins-K53SC:~$ lspci -nn | grep -i net
03:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
vins@vins-K53SC:~$ lspci -k
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 1277
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 1682
Kernel driver in use: i915
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: mei_me
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1ac3
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: lpc_ich
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520MX] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 1762
Kernel driver in use: nvidia
03:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size Mini PCIe Card [AR9002WB-1NGCD]
Kernel driver in use: ath9k
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
Subsystem: ASUSTeK Computer Inc. Device 1059
Kernel driver in use: xhci_hcd
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1277
Kernel driver in use: r8169
vins@vins-K53SC:~$ sudo lshw -C network
PCI (sysfs)
*-network
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express)
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 74:2f:68:39:42:1c
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-51-generic firmware=N/A ip=192.168.2.2 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:ddc00000-ddc0ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: eth0
version: 06
serial: f4:6d:04:fd:57:99
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:47 ioport:9000(size=256) memory:d2104000-d2104fff memory:d2100000-d2103fff
vins@vins-K53SC:~$ lsmod
Module Size Used by
nls_iso8859_1 12617 0
usblp 18277 0
ctr 12905 2
ccm 17496 2
pci_stub 12550 1
vboxpci 22896 0
vboxnetadp 25636 0
vboxnetflt 27291 0
vboxdrv 299807 3 vboxnetadp,vboxnetflt,vboxpci
rfcomm 53664 8
bnep 18895 2
nvidia 10333941 0
asus_nb_wmi 16862 0
asus_wmi 23495 1 asus_nb_wmi
snd_hda_codec_hdmi 45440 1
mxm_wmi 12893 0
sparse_keymap 13708 1 asus_wmi
arc4 12536 2
snd_hda_codec_realtek 59259 1
uvcvideo 71309 0
ath9k 144602 0
intel_rapl 18301 0
videobuf2_vmalloc 13048 1 uvcvideo
ath9k_common 13359 1 ath9k
ath9k_hw 438205 2 ath9k_common,ath9k
videobuf2_memops 13170 1 videobuf2_vmalloc
ath 23922 3 ath9k_common,ath9k,ath9k_hw
x86_pkg_temp_thermal 13845 0
videobuf2_core 39258 1 uvcvideo
rts5139 269330 0
videodev 108503 2 uvcvideo,videobuf2_core
snd_hda_intel 42794 5
intel_powerclamp 14239 0
mac80211 546067 1 ath9k
snd_hda_codec 164067 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 13272 1 snd_hda_codec
snd_pcm 85501 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 14230 2 snd_pcm,snd_hda_intel
cfg80211 409394 3 ath,ath9k,mac80211
snd_seq_midi 13132 0
ath3k 13110 0
coretemp 13195 0
kvm_intel 132651 0
snd_seq_midi_event 14475 1 snd_seq_midi
i915 710025 3
snd_rawmidi 25135 1 snd_seq_midi
kvm 388310 1 kvm_intel
snd_seq 55383 2 snd_seq_midi_event,snd_seq_midi
crc32_pclmul 12967 0
btusb 27580 0
snd_seq_device 14137 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 28584 2 snd_pcm,snd_seq
joydev 17101 0
bluetooth 342208 23 bnep,ath3k,btusb,rfcomm
drm_kms_helper 48868 1 i915
serio_raw 13230 0
drm 244037 5 i915,drm_kms_helper,nvidia
snd 60939 20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
shpchp 32128 0
parport_pc 31981 0
soundcore 12600 1 snd
ppdev 17391 0
mei_me 18195 0
i2c_algo_bit 13197 1 i915
lp 13299 0
video 18903 2 i915,asus_wmi
mei 66737 1 mei_me
parport 40836 3 lp,ppdev,parport_pc
wmi 18673 2 mxm_wmi,asus_wmi
lpc_ich 16864 0
mac_hid 13037 0
hid_generic 12492 0
usbhid 47070 0
hid 87604 2 hid_generic,usbhid
usb_storage 48417 0
r8169 61562 0
psmouse 91357 0
ahci 25579 2
mii 13654 1 r8169
libahci 27214 1 ahci
vins@vins-K53SC:~$ iwconfig
wlan0 IEEE 802.11bgn ESSID:"belkin.410"
Mode:Managed Frequency:2.412 GHz Access Point: 08:86:3B:4C:94:10
Bit Rate=150 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:9 Invalid misc:1406 Missed beacon:0
lo no wireless extensions.
eth0 no wireless extensions.
vins@vins-K53SC:~$ ifconfig
eth0 Link encap:Ethernet HWaddr f4:6d:04:fd:57:99
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:74562 errors:0 dropped:0 overruns:0 frame:0
TX packets:74562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11024721 (11.0 MB) TX bytes:11024721 (11.0 MB)
wlan0 Link encap:Ethernet HWaddr 74:2f:68:39:42:1c
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::762f:68ff:fe39:421c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2788917 errors:0 dropped:0 overruns:0 frame:0
TX packets:1147800 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2970646376 (2.9 GB) TX bytes:130189916 (130.1 MB)
vins@vins-K53SC:~$ sudo iwlist scan
wlan0 Scan completed :
Cell 01 - Address: 08:86:3B:4C:94:10
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=61/70 Signal level=-49 dBm
Encryption key:on
ESSID:"belkin.410"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000104e484e26
Extra: Last beacon: 0ms ago
IE: Unknown: 000A62656C6B696E2E343130
IE: Unknown: 010882848B960C121824
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1A6E181EFF00000000000000000000000000000000000000000000
IE: Unknown: 3D1601050000000000000000000000000000000000000000
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DDA50050F204104A0001101044000102103B00010310470010775B6680BFDE11D38D2F08863B4C94101021001442656C6B696E20496E7465726E6174696F6E616C102300144E31353020576972656C65737320526F757465721024000746394B313030311042000E32303131333047423330363936321054000800060050F20400011011001B42656C6B696E204E31353020576972656C65737320526F75746572100800020086
IE: Unknown: DD1E00904C336E181EFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C3401050000000000000000000000000000000000000000
IE: Unknown: DD0600E04C020160
Cell 02 - Address: 64:D1:A3:2E:A7:78
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=55/70 Signal level=-55 dBm
Encryption key:on
ESSID:"Sitecom2ea778"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000003c45f0367
Extra: Last beacon: 0ms ago
IE: Unknown: 000D53697465636F6D326561373738
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1A6E181EFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B070000000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DDAA0050F204104A0001101044000102103B00010310470010630412531019200612280000000000001021001153697465636F6D204575726F70652042561023001353697465636F6D20576972656C6573732041501024000D45562D323030392D30322D30361042000F3132333435363738393031323334371054000800060050F20400011011001353697465636F6D20576972656C6573732041501008000200061049000600372A000120
IE: Unknown: DD1E00904C336E181EFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B070000000000000000000000000000000000000000
IE: Unknown: DD0600E04C020160
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
vins@vins-K53SC:~$ uname -r -m
3.13.0-51-generic i686
vins@vins-K53SC:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
vins@vins-K53SC:~$ nm-tool
NetworkManager Tool
State: connected (global)
- Device: 98:0D:2E:E6:9B:00 ----------------------------------------------------
Type: Bluetooth
Driver: bluez
State: disconnected
Default: no
Capabilities:
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: r8169
State: unavailable
Default: no
HW Address: F4:6D:04:FD:57:99
Capabilities:
Carrier Detect: yes
Wired Properties
Carrier: off
- Device: wlan0 [belkin.410] --------------------------------------------------
Type: 802.11 WiFi
Driver: ath9k
State: connected
Default: yes
HW Address: 74:2F:68:39:42:1C
Capabilities:
Speed: 150 Mb/s
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points (* = current AP)
Sitecom2ea778: Infra, 64:D1:A3:2E:A7:78, Freq 2462 MHz, Rate 54 Mb/s, Strength 62 WPA2
*belkin.410: Infra, 08:86:3B:4C:94:10, Freq 2412 MHz, Rate 54 Mb/s, Strength 84 WPA WPA2
NETGEAR71: Infra, C4:04:15:01:A1:B3, Freq 2437 MHz, Rate 54 Mb/s, Strength 14 WPA2
IPv4 Settings:
Address: 192.168.2.2
Prefix: 24 (255.255.255.0)
Gateway: 192.168.2.1
DNS: 192.168.2.1
vins@vins-K53SC:~$ sudo rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
Dernière modification par WonknU (Le 05/05/2015, à 23:03)
Hors ligne