La Fibre
Télécom => Logiciels et systèmes d'exploitation => Linux (usage serveur) => Discussion démarrée par: jewome62 le 08 décembre 2013 à 20:50:32
-
Bonjour,
J'ai un petit soucis urgent à régler.
Mon LAN n'a pas accès au WLAN et inversement
Voici ma config réseau et iptables
ifconfig
jewome62@homeServer:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 90:2b:34:5d:f0:bd
inet addr:109.24.221.197 Bcast:109.24.221.255 Mask:255.255.255.0
inet6 addr: fe80::922b:34ff:fe5d:f0bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1394182808 errors:0 dropped:0 overruns:0 frame:0
TX packets:95492127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1877180714999 (1.8 TB) TX bytes:28459957027 (28.4 GB)
eth1 Link encap:Ethernet HWaddr 90:2b:34:5d:f0:bf
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69965407 errors:0 dropped:353 overruns:0 frame:0
TX packets:1332506551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25206583122 (25.2 GB) TX bytes:1800145875948 (1.8 TB)
lan Link encap:Ethernet HWaddr 84:a6:c8:08:33:88
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::922b:34ff:fe5d:f0bf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89341573 errors:0 dropped:0 overruns:0 frame:0
TX packets:1390991542 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28914112484 (28.9 GB) TX bytes:1877876961114 (1.8 TB)
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:1051476 errors:0 dropped:0 overruns:0 frame:0
TX packets:1051476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91560691 (91.5 MB) TX bytes:91560691 (91.5 MB)
mon.wlan0 Link encap:UNSPEC HWaddr 84-A6-C8-08-33-88-3A-30-00-00-00-00-00-00-00 -00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:145228824 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:32360186904 (32.3 GB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 84:a6:c8:08:33:88
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28155659 errors:0 dropped:0 overruns:0 frame:0
TX packets:57299253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5749663097 (5.7 GB) TX bytes:76398158524 (76.3 GB)
interface
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp
############### Reseau Local ########################
#Reseau Filiaire
auto eth1
iface eth1 inet manual
#Reseau Wifi
auto wlan0
iface wlan0 inet manual
#Reseau local global
auto lan
iface lan inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
post-up iptables-restore < /etc/iptables.rules
post-up hostapd /etc/hostapd/hostapd.conf
post-up upnpd eth0 lan
pre-down iptables-save > /etc/iptables.rules
pre-down killall upnpd
pre-down killall hostapd
bridge-ports wlan0 eth1
règle iptables
# Generated by iptables-save v1.4.12 on Fri Aug 16 16:30:26 2013
*mangle
:PREROUTING ACCEPT [2894030:4352692056]
:INPUT ACCEPT [2074235:2793895319]
:FORWARD ACCEPT [2864013:4330513879]
:OUTPUT ACCEPT [14223:2632508]
:POSTROUTING ACCEPT [2872462:4330610175]
COMMIT
# Completed on Fri Aug 16 16:30:26 2013
# Generated by iptables-save v1.4.12 on Fri Aug 16 16:30:26 2013
*nat
:PREROUTING ACCEPT [25101:23966209]
:INPUT ACCEPT [1904:142703]
:OUTPUT ACCEPT [128:8756]
:POSTROUTING ACCEPT [53:14076]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri Aug 16 16:30:26 2013
# Generated by iptables-save v1.4.12 on Fri Aug 16 16:30:26 2013
*filter
:INPUT DROP [30247:41013616]
:FORWARD DROP [60:21637]
:OUTPUT DROP [0:0]
:fail2ban-ssh - [0:0]
-A INPUT -p tcp -m multiport --dports 22 -j fail2ban-ssh
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lan -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -p igmp -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A FORWARD -i lan -o eth0 -j ACCEPT
-A FORWARD -i eth0 -o lan -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o eth0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o lan -j ACCEPT
-A fail2ban-ssh -j RETURN
COMMIT
# Completed on Fri Aug 16 16:30:26 2013
Que manque t-il ?
il me semblait qu'un bridge fessais comme un commutateur,
-
bonjour,
première question
quand tu connecte un client en wifi il obtien bien une adresse ip en 192.168.0.x ? et arrive a accèder a internet en sortant par le eth0 ?
jerem
-
Oui, il a bien une adresse en 192.168.0.x et arrive à avoir internet.
Quand je suis sur le wifi, j'accède à internet, au routeur et aux périphériques WLAN
Quand je suis sur le câble, j'accède à internet, au routeur et aux périphériques LAN
Même routeur, Même bloc IP
bref, un ping entre mon pc fixe et pc portable est impossible, alors qu'il ping bien tout les deux le routeur.
-
re,
je penser a un soucis de masquerading mais sans certitude ...
jerem
à essayer en tout cas
-
bref, un ping entre mon pc fixe et pc portable est impossible, alors qu'il ping bien tout les deux le routeur.
Il manque peut-être l'activation du routage ?
https://www.google.fr/#q=ip_forward (https://www.google.fr/#q=ip_forward)
-
Euh si je ne l'aurais pas activé, je n'aurais pas internet sur le réseau ...
-
Au temps pour moi, j'étais effectivement un peu à côté du sujet ;D
-
c'est quoi comme OS et comme matériel ? t'as installé le code de bridging ? (sudo apt install bridge-utils).
-
c'est quoi comme OS et comme matériel ? t'as installé le code de bridging ? (sudo apt install bridge-utils).
Ubuntu 13.10 sur plateforme intel, bridge-utils est déjà installé
-
t'as construit le bridge avec brctl ou fichiers de conf?
"brctl show" ca affiche quoi?
-
fichier de conf dans le interfaces
jewome62@homeServer:~$ brctl show
bridge name bridge id STP enabled interfaces
lan 8000.84a6c8083388 no eth1
wlan0
-
ta carte wifi (wlan0) est configurée comment ?
t'as un AP quelque part ?
il me semble qu'une interface wifi managed (client d'un AP) dans un bridge ca fait pas bon ménage.
sinon essaies de construire le bridge a la main avec brctl plutot qu'avec les fichiers de conf.
ou carrèment utilisé brctl dans le fichier de conf style:
pre-up ip link set wlan0 down
pre-up ip link set eth1 down
pre-up brctl addbr lan
pre-up brctl addif lan eth1 wlan0
pre-up ip addr flush dev wlan0
pre-up ip addr flush dev eth1
sinon faut vider le cache arp du pc fixe, activer une capture réseau et tenter un ping pour voir ce que ca donne au niveau arp.
J'ai jamais bridgé sur ubuntu avec du wifi donc j'ai pas plus d'idées la.
-
AP, c'est une carte mini pci express dans le pc avec hostapd
Euh je mets ça ou ???
#Reseau Filiaire
auto eth1
iface eth1 inet manual
#Reseau Wifi
auto wlan0
iface wlan0 inet manual
#Reseau local global
auto lan
iface lan inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
post-up iptables-restore < /etc/iptables.rules
post-up hostapd /etc/hostapd/hostapd.conf
post-up upnpd eth0 lan
pre-down iptables-save > /etc/iptables.rules
pre-down killall upnpd
pre-down killall hostapd
bridge-ports wlan0 eth1
-
tu vires la derniere ligne deja (bridge-ports wlan0 eth1).
et met ces lignes entre le "broadcast 192.168.0.255" et le 1er "post-up.."
mais t'as pas répondu pour le point d'acces wifi ? si il y'a un point d'acces Wifi qui sert entre le routeur et le Pc portable ca ne marchera probablement pas.
Il faut configurer la carte wifi (wlan0) en mode "hotspot".
-
Voici les quelques première lignes de hostapd.conf
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames); ath0 for madwifi
interface=wlan0
# In case of madwifi, atheros, and nl80211 driver interfaces, an additional
# configuration parameter, bridge, may be used to notify hostapd if the
# interface is included in a bridge. This parameter is not used with Host AP
# driver. If the bridge parameter is not set, the drivers will automatically
# figure out the bridge interface (assuming sysfs is enabled and mounted to
# /sys) and this parameter may not be needed.
#
# For nl80211, this parameter can be used to request the AP interface to be
# added to the bridge automatically (brctl may refuse to do this before hostapd
# has been started to change the interface mode). If needed, the bridge
# interface is also created.
bridge=lan
# Driver interface type (hostap/wired/madwifi/test/none/nl80211/bsd);
# default: hostap). nl80211 is used with all Linux mac80211 drivers.
# Use driver=none if building hostapd as a standalone RADIUS server that does
# not control any wireless/wired driver.
driver=nl80211
-
est-ce un ubuntu server ou desktop ? est-ce que le 'network manager' tourne ( "sudo service network-manager status" ca affiche quoi?) ?
"sudo iw list" ca affiche quoi ? (notamment la section "Supported interface modes").
"sudo iwconfig" ca affiche quoi ?
ca se met dans le bridge via le hostapd.conf aussi donc y'a une double configuration redondante la...
elle sort d'ou ta config a l'origine ? fait maison ou copier de quelque part ?
Au pire essais d'enlever wlan0 du bridge (donc "bridge-ports eth1" seulement ou "pre-up brctl addif lan eth1" si version brctl).
le service hotspot (hostapd) va mettre lui meme l'interface wlan0 dans le bridge quand il va demarrer vu que c'est dans hostapd.conf
-
Ok,
C'est une config perso avec un mélange de tout ce que j'ai trouvé.
C'est un ubuntu server donc pas de network manager
jewome62@homeServer:~$ sudo iwconfig
[sudo] password for jewome62:
mon.wlan0 IEEE 802.11bgn Mode:Monitor Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
eth0 no wireless extensions.
eth1 no wireless extensions.
lan no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
jewome62@homeServer:~$ sudo iw list
Wiphy phy0
Band 1:
Capabilities: 0x1072
HT20/HT40
Static SM Power Save
RX Greenfield
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT TX/RX MCS rate indexes supported: 0-15, 32
Frequencies:
* 2412 MHz [1] (16.0 dBm)
* 2417 MHz [2] (16.0 dBm)
* 2422 MHz [3] (16.0 dBm)
* 2427 MHz [4] (16.0 dBm)
* 2432 MHz [5] (16.0 dBm)
* 2437 MHz [6] (16.0 dBm)
* 2442 MHz [7] (16.0 dBm)
* 2447 MHz [8] (16.0 dBm)
* 2452 MHz [9] (16.0 dBm)
* 2457 MHz [10] (16.0 dBm)
* 2462 MHz [11] (16.0 dBm)
* 2467 MHz [12] (16.0 dBm) (passive scanning, no IBSS)
* 2472 MHz [13] (16.0 dBm) (passive scanning, no IBSS)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
max # scan SSIDs: 20
max scan IEs length: 195 bytes
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 1, #{ AP } <= 1,
total <= 2, #channels <= 1, STA/AP BI must match
* #{ managed } <= 2,
total <= 2, #channels <= 1
Supported commands:
* new_interface
* set_interface
* new_key
* new_beacon
* new_station
* new_mpath
* set_mesh_params
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* action
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* Unknown command (84)
* Unknown command (87)
* Unknown command (85)
* Unknown command (89)
* Unknown command (92)
* testmode
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* Unknown mode (10): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* Unknown mode (10): 0x40 0xd0
Device supports RSN-IBSS.
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 20 patterns of 16-128 bytes
* can do GTK rekeying
* wake up on GTK rekey failure
* wake up on EAP identity request
* wake up on rfkill release
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
-
mouais curieux. je vois pas ou ca coince.
On peut recheck les trucs de base au cas ou:
Le routing est-il bien activé sur le routeur ? ("sudo su" puis "cat /proc/sys/net/ipv4/ip_forward" devrait afficher 1).
La commande "route" affiche quoi ?
Regardes si avec le firewall coupé ca marche ou pas: "sudo ufw disable" pour le couper, "sudo ufw enable" pour le remettre (attention a pas le laisser couper)
"sudo iptables -L -n -v" ca affiche quoi quand le firewall marche.
J'espere que c'est pas un probleme juste entre les 2 PCs (genre ils sont protégés et repondent pas au ping ou a ce que tu cherches à faire entre eux). Par acquis de conscience verif ca quand meme avant de poursuivre ...as tu essayé entre 2 trucs en wifi? ou le PC fixe et un autre appareil en wifi ?
sinon:
faudrait regarder aux niveaux des adresses MAC. faire du trafic depuis le PC fixe. faire du trafic depuis le PC portable. tenter un ping entre eux 2.
puis sur le routeur:
sudo brctl showmacs lan
et "arp -a" sur chaque poste. Comparer les @ IP et les @ MAC.
-
euh attrend hein :D
ou les route sont bien activé, et j'arrive à pinguer les machine quand les deux machine sont en lan ou wlan
Je n'ai pas encore appliqué tes solution, je n'ai fais que donner reponse a tes question. je testerai demain soir quand le réseau sera "libre" :D
-
Je me remet sur le sujet, j'en ai marre de ne pas pouvoir imprimer sur l'imprimante wifi avec mon pc connecté en ethernet
jewome62@homeServer:~$ sudo iptables -L -n -v
Chain INPUT (policy DROP 461K packets, 625M bytes)
pkts bytes target prot opt in out source destination
30442 6684K fail2ban-ssh tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 22
501K 1156M ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
291M 39G ACCEPT all -- eth0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
111M 14G ACCEPT all -- lan * 0.0.0.0/0 0.0.0.0/0
371 20036 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 state NEW,ESTABLISHED
45842 1467K ACCEPT 2 -- * * 0.0.0.0/0 0.0.0.0/0
3054 277K ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
1188 63312 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
210K 11M ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6881
148K 9754K ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:6881
47 2796 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4040
1570 79543 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4141
Chain FORWARD (policy DROP 592 packets, 282K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 10.54.159.71 tcp dpt:63819
0 0 ACCEPT udp -- * * 0.0.0.0/0 10.54.159.71 udp dpt:63819
3 411 ACCEPT udp -- * * 0.0.0.0/0 192.168.0.43 udp dpt:3074
43 5891 ACCEPT udp -- * * 0.0.0.0/0 192.168.0.52 udp dpt:50768
6675K 2352M ACCEPT all -- lan eth0 0.0.0.0/0 0.0.0.0/0
128M 182G ACCEPT all -- eth0 lan 0.0.0.0/0 0.0.0.0/0
jewome62@homeServer:~$ sudo brctl showmacs lan
port no mac addr is local? ageing timer
1 00:25:9c:6d:bc:7d no 0.76
1 08:9e:01:b4:1e:81 no 0.01
2 30:10:e4:1d:b0:42 no 2.06
1 30:7e:cb:f6:f9:f0 no 0.37
2 5c:f8:a1:df:b6:9a no 0.05
1 64:66:b3:ce:11:00 no 6.06
1 7c:2f:80:04:58:98 no 0.87
2 84:a6:c8:08:33:88 yes 0.00
1 90:2b:34:5d:f0:bf yes 0.00
2 c4:17:fe:94:1b:be no 9.02
1 e0:a1:d7:c6:0e:10 no 1.39
(http://imageshack.com/a/img23/8458/agl8.png)
Je ne peux pas faire de arp sur une imprimante Wifi
Mais globalement, le problème existe aussi avec mon iPhone, je joins l'imprimante mais pas le pc fixe
PC Fixe : 192.168.0.50 08:9e:01:b4:1e:81
Iphone : 192.168.0.31 31:10:e4:1d:b0:42
Imprimante : 192.168.0.24 c4:17:fe:94:1b:be
je vais faire une capture réseau du pc en le pinguant depuis l'iphone
edit :
la seul ligne intéressante c'est
(http://imageshack.com/a/img10/9596/tgdy.png)
Un wireshark depuis le routeur : filtre sur le pc 192.168.0.50 : http://home.jerome-desjardins.fr/lan3.pcapng (http://home.jerome-desjardins.fr/lan3.pcapng)
-
Apparemment, ce problème peut etre réglé avec ebtables
mais il faut inscrire une règle par client wifi ?
https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC
Une solution ?
comment font les autres ??
-
Tu veux "bridger" un STA avec une carte Ethernet?
-
STA ???
-
Un client Wifi, quoi. Le contraire de AP.
-
non, il y a un bridge entre la connexion internet, le lan et le wlan (avec hostapd)
-
C'est quoi, le WLAN? Un AP?
-
salut,
de ce que j'ai compris, c'est une carte wifi mis en mode ap avec hostapd qui sert a créer un point d'accès
selon moi tu ne devrai pas dire a hostapd qu'il est en bridge, mais faire juste le bridge avec brctl je pense que le soucis est par ici
jerem
-
re,
je ne suis pas jewome mais ça hostapd le fais lui même
-
Je pense que brctl devrait marcher dans ce cas.
-
hostapd fais le brige tout seul, dans la config hostapd j'ai la ligne
bridge=lan
et dans mon network je ne déclare lan en interface en ajoutant dans le bridge eth1
auto lan
iface lan inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
post-up iptables-restore < /etc/iptables.rules
post-up hostapd /etc/hostapd/hostapd.conf
post-up upnpd eth0 lan
pre-down iptables-save > /etc/iptables.rules
pre-down killall upnpd
pre-down killall hostapd
bridge-ports eth1
et le bridge se fait bien
$ sudo brctl show
bridge name bridge id STP enabled interfaces
lan 8000.84a6c8083388 no eth1
wlan0
mais il n'y a pas de communication entre les interfaces dans le bridge
-
salut,
moi je supposerai de faire l'inverse essaye au moins, ça coute rien
supprimer la ligne bridge=lan de la configuration d'ostapd p puis de le rajouter dans le bridge après avoir lancer le daemon hostapd juste histoire, de voir si ça change quelque chose.
je pense que je vais finir par tester avec mon propre matériel ... si ça ne fonctionne pas mieu chez toi
jerem
-
salut,
moi je supposerai de faire l'inverse essaye au moins, ça coute rien
supprimer la ligne bridge=lan de la configuration d'ostapd p puis de le rajouter dans le bridge après avoir lancer le daemon hostapd juste histoire, de voir si ça change quelque chose.
je pense que je vais finir par tester avec mon propre matériel ... si ça ne fonctionne pas mieu chez toi
jerem
Oui, oui c'est prévu !!
C'est que je ne suis pas seul normalement à la maison, donc il faut que sa reste Up, mais ce week-end c'est tranquille
Je test
-
Alors j'ai killer hostapd
j'ai commenté la ligne du bridge dans le fichier de conf hostapd
j'ai redémarre hostapd
=> pas d'internet, il arrive pas à avoir d'ip (normal)
root@homeServer:/home/jewome62# brctl addif lan wlan0
root@homeServer:/home/jewome62# brctl show
bridge name bridge id STP enabled interfaces
lan 8000.84a6c8083388 no eth1
wlan0
j'ai internet, je n'ai toujours pas de communication entre wlan et lan
-
up ?