forked from firewalla/firewalla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtips
102 lines (87 loc) · 3.31 KB
/
tips
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buid
36 sudo pip install --upgrade pip
37 ls -l ..
38 ls -la ..
39 ls
40 ./buildraw
41 sudo apt-get install setuptools
42 sudo pip install setuptools
bro
wget
wget https://www.bro.org/downloads/archive/bro-2.4.tar.gz
sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
usermod -a -G adm pi
usermod -a -G sudo pi
usermod -a -G netdev pi
+%sudo ALL=(ALL:ALL) NOPASSWD:ALL
Active settings:
cpu 912 mhz allowed, 1200 mhz possible, 4 cores active
dram 408 mhz
hdmi/gpu off
usb ports off
eth0 100Mb/s/Full, Link: yes
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
// may need to use this to enable firewalla if not running
sudo systemctl reenable firewalla
--- a/etc/brotab
+++ b/etc/brotab
@@ -1,5 +1,5 @@
-*/15 * * * * /home/pi/firewalla/etc/bro-cron2 >/dev/null 2>&1
-*/1 * * * * /home/pi/firewalla/etc/bro-mem-check >/dev/null 2>&1
-*/3 * * * * /home/pi/firewalla/etc/bro-bro-check >/dev/null 2>&1
-0 0 */5 * * sudo /sbin/shutdown -r +5
-0 0 1-31/2 * * /home/pi/firewalla/scripts/clean-log >/dev/null 2>&1
+#*/15 * * * * /home/pi/firewalla/etc/bro-cron2 >/dev/null 2>&1
+#*/1 * * * * /home/pi/firewalla/etc/bro-mem-check >/dev/null 2>&1
+#*/3 * * * * /home/pi/firewalla/etc/bro-bro-check >/dev/null 2>&1
+#0 0 */5 * * sudo /sbin/shutdown -r +5
+#0 0 1-31/2 * * /home/pi/firewalla/scripts/clean-log >/dev/null 2>&1
diff --git a/etc/firewalla.service b/etc/firewalla.service
index 5b13174..6eff1c2 100644
--- a/etc/firewalla.service
+++ b/etc/firewalla.service
@@ -1,6 +1,6 @@
[Unit]
Description=firewalla
-After=syslog.target network.target brofish.service
+After=brofish.service
Wants=brofish.service
[Service]
diff --git a/opi/tips b/opi/tips
index 215506b..fc5a3aa 100644
--- a/opi/tips
+++ b/opi/tips
@@ -37,3 +37,6 @@ wlan0 IEEE 802.11bgn ESSID:off/any
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
+
+// may need to use this to enable firewalla if not running
+sudo systemctl reenable firewalla
diff --git a/scripts/bro-run b/scripts/bro-run
index d329306..202ac65 100755
--- a/scripts/bro-run
+++ b/scripts/bro-run
@@ -32,6 +32,7 @@ sudo -u pi git pull
sudo cp etc/bro-cron /etc/cron.hourly/.
sudo cp /home/pi/firewalla/etc/brofish.service /etc/systemd/system/.
sudo cp /home/pi/firewalla/etc/firewalla.service /etc/systemd/system/.
+sudo systemctl reenable firewalla
sudo cp /home/pi/firewalla/etc/firemon.service /etc/systemd/system/.
sudo cp /home/pi/firewalla/etc/firekick.service /etc/systemd/system/.
sudo cp /home/pi/firewalla/etc/fireui.service /etc/systemd/system/.
@@ -41,9 +42,11 @@ sudo cp /home/pi/firewalla/etc/broctl.cfg /usr/local/bro/etc/broctl.cfg
sudo cp /home/pi/firewalla/etc/local.bro /usr/local/bro/share/bro/site/local.bro
sync
/usr/local/bro/bin/broctl deploy & echo $! > /firewalla/bro.pid
+logger "FIREWALLA: Deployed BRO using BROCTL"
cp /home/pi/firewalla/etc/sysctl.conf /etc/sysctl.conf
sudo -u pi crontab -r
sudo -u pi crontab /home/pi/firewalla/etc/brotab
sudo dhclient -6 eth0
sudo dhclient -4 eth0 &
+logger "FIREWALLA: BRO-RUN Finished"