summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-05 00:25:15 -0400
committerAndrew Cady <d@jerkface.net>2019-10-05 00:25:15 -0400
commitb7b293df5955caac46034fb7c8ad30896b3bd0e3 (patch)
tree4cb23a87523725eff6449630f8ba828db6a29abc /conf
parent9f521a0c62f2a716a163d1fc0d0af39761945740 (diff)
update conf/ dir
Diffstat (limited to 'conf')
-rw-r--r--conf/dnsmasq.conf12
-rw-r--r--conf/interfaces.d_eth019
-rw-r--r--conf/nbd-server11
3 files changed, 26 insertions, 16 deletions
diff --git a/conf/dnsmasq.conf b/conf/dnsmasq.conf
index 2b523ec..7200efc 100644
--- a/conf/dnsmasq.conf
+++ b/conf/dnsmasq.conf
@@ -1,9 +1,17 @@
1interface=br0 1interface=br0
2domain=localdomain 2domain=localdomain
3dhcp-range=192.168.10.10,192.168.10.253,255.255.255.0,1h 3dhcp-range=192.168.10.10,192.168.10.253,255.255.255.0,1h
4dhcp-boot=pxelinux.0,pxeserver,192.168.10.1
5pxe-service=x86PC, "Samizdat", pxelinux
6enable-tftp 4enable-tftp
5
6dhcp-host=52:54:00:12:34:56,samizdoot-vm,192.168.10.82
7#dhcp-host=f0:de:f1:5a:ac:e8,samizdoot-irl,192.168.10.82
8
9pxe-service=x86PC, "Samizdat", pxelinux
10dhcp-boot=pxelinux.0
7tftp-root=/usr/local/lib/samizdat-rhizome/isolinux 11tftp-root=/usr/local/lib/samizdat-rhizome/isolinux
12
13# dhcp-boot=/boot/grub/i386-pc/core.0
14# tftp-root=/srv/tftp
15
8tftp-unique-root 16tftp-unique-root
9dhcp-script=/usr/local/bin/dnsmasq-dhcp-script.sh 17dhcp-script=/usr/local/bin/dnsmasq-dhcp-script.sh
diff --git a/conf/interfaces.d_eth0 b/conf/interfaces.d_eth0
index 5ec8666..3dbf9b4 100644
--- a/conf/interfaces.d_eth0
+++ b/conf/interfaces.d_eth0
@@ -6,23 +6,14 @@
6auto br0 eth0 6auto br0 eth0
7 7
8iface br0 inet static 8iface br0 inet static
9# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo # disable ipv6 auto-address
10 pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true
11 pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true
9 address 192.168.10.1 12 address 192.168.10.1
10 netmask 255.255.255.0 13 netmask 255.255.255.0
11## These are useful for VMs: 14 bridge_ports eth0 tap0 tap1 tap2 tap3 tap4
12# pre-up for n in 0 1 2 3 4; do tunctl -t tap$n; done; true 15 bridge_maxwait 10
13# pre-down for n in 0 1 2 3 4; do tunctl -d tap$n; done; true
14# bridge_ports eth0 tap0 tap1 tap2 tap3 tap4
15# bridge_maxwait 10
16
17## Enable "internet connection sharing"
18 up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE 16 up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
19 up sysctl -w net.ipv4.ip_forward=1 17 up sysctl -w net.ipv4.ip_forward=1
20 18
21## Disable ipv6 auto-address.
22## This is needed sometimes, if ipv6 breaks ipv4.
23# pre-up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra_pinfo
24
25# NB. 'ipsec reload' does not work very well
26 post-up ipsec restart
27
28iface eth0 inet manual 19iface eth0 inet manual
diff --git a/conf/nbd-server b/conf/nbd-server
new file mode 100644
index 0000000..a106b7d
--- /dev/null
+++ b/conf/nbd-server
@@ -0,0 +1,11 @@
1[generic]
2# If you want to run everything as root rather than the nbd user, you
3# may either say "root" in the two following lines, or remove them
4# altogether. Do not remove the [generic] section, however.
5 user = nbd
6 group = nbd
7 includedir = /etc/nbd-server/conf.d
8 allowlist = true
9
10# What follows are export definitions. You may create as much of them as
11# you want, but the section header has to be unique.