Lorsque tu dis que tu passes en mode bridge, modifies tu ton firewalling en conséquence ?
As tu activé le forwarding de paquet ?
Il n'y a, à priori, pas de raison que cela ne fonctionne pas, hormis si tu as un problème au niveau du filtrage ou du routage.
Aide toi de tcpdump pour déterminer d'ou vient l'erreur.
Sinon, si tu veux rester en mode pont, tu peux utiliser ebtables, l'équivalent de iptables pour le layer 2.
Il y a une règle de snat te permettant de changer ta mac adresse source:
snat
The snat target can only be used in the POSTROUTING chain of the nat
table. It specifies that the source MAC address has to be changed.
--to-source address
Changes the source MAC address to the specified address. The
flag --to-src is an alias for this option.
--snat-target target
Specifies the standard target. After doing the snat, the rule
still has to give a standard target so ebtables knows what to
do. The default target is ACCEPT. Making it CONTINUE could let
you use multiple target extensions on the same frame. Making it
DROP doesn't make sense, but you could do that too. RETURN is
also allowed. Note that using RETURN in a base chain is not
allowed.
--snat-arp
Also change the hardware source address inside the arp header if
the packet is an arp message and the hardware address length in
the arp header is 6 bytes.
# En mode non pont.
Posté par LaBienPensanceMaTuer . En réponse au message openvpn, vmware, ovh, l'enfer du décor. Évalué à 2.
Lorsque tu dis que tu passes en mode bridge, modifies tu ton firewalling en conséquence ?
As tu activé le forwarding de paquet ?
Il n'y a, à priori, pas de raison que cela ne fonctionne pas, hormis si tu as un problème au niveau du filtrage ou du routage.
Aide toi de tcpdump pour déterminer d'ou vient l'erreur.
Sinon, si tu veux rester en mode pont, tu peux utiliser ebtables, l'équivalent de iptables pour le layer 2.
Il y a une règle de snat te permettant de changer ta mac adresse source:
snat
The snat target can only be used in the POSTROUTING chain of the nat
table. It specifies that the source MAC address has to be changed.
--to-source address
Changes the source MAC address to the specified address. The
flag --to-src is an alias for this option.
--snat-target target
Specifies the standard target. After doing the snat, the rule
still has to give a standard target so ebtables knows what to
do. The default target is ACCEPT. Making it CONTINUE could let
you use multiple target extensions on the same frame. Making it
DROP doesn't make sense, but you could do that too. RETURN is
also allowed. Note that using RETURN in a base chain is not
allowed.
--snat-arp
Also change the hardware source address inside the arp header if
the packet is an arp message and the hardware address length in
the arp header is 6 bytes.