diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/dnsmasq.conf | 12 | ||||
-rw-r--r-- | conf/interfaces.d_eth0 | 19 | ||||
-rw-r--r-- | conf/nbd-server | 11 |
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 @@ | |||
1 | interface=br0 | 1 | interface=br0 |
2 | domain=localdomain | 2 | domain=localdomain |
3 | dhcp-range=192.168.10.10,192.168.10.253,255.255.255.0,1h | 3 | dhcp-range=192.168.10.10,192.168.10.253,255.255.255.0,1h |
4 | dhcp-boot=pxelinux.0,pxeserver,192.168.10.1 | ||
5 | pxe-service=x86PC, "Samizdat", pxelinux | ||
6 | enable-tftp | 4 | enable-tftp |
5 | |||
6 | dhcp-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 | |||
9 | pxe-service=x86PC, "Samizdat", pxelinux | ||
10 | dhcp-boot=pxelinux.0 | ||
7 | tftp-root=/usr/local/lib/samizdat-rhizome/isolinux | 11 | tftp-root=/usr/local/lib/samizdat-rhizome/isolinux |
12 | |||
13 | # dhcp-boot=/boot/grub/i386-pc/core.0 | ||
14 | # tftp-root=/srv/tftp | ||
15 | |||
8 | tftp-unique-root | 16 | tftp-unique-root |
9 | dhcp-script=/usr/local/bin/dnsmasq-dhcp-script.sh | 17 | dhcp-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 @@ | |||
6 | auto br0 eth0 | 6 | auto br0 eth0 |
7 | 7 | ||
8 | iface br0 inet static | 8 | iface 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 | |||
28 | iface eth0 inet manual | 19 | iface 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. | ||