Add the config for the nat_dhcp jail.

This commit is contained in:
Tom Alexander 2022-12-02 20:45:53 -05:00
parent 26354d1a86
commit aa6f63c141
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 38 additions and 5 deletions

View File

@ -0,0 +1 @@
os_flavor: "freebsd"

View File

@ -0,0 +1,12 @@
# option definitions common to all supported networks...
option domain-name "home.arpa";
# option domain-name-servers ns1.home.arpa;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
subnet 10.213.177.0 netmask 255.255.255.0 {
range 10.213.177.10 10.213.177.250;
option broadcast-address 10.213.177.255;
option routers 10.213.177.1;
}

View File

@ -0,0 +1,3 @@
ifconfig_host_link3="inet 10.213.177.254 netmask 255.255.255.0"
defaultrouter="10.213.177.1"
dhcpd_enable="YES"

View File

@ -0,0 +1,2 @@
search home.arpa
nameserver 10.213.177.1

View File

@ -1,5 +1,20 @@
# - name: Install packages
# package:
# name:
# - foo
# state: present
- name: Install packages
package:
name:
- dhcpd
state: present
- name: Install Configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
owner: root
group: wheel
loop:
- src: rc.conf
dest: /etc/rc.conf
- src: dhcpd.conf
dest: /usr/local/etc/dhcpd.conf
- src: resolv.conf
dest: /etc/resolv.conf