Salut,
Oui c’est ça, mais les “bridge” que j’ai pu trouver et tester, je n’arrive pas à les faire fonctionner comme il faut.
Voici mon /etc/network/interfaces:
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan0
iface wlan0 inet static
address 172.24.10.1
netmask 255.255.255.0
network 172.24.10.0
broadcast 172.24.10.255
Et ma configuration Hostspot /etc/hostapd/hostapd.conf:
# This is the name of the WiFi interface we configured above
interface=wlan0
# Creat a bridge for connect Eth0 & Wlan0
#bridge=br0
# Use the nl80211 driver with the brcmfmac driver
driver=nl80211
# This is the name of the network
ssid=Pi3-32Gb-AP
# Use the 2.4GHz band
hw_mode=g
# Use channel 6
channel=6
# Enable 802.11n
ieee80211n=1
# Enable WMM
wmm_enabled=1
# Enable 40MHz channels with 20ns guard interval
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
# Accept all MAC addresses
macaddr_acl=0
Mon dns /etc/dnsmasq.conf:
interface=wlan0 # Use interface wlan0
listen-address=172.24.10.1 # Explicitly specify the address to listen on
bind-interfaces # Bind to the interface to make sure we aren't sending thi$
server=8.8.8.8 # Forward DNS requests to Google DNS
domain-needed # Don't forward short names
bogus-priv # Never forward addresses in the non-routed address spaces$
dhcp-range=172.24.10.50,172.24.10.150,12h # Assign IP addresses between 172.24.$
Et mon iptables /etc/iptables.ipv4.nat:
# Generated by iptables-save v1.4.21 on Wed Apr 12 13:48:21 2017
*filter
:INPUT ACCEPT [113:9507]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3:228]
-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wlan0 -o eth0 -j ACCEPT
COMMIT
# Completed on Wed Apr 12 13:48:21 2017
# Generated by iptables-save v1.4.21 on Wed Apr 12 13:48:21 2017
*nat
:PREROUTING ACCEPT [15:2105]
:INPUT ACCEPT [15:2105]
:OUTPUT ACCEPT [4:304]
:POSTROUTING ACCEPT [4:304]
-A POSTROUTING -o wlan0 -j MASQUERADE
COMMIT
# Completed on Wed Apr 12 13:48:21 2017
Voici tous ce que j’ai fait pour mon hotspot. Il n’est pas nécessaire de configurer autant de fichier pour un AP je pense mais j’ai suivie ce tuto: https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
Merci de ton aide