Salut toto69.
Désolé de ne pas avoir suivi depuis l’autre jour, mais j’ai du bricoler mon pc… Enfin, je vois que tu à tout de même avancé…
Perso, je n’ai jamais réussi à faire fonctionner le point d’accès réseau en mode pont avec ma carte eth1… C’est pour cela que chez moi j’ai 2 plage réseaux.
Le partage de ficher et imprimante fonctionne d’un réseau à l’autre en passant par les adresses ip.
pour info, voila mes fichiers de conf :
/etc/hostapd/hostapd.conf :
[code]# netdevice name (without ‘ap’ postfix, i.e., wlan0 uses wlan0ap for
management frames); ath0 for madwifi
interface=wlan0
Driver interface type (hostap/wired/madwifi/prism54; default: hostap)
driver=nl80211
SSID to be used in IEEE 802.11 management frames
ssid=leo-25
IEEE 802.11 specifies two authentication algorithms. hostapd can be
configured to allow both of these or only one. Open system authentication
should be used with IEEE 802.1X.
Bit fields of allowed authentication algorithms:
bit 0 = Open System Authentication
bit 1 = Shared Key Authentication (requires WEP)
auth_algs=3
This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
and/or WPA2 (full IEEE 802.11i/RSN):
bit0 = WPA
bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
bit2 = WPA2
wpa=2
WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit
secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase
(8…63 characters) that will be converted to PSK. This conversion uses SSID
so the PSK changes when ASCII passphrase is used and the SSID is changed.
wpa_psk (dot11RSNAConfigPSKValue)
wpa_passphrase (dot11RSNAConfigPSKPassPhrase)
#wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
#wpa_passphrase=secret passphrase
wpa_passphrase=MaSuperCléeQueTuCasserasPas;)
Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both). The
entries are separated with a space.
(dot11RSNAConfigAuthenticationSuitesTable)
#wpa_key_mgmt=WPA-PSK WPA-EAP
wpa_key_mgmt=WPA-PSK
Set of accepted cipher suites (encryption algorithms) for pairwise keys
(unicast packets). This is a space separated list of algorithms:
CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
country_code=FR
mode wiffi
hw_mode=g
channel=11
Station MAC address -based authentication (driver=hostap or driver=nl80211)
0 = accept unless in deny list
1 = deny unless in accept list
2 = use external RADIUS server (accept/deny lists are searched first)
macaddr_acl=1
Accept/deny lists are read from separate files
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny[/code]
J’ai créer un fichier hostapd.accept ou j’ai renseigné mes différents équipement utilisant le wifi.
Dans dnsmasq j’ai mis :
dhcp-range=192.168.10.50,192.168.10.150,255.255.255.0,12h
dhcp-range=192.168.11.50,192.168.11.150,255.255.255.0,12h
mais toi tu utilise dhcp3-server… dans mon ancienne conf je l’utilisais, voila le contenu :
[code]
ddns-update-style none;
option domain-name “dom.lan”;
option domain-name-servers Serveur;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
A slightly different configuration for an internal subnet.
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.50 192.168.10.150;
option domain-name-servers 192.168.10.254;
option routers 192.168.10.254;
option broadcast-address 192.168.10.255;
default-lease-time 600;
max-lease-time 7200;
}
subnet 192.168.11.0 netmask 255.255.255.0 {
range 192.168.11.50 192.168.11.150;
option domain-name-servers 192.168.11.254;
option routers 192.168.11.254;
option broadcast-address 192.168.11.255;
default-lease-time 600;
max-lease-time 7200;
}[/code]
===> 2 plages car j’ai 2 réseaux dans ma conf…
Pour la partie partage de connexion et firewall, j’ai créer un scrip iptables qui ce lance au démarrage… Mais c’est mon usine à gaz à moi
… Si tu le veut je peut te le poster.
En espérant pouvoir t’aider…