add dn42 routes

This commit is contained in:
Jörg Thalheim 2015-01-03 17:58:08 +01:00
parent 655cdbb427
commit dd98b05dfa
2 changed files with 8 additions and 0 deletions

View File

@ -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 = /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.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/setup-machine-id
lxc.hook.clone = /etc/lxc/hooks/remove-journal lxc.hook.clone = /etc/lxc/hooks/remove-journal
lxc.hook.clone = /etc/lxc/hooks/cleanup-lxc-config lxc.hook.clone = /etc/lxc/hooks/cleanup-lxc-config

6
hooks/dn42-routes Executable file
View File

@ -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