aboutsummaryrefslogtreecommitdiff
path: root/rpb-debian-iot
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo.salveti@linaro.org>2016-12-09 11:04:39 +0000
committerRicardo Salveti <ricardo.salveti@linaro.org>2016-12-09 11:05:32 +0000
commitf1e5f60cd4d73c557f428791e7dde1e0adcce565 (patch)
tree199b7a5e45cf8ffe1848268e5fd8dc1102a713ee /rpb-debian-iot
parent9bd09396f2605ca724a6f297d05c361deb4cc86e (diff)
rpb-debian-iot: update configs to use tinyproxy by default
Change-Id: I66c46530d8fa07d4c58cb560376ea7bd52394886 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'rpb-debian-iot')
-rw-r--r--rpb-debian-iot/conf/bt012
-rw-r--r--rpb-debian-iot/conf/gateway.conf10
-rw-r--r--rpb-debian-iot/conf/ndppd.conf18
-rw-r--r--rpb-debian-iot/conf/radvd.conf27
-rw-r--r--rpb-debian-iot/conf/tinyproxy.conf20
5 files changed, 59 insertions, 28 deletions
diff --git a/rpb-debian-iot/conf/bt0 b/rpb-debian-iot/conf/bt0
index eeb0362a..8fb58cc3 100644
--- a/rpb-debian-iot/conf/bt0
+++ b/rpb-debian-iot/conf/bt0
@@ -1,5 +1,7 @@
-#auto bt0
-#allow-hotplug bt0
-#iface bt0 inet6 static
-# address 2001:db8::4
-# netmask 68
+auto bt0
+allow-hotplug bt0
+iface bt0 inet6 static
+ address fc00:0:0:0:d4e7::1
+ netmask 80
+ up service tinyproxy start
+ down service tinyproxy stop
diff --git a/rpb-debian-iot/conf/gateway.conf b/rpb-debian-iot/conf/gateway.conf
index a9cbad1b..c65ab724 100644
--- a/rpb-debian-iot/conf/gateway.conf
+++ b/rpb-debian-iot/conf/gateway.conf
@@ -1,3 +1,7 @@
-#net.ipv6.conf.wlan0.accept_ra=2
-#net.ipv6.conf.all.forwarding=1
-#net.ipv6.conf.all.proxy_ndp=1
+# don't ignore RA on wlan0/eth0
+net.ipv6.conf.wlan0.accept_ra=2
+net.ipv6.conf.eth0.accept_ra=2
+# enable ip forwarding
+net.ipv6.conf.all.forwarding=1
+# enable IPv6 neighbour proxy, in case the 6lowpan needs to share the same host IPv6 subnet
+net.ipv6.conf.all.proxy_ndp=1
diff --git a/rpb-debian-iot/conf/ndppd.conf b/rpb-debian-iot/conf/ndppd.conf
index 1e760d93..e3d67991 100644
--- a/rpb-debian-iot/conf/ndppd.conf
+++ b/rpb-debian-iot/conf/ndppd.conf
@@ -1,9 +1,9 @@
-#route-ttl 30000
-#proxy wlan0 {
-# router yes
-# timeout 500
-# ttl 30000
-# rule 2001:db8::/68 {
-# static
-# }
-#}
+route-ttl 30000
+proxy wlan0 {
+ router yes
+ timeout 500
+ ttl 30000
+ rule fc00:0:0:0:d4e7::/80 {
+ static
+ }
+}
diff --git a/rpb-debian-iot/conf/radvd.conf b/rpb-debian-iot/conf/radvd.conf
index 9a4219d6..7a4e818a 100644
--- a/rpb-debian-iot/conf/radvd.conf
+++ b/rpb-debian-iot/conf/radvd.conf
@@ -1,11 +1,16 @@
-#interface bt0
-#{
-# IgnoreIfMissing on;
-# AdvSendAdvert on;
-# prefix 2001:db8::/64
-# {
-# AdvOnLink off;
-# AdvAutonomous on;
-# AdvRouterAddr on;
-# };
-#};
+interface bt0
+{
+ IgnoreIfMissing on;
+ AdvSendAdvert on;
+ MinRtrAdvInterval 300;
+ MaxRtrAdvInterval 600;
+ AdvDefaultLifetime 7200;
+ prefix fc00::/64
+ {
+ AdvOnLink off;
+ AdvValidLifetime 36000;
+ AdvPreferredLifetime 36000;
+ AdvAutonomous on;
+ AdvRouterAddr on;
+ };
+};
diff --git a/rpb-debian-iot/conf/tinyproxy.conf b/rpb-debian-iot/conf/tinyproxy.conf
new file mode 100644
index 00000000..9c01c0e1
--- /dev/null
+++ b/rpb-debian-iot/conf/tinyproxy.conf
@@ -0,0 +1,20 @@
+User nobody
+Group nogroup
+Port 8888
+Listen fc00::d4e7:0:0:1
+Timeout 600
+# TODO: Make this return a 30 second JSON wait response
+DefaultErrorFile "/usr/share/tinyproxy/default.html"
+StatFile "/usr/share/tinyproxy/stats.html"
+Logfile "/var/log/tinyproxy/tinyproxy.log"
+LogLevel Info
+PidFile "/var/run/tinyproxy/tinyproxy.pid"
+no upstream "gitci.com"
+MaxClients 100
+StartServers 10
+Allow fc00::/7
+Allow fe80::/64
+Allow ::1
+ViaProxyName "tinyproxy"
+ReversePath "/gitci/" "http://gitci.com:8080/"
+ReverseOnly Yes