From: paulr Date: Wed, 21 Sep 2011 16:31:19 +0000 (+1000) Subject: starting work on the interface X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=4b79d489f91d4bca8b1451daa3415b73545b08c2;p=CBFWR.git starting work on the interface --- diff --git a/bin/cbfwrd.php b/bin/cbfwrd.php index d2a0e83..7271d4a 100644 --- a/bin/cbfwrd.php +++ b/bin/cbfwrd.php @@ -52,6 +52,11 @@ while($cont) { function cbfwd_commandProcessor($command) { + $cmds = explode(" ", $command); + switch($cmds[0]) { + case "...": + break; + } } ?> \ No newline at end of file diff --git a/var/fw.conf b/var/fw.conf index c17b2d1..dbaa35e 100644 --- a/var/fw.conf +++ b/var/fw.conf @@ -2,43 +2,3 @@ hostname hostname domainname domain.name -login admin auth $4$QqcI5xWa$Ty8Vs3aAVBwPF0IpKO5hvgUi4wA$ - -zone name internet -zone name office -zone name tier1 -zone name tier2 -zone name tier3 - -interface dev eth0 name twatter # twatter is our outbound interface -interface dev eth1 name mixer - -interface dev twatter address4 10.172.192.10/24 -interface dev twatter address6 2003:12:12:12::1/64 -interface dev twatter zone internet - -interface dev mixer zone office # description -interface dev mixer mtu 1500 -interface dev mixer speed 1000 -interface dev mixer duplex full -interface dev mixer address4 1.2.22.3/24 - -interface lag name mybond with eth2 eth3 eth4 eth5 eth6 # description -interface vlan 10 name vlan10 from mybond # description - -interface bridge name mybridge with eth7 eth8 eth9 # description - -route4 default to 10.172.192.1 # description -route4 10.1.2.3/24 to 10.172.192.1 dev mixer # description -route4 10.192.10.0/24 to 10.172.193.1 # description - -route6 default to fe80::1 dev twatter # description -route6 2003:13:14:15::/64 to fe80::1 dev mixer # description - -dns server 192.168.1.1 -dns server 192.168.1.2 -dns server 192.168.1.3 -dns server 192.168.1.4 # main dns server - -ntp server 192.168.1.1 # main ntp server -ntp server 192.168.1.2 # secondary ntp server diff --git a/var/fw.conf.example b/var/fw.conf.example new file mode 100644 index 0000000..2302bad --- /dev/null +++ b/var/fw.conf.example @@ -0,0 +1,48 @@ +hostname hostname + +domainname domain.name + +login admin auth $4$QqcI5xWa$Ty8Vs3aAVBwPF0IpKO5hvgUi4wA$ + + +zone name internet +zone name office +zone name tier1 +zone name tier2 +zone name tier3 + +interface dev eth0 name twatter # twatter is our outbound interface +interface dev eth1 name mixer + +interface dev twatter address4 10.172.192.10/24 +interface dev twatter address6 2003:12:12:12::1/64 +interface dev twatter zone internet + +admin allowed on dev twatter from object/network/any via http https ssh + + +interface dev mixer zone office # description +interface dev mixer mtu 1500 +interface dev mixer speed 1000 +interface dev mixer duplex full +interface dev mixer address4 1.2.22.3/24 + +interface lag name mybond with eth2 eth3 eth4 eth5 eth6 # description +interface vlan 10 name vlan10 from mybond # description + +interface bridge name mybridge with eth7 eth8 eth9 # description + +route4 default to 10.172.192.1 # description +route4 10.1.2.3/24 to 10.172.192.1 dev mixer # description +route4 10.192.10.0/24 to 10.172.193.1 # description + +route6 default to fe80::1 dev twatter # description +route6 2003:13:14:15::/64 to fe80::1 dev mixer # description + +dns server 192.168.1.1 +dns server 192.168.1.2 +dns server 192.168.1.3 +dns server 192.168.1.4 # main dns server + +ntp server 192.168.1.1 # main ntp server +ntp server 192.168.1.2 # secondary ntp server