From dd98b05dfa545ebc1a32df37a54c6359ee080165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 3 Jan 2015 17:58:08 +0100 Subject: [PATCH] add dn42 routes --- default.conf | 2 ++ hooks/dn42-routes | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 hooks/dn42-routes diff --git a/default.conf b/default.conf index 9116f72..3981f92 100644 --- a/default.conf +++ b/default.conf @@ -34,6 +34,8 @@ lxc.mount.entry = /data/pacman-pkg-cache var/cache/pacman/pkg none bind 0 0 lxc.mount.entry = /data/repo srv/repo none bind,ro,create=dir 0 0 lxc.mount.entry = /run/systemd/journal mnt/journal none bind,ro,create=dir 0 0 +lxc.hook.autodev = /etc/lxc/hooks/dn42-routes + lxc.hook.clone = /etc/lxc/hooks/setup-machine-id lxc.hook.clone = /etc/lxc/hooks/remove-journal lxc.hook.clone = /etc/lxc/hooks/cleanup-lxc-config diff --git a/hooks/dn42-routes b/hooks/dn42-routes new file mode 100755 index 0000000..14384d7 --- /dev/null +++ b/hooks/dn42-routes @@ -0,0 +1,6 @@ +#!/bin/bash + +/usr/bin/ip a 1>&2 +/usr/bin/ip route add 172.16.0.0/12 via 192.168.66.31 proto static +/usr/bin/ip route add 10.0.0.0/8 via 192.168.66.31 proto static +exit 0