summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2024-10-13 10:44:06 +0200
committeralexpdp7 <alex@corcoles.net>2024-10-13 10:45:18 +0200
commitda2407dab4712bd51d72aa2f907e3e30bbc19c3a (patch)
tree0022dfbc49b8f9455898e1e191cacd9db69a257f
parent36c977c4a64a6fbad21a3cf21655b208fa85ea14 (diff)
Handle VPN routing in dixie instead of router
This seems to solve sockets dropping after 30s. Also use a proper heredoc.
-rw-r--r--personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp12
1 files changed, 8 insertions, 4 deletions
diff --git a/personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp b/personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp
index 064af4d4..5fd9a3b1 100644
--- a/personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp
+++ b/personal_infra/puppet/site/maelcum.mad.int.pdp7.net.pp
@@ -1,10 +1,14 @@
node 'maelcum.mad.int.pdp7.net' {
class {'dns_dhcp':}
file {'/etc/dnsmasq.d/static.conf':
- content => 'host-record=router,router.mad.int.pdp7.net,10.34.10.1
-dhcp-host=d8:8c:79:1a:11:59,chromecast,10.34.10.3
-host-record=maelcum.mad.int.pdp7.net,maelcum,10.34.10.2
-',
+ content => @(EOT)
+ host-record=router,router.mad.int.pdp7.net,10.34.10.1
+ dhcp-host=d8:8c:79:1a:11:59,chromecast,10.34.10.3
+ host-record=maelcum.mad.int.pdp7.net,maelcum,10.34.10.2
+
+ dhcp-option=option:classless-static-route,192.168.76.0/24,10.34.10.2,10.43.43.0/24,10.34.10.2,10.17.19.0/24,10.34.10.2
+ | EOT
+ ,
notify => Service['dnsmasq'],
}
}