| 1 | auto lo
|
|---|
| 2 | iface lo inet loopback
|
|---|
| 3 |
|
|---|
| 4 | #auto eth0
|
|---|
| 5 | #iface eth0 inet dhcp
|
|---|
| 6 | #iface eth0 inet static
|
|---|
| 7 | # address 192.168.0.5
|
|---|
| 8 | # netmask 255.255.255.0
|
|---|
| 9 | # gateway 192.168.0.254
|
|---|
| 10 | # gateway 192.168.0.15
|
|---|
| 11 |
|
|---|
| 12 | #auto eth2
|
|---|
| 13 | #iface eth2 inet dhcp
|
|---|
| 14 | #iface eth2 inet static
|
|---|
| 15 | # address 192.168.120.5
|
|---|
| 16 | # netmask 255.255.255.0
|
|---|
| 17 | # up route add -net 192.168.12.0 netmask 255.255.255.0 gw 192.168.120.1
|
|---|
| 18 | # down route del -net 192.168.12.0 netmask 255.255.255.0 gw 192.168.120.1
|
|---|
| 19 |
|
|---|
| 20 | ## The primary network interface
|
|---|
| 21 | #auto br0
|
|---|
| 22 | #iface br0 inet static
|
|---|
| 23 | # address 192.168.0.251
|
|---|
| 24 | # netmask 255.255.255.0
|
|---|
| 25 | # gateway 192.168.0.254
|
|---|
| 26 | # bridge_ports eth0
|
|---|
| 27 | # post-up chgrp vboxusers /dev/net/tun
|
|---|
| 28 | #iface br0 inet manual
|
|---|
| 29 | # bridge_ports eth0
|
|---|
| 30 | # post-up chgrp vboxusers /dev/net/tun
|
|---|
| 31 |
|
|---|
| 32 | ## The secondary network interface
|
|---|
| 33 | #auto br2
|
|---|
| 34 | #iface br2 inet manual
|
|---|
| 35 | # bridge_ports eth2
|
|---|
| 36 | # post-up chgrp vboxusers /dev/net/tun
|
|---|
| 37 |
|
|---|
| 38 | #--------------------------
|
|---|
| 39 | # permanent host interfaces
|
|---|
| 40 | #--------------------------
|
|---|
| 41 |
|
|---|
| 42 | # LAN -------------------------------
|
|---|
| 43 | auto eth0 tap0 br0
|
|---|
| 44 |
|
|---|
| 45 | iface eth0 inet manual
|
|---|
| 46 |
|
|---|
| 47 | iface tap0 inet manual
|
|---|
| 48 | up ifconfig $IFACE 0.0.0.0 up
|
|---|
| 49 | down ifconfig $IFACE down
|
|---|
| 50 | tunctl_user mauro
|
|---|
| 51 |
|
|---|
| 52 | iface br0 inet static
|
|---|
| 53 | address 192.168.0.5
|
|---|
| 54 | netmask 255.255.255.0
|
|---|
| 55 | #gateway 192.168.0.254
|
|---|
| 56 | bridge_ports eth0 tap0
|
|---|
| 57 | bridge_maxwait 0
|
|---|
| 58 | #-----------------------------------
|
|---|
| 59 |
|
|---|
| 60 | # WAN ------------------------------
|
|---|
| 61 | auto eth2 tap2 tap4 br2
|
|---|
| 62 |
|
|---|
| 63 | # physical interface to Ydea net
|
|---|
| 64 | iface eth2 inet static
|
|---|
| 65 | address 192.168.120.5
|
|---|
| 66 | netmask 255.255.255.0
|
|---|
| 67 |
|
|---|
| 68 | iface tap2 inet manual
|
|---|
| 69 | up ifconfig $IFACE 0.0.0.0 up
|
|---|
| 70 | down ifconfig $IFACE down
|
|---|
| 71 | tunctl_user mauro
|
|---|
| 72 |
|
|---|
| 73 | iface tap4 inet manual
|
|---|
| 74 | up /root/Ydea/tap-up.sh
|
|---|
| 75 | down /root/Ydea/tap-down.sh
|
|---|
| 76 | tunctl_user mauro
|
|---|
| 77 |
|
|---|
| 78 | iface br2 inet manual
|
|---|
| 79 | # address 192.168.120.5
|
|---|
| 80 | # netmask 255.255.255.0
|
|---|
| 81 | bridge_ports tap4 tap2
|
|---|
| 82 | bridge_maxwait 0
|
|---|
| 83 | #-----------------------------------
|
|---|
| 84 |
|
|---|
| 85 | # DMZ ------------------------------
|
|---|
| 86 | auto tap1 tap3 br1
|
|---|
| 87 |
|
|---|
| 88 | iface tap1 inet manual
|
|---|
| 89 | up ifconfig $IFACE 0.0.0.0 up
|
|---|
| 90 | down ifconfig $IFACE down
|
|---|
| 91 | tunctl_user mauro
|
|---|
| 92 |
|
|---|
| 93 | iface tap3 inet manual
|
|---|
| 94 | up ifconfig $IFACE 0.0.0.0 up
|
|---|
| 95 | down ifconfig $IFACE down
|
|---|
| 96 | tunctl_user mauro
|
|---|
| 97 |
|
|---|
| 98 | iface br1 inet static
|
|---|
| 99 | address 192.168.77.5
|
|---|
| 100 | netmask 255.255.255.0
|
|---|
| 101 | bridge_ports tap1 tap3
|
|---|
| 102 | bridge_maxwait 0
|
|---|
| 103 | #-----------------------------------
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|