add dn42 routes
This commit is contained in:
parent
655cdbb427
commit
dd98b05dfa
@ -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
|
||||
|
6
hooks/dn42-routes
Executable file
6
hooks/dn42-routes
Executable 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
|
Loading…
Reference in New Issue
Block a user