fickit: add DHCP server on admin link
This commit is contained in:
parent
ff5bd63eb0
commit
dd2f7b0bd5
1 changed files with 22 additions and 0 deletions
|
|
@ -228,6 +228,18 @@ services:
|
||||||
runtime:
|
runtime:
|
||||||
mkdir:
|
mkdir:
|
||||||
- /var/lib/fic/outofsync
|
- /var/lib/fic/outofsync
|
||||||
|
- name: dhcp-server
|
||||||
|
image: joebiellik/dhcpd
|
||||||
|
binds:
|
||||||
|
- /etc/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf:ro
|
||||||
|
capabilities:
|
||||||
|
- CAP_NET_BIND_SERVICE
|
||||||
|
- CAP_NET_RAW
|
||||||
|
- CAP_DAC_OVERRIDE
|
||||||
|
net: /run/netns/fic-admin
|
||||||
|
pid: new
|
||||||
|
ipc: new
|
||||||
|
uts: new
|
||||||
|
|
||||||
files:
|
files:
|
||||||
- path: root/synchro.sh
|
- path: root/synchro.sh
|
||||||
|
|
@ -248,6 +260,16 @@ files:
|
||||||
[mysqld]
|
[mysqld]
|
||||||
max_connections = 99999
|
max_connections = 99999
|
||||||
mode: "0444"
|
mode: "0444"
|
||||||
|
- path: etc/dhcp/dhcpd.conf
|
||||||
|
contents: |
|
||||||
|
default-lease-time 600;
|
||||||
|
max-lease-time 7200;
|
||||||
|
option subnet-mask 255.255.255.0;
|
||||||
|
option broadcast-address 192.168.23.255;
|
||||||
|
subnet 192.168.23.0 netmask 255.255.255.0 {
|
||||||
|
range 192.168.23.10 192.168.23.250;
|
||||||
|
}
|
||||||
|
mode: "0440"
|
||||||
- path: etc/iptables/rules.v6
|
- path: etc/iptables/rules.v6
|
||||||
contents: |
|
contents: |
|
||||||
*filter
|
*filter
|
||||||
|
|
|
||||||
Reference in a new issue