XEN Bridges with Debian
Ich verwende die folgende Netzwerkkonfiguration mit XEN:
- br0intern -> internal LAN (GREEN)
- br1extern -> WAN (RED)
- br2dmz -> DMZ (ORANGE)
- br3wlan -> WLAN (BLUE)
- br4off -> no network connection
File: /etc/network/interfaces.d/xenbridges
root@corsair:/etc/network# cat interfaces.d/xenbridges # interfaces(5) file used by ifup(8) and ifdown(8) # Included from /etc/network/interfaces # settings for all XEN bridges iface xenbridge inet manual pre-up brctl addbr $IFACE bridge_fd 0 bridge_stp off bridge_hello 1 bridge_maxwait 0 bridge_waitport 0 post-up ip link set $IFACE promisc off post-down brctl delbr $IFACE # eth0 -> intern, the internal lan iface br0intern inet static inherits xenbridge address 192.168.2.5/24 gateway 192.168.2.12 bridge_ports eth0 # eth1 -> extern, the internet/router iface br1extern inet manual inherits xenbridge # bridge_ports eth1 # none -> dmz, firewall-zone only iface br2dmz inet manual inherits xenbridge # wlan -> eth3 or none=firewsall zone iface br3wlan inet manual inherits xenbridge # bridge_ports eth3 # none -> offline zone iface br4off inet manual inherits xenbridge