Procédure installation Bridge transparent

Un article de DocAstairs.

[modifier] Installer un bridge transparent sous Debian + IPTABLES + SQUID

Installer une debian de base

installer bridge-utils

configurer /etc/network/interfaces

#The loopback network interface
auto lo
iface lo inet loopback
#The bridge network interface
auto br0
iface br0 inet dhcp
bridge_ports eth0 eth1
bridge_maxwait 0
up dhclient -r


[modifier] Installation de Squid et Squidguard

voir http://irp.nain-t.net/doku.php/220squid:start


[modifier] Quelques règles de firewall

iptables -A FORWARD -m physdev --physdev-in eth1 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

iptables -A FORWARD -m physdev --physdev-in eth1 -p UDP --DPORT 53 -j ACCEPT

iptables -A FORWARD -m physdev --physdev-in eth1 -p icmp -j ACCEPT

iptables -t nat -A PREROUTING -m physdev --physdev-in eth1 -s 10.1.0.0/16 -p tcp -m tcp --dport 80 -j REDIRECT --to-port 3128