bonjour,
j'ai vus pas mal de poste traitant ce sujet mais ma question est différente
voici mon script pour créer une interface tap
#!/bin/bash
chmod 0660 /dev/net/tun
chown root:vboxusers /dev/net/tun
# we setup a bridge:
brctl addbr br0
# we put eth0 in promiscuous mode (to capture all packets on the network) :
ifconfig eth0 0.0.0.0 promisc up
# we add eth0 in our bridge (it will be the source because in promiscious mode and physically plugged externally):
brctl addif br0 eth0
# just in case! :
#iptables -F FORWARD
# if we want the Host to access LAN and WAN, we nedd an IP Address:
# with DHCP:
dhclient br0
# by hand:
#ifconfig br0 192.168.1.3
# we setup a simple VPN on tap0 :
openvpn --mktun --dev tap0
openvpn --mktun --dev tap1
openvpn --mktun --dev tap2
openvpn --mktun --dev tap3
# we activate the tap0 interface:
ifconfig tap0 up
ifconfig tap1 up
ifconfig tap2 up
ifconfig tap3 up
# we add the tap0 in our bridge to be able to access the network:
brctl addif br0 tap0
brctl addif br0 tap1
brctl addif br0 tap2
brctl addif br0 tap3
mais le probleme avec ce script c'est que quand je le met en route j'ai access à internet sous fedora mais pas au réseaux local donc mon ordi plante car je suis
en ldap sous mon client
merci