aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep/configs/etc
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-25 19:11:01 +0200
committerficus <ficus@robocracy.org>2012-09-25 19:11:01 +0200
commit846ee52dc6b9239173565a81d4fb756e6f26285f (patch)
tree7ea0dca2960ef48768d67e6b0e0adeb6cc6e4675 /packages/torouter-prep/configs/etc
parentcc9809734fdbd6ea8601005d34b4efaf5b37baa4 (diff)
downloadtorouter-846ee52dc6b9239173565a81d4fb756e6f26285f.tar.gz
torouter-846ee52dc6b9239173565a81d4fb756e6f26285f.zip
various tweeks
- remove torouter-tui dependancy from torouter-prep - split out dnsmasq config to per-interface files - clean up configs directory, moving misc temp files to /tmp
Diffstat (limited to 'packages/torouter-prep/configs/etc')
-rw-r--r--packages/torouter-prep/configs/etc/dhcp/dhcpd.conf32
-rw-r--r--packages/torouter-prep/configs/etc/dnsmasq.conf7
-rw-r--r--packages/torouter-prep/configs/etc/dnsmasq.d/lan2
-rw-r--r--packages/torouter-prep/configs/etc/dnsmasq.d/wifi2
-rw-r--r--packages/torouter-prep/configs/etc/udhcpd.conf26
5 files changed, 7 insertions, 62 deletions
diff --git a/packages/torouter-prep/configs/etc/dhcp/dhcpd.conf b/packages/torouter-prep/configs/etc/dhcp/dhcpd.conf
deleted file mode 100644
index ec502c6..0000000
--- a/packages/torouter-prep/configs/etc/dhcp/dhcpd.conf
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# FreedomBox ISC dhcpd configuration
-#
-#
-
-# The ddns-updates-style parameter controls whether or not the server will
-# attempt to do a DNS update when a lease is confirmed. We default to the
-# behavior of the version 2 packages ('none', since DHCP v2 didn't
-# have support for DDNS.)
-ddns-update-style none;
-
-# option definitions common to all supported networks...
-option domain-name "free.dom";
-option domain-name-servers ns1.free.dom, ns2.free.dom;
-
-default-lease-time 600;
-max-lease-time 7200;
-
-# If this DHCP server is the official DHCP server for the local
-# network, the authoritative directive should be uncommented.
-authoritative;
-
-# Use this to send dhcp log messages to a different log file (you also
-# have to hack syslog.conf to complete the redirection).
-log-facility local7;
-
-# basic subnet configuration for the 'downstream' wired network
-
-subnet 192.168.1.0 netmask 255.255.255.0 {
- range 192.168.1.10 192.168.1.100;
- option routers 192.168.1.1;
-}
diff --git a/packages/torouter-prep/configs/etc/dnsmasq.conf b/packages/torouter-prep/configs/etc/dnsmasq.conf
index 2711486..8e02834 100644
--- a/packages/torouter-prep/configs/etc/dnsmasq.conf
+++ b/packages/torouter-prep/configs/etc/dnsmasq.conf
@@ -94,7 +94,6 @@ except-interface=lo
# configure it as shown above, and then use the following line to
# disable DHCP on it.
#no-dhcp-interface=
-#no-dns-interface=uap0
# On systems which support it, dnsmasq binds the wildcard address,
# even when it is listening on only some interfaces. It then discards
@@ -137,8 +136,8 @@ bind-interfaces
# repeat this for each network on which you want to supply DHCP
# service.
#dhcp-range=192.168.0.50,192.168.0.150,12h
-dhcp-range=10.23.42.10,10.23.42.254,255.255.255.0,12h
-dhcp-range=172.16.23.10,172.16.23.254,255.255.255.0,12h
+
+# see also /etc/dnsmasq.d/lan and /etc/dnsmasq.d/wifi
# This is an example of a DHCP range where the netmask is given. This
# is needed for networks we reach the dnsmasq DHCP server via a relay
@@ -554,4 +553,4 @@ dhcp-range=172.16.23.10,172.16.23.254,255.255.255.0,12h
# Include a another lot of configuration options.
#conf-file=/etc/dnsmasq.more.conf
-#conf-dir=/etc/dnsmasq.d
+conf-dir=/etc/dnsmasq.d
diff --git a/packages/torouter-prep/configs/etc/dnsmasq.d/lan b/packages/torouter-prep/configs/etc/dnsmasq.d/lan
new file mode 100644
index 0000000..1430733
--- /dev/null
+++ b/packages/torouter-prep/configs/etc/dnsmasq.d/lan
@@ -0,0 +1,2 @@
+
+dhcp-range=10.23.42.10,10.23.42.254,255.255.255.0,12h
diff --git a/packages/torouter-prep/configs/etc/dnsmasq.d/wifi b/packages/torouter-prep/configs/etc/dnsmasq.d/wifi
new file mode 100644
index 0000000..d1bdb72
--- /dev/null
+++ b/packages/torouter-prep/configs/etc/dnsmasq.d/wifi
@@ -0,0 +1,2 @@
+
+dhcp-range=172.16.23.10,172.16.23.254,255.255.255.0,12h
diff --git a/packages/torouter-prep/configs/etc/udhcpd.conf b/packages/torouter-prep/configs/etc/udhcpd.conf
deleted file mode 100644
index 04160aa..0000000
--- a/packages/torouter-prep/configs/etc/udhcpd.conf
+++ /dev/null
@@ -1,26 +0,0 @@
-# Sample udhcpd configuration file (/etc/udhcpd.conf)
-
-# The start and end of the IP lease block
-start 172.16.23.10
-end 172.16.23.254
-
-# The interface that udhcpd will use
-interface uap0
-
-# The maximim number of leases (includes addressesd reserved
-# by OFFER's, DECLINE's, and ARP conficts
-max_leases 244
-
-# If remaining is true (default), udhcpd will store the time
-# remaining for each lease in the udhcpd leases file. This is
-# for embedded systems that cannot keep time between reboots.
-# If you set remaining to no, the absolute time that the lease
-# expires at will be stored in the dhcpd.leases file.
-remaining no
-
-# Use Tor's DNSPort and route via Tor
-opt dns 172.16.23.1
-option subnet 255.255.255.0
-opt router 172.16.23.1
-option domain local
-option lease 864000 # 10 days of seconds