resalut a tous,
apres le bonding voici le probleme du routage et de iptables. en effet je ping l’interface bond0, mais quand je route de facon a avoir ca:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 bond0
default 192.168.1.180 0.0.0.0 UG 0 0 0 bond0
L’acces au net des clients est coupé net.
alors soit le pb est du au routage, mais c’est difficile de faire plus simple que ca… ou c’est iptables qui n’est pas configuré correctement… et là je pêche…
(NET)-----(routeur .180)----[-(bond0)—{iptables serveur}—(eth0)-]–(client http a mouha)
voici mes règles IPTABLES:
# Generated by iptables-save v1.3.3 on Thu Nov 30 16:55:17 2006
*nat
:PREROUTING ACCEPT [570:46757]
:POSTROUTING ACCEPT [223:17592]
:OUTPUT ACCEPT [232:18213]
-A POSTROUTING -o bond0 -j MASQUERADE
-A POSTROUTING -s 192.168.1.0/255.255.255.0 -o bond0 -j MASQUERADE
COMMIT
# Completed on Thu Nov 30 16:55:17 2006
# Generated by iptables-save v1.3.3 on Thu Nov 30 16:55:17 2006
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [48:4263]
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
-A INPUT -i bond0 -p udp -m udp --sport 53 --dport 1024:65535 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p icmp -m state --state RELATED -j ACCEPT
-A FORWARD -i eth0 -o bond0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i bond0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o bond0 -p udp -m udp --sport 1024:65535 --dport 53 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 22 -j ACCEPT
COMMIT
# Completed on Thu Nov 30 16:55:17 2006
# Generated by iptables-save v1.3.3 on Thu Nov 30 16:55:17 2006
*mangle
:PREROUTING ACCEPT [14197:3016870]
:INPUT ACCEPT [13926:2999210]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [15659:3489977]
:POSTROUTING ACCEPT [15730:3502475]
COMMIT
# Completed on Thu Nov 30 16:55:17 2006
est ce qu’il y a une âme charritable pour jetter un oeil à ce probleme avec moua^^ ?