Skip to content
Snippets Groups Projects
Commit da8e5e22 authored by nimrod's avatar nimrod
Browse files

Updates for the router role for OpenBSD 6.9.

parent 26304abe
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,15 @@ ...@@ -41,6 +41,15 @@
- network - network
- pf - pf
- name: Generate the Unbound root anchor file
command:
cmd: /usr/sbin/unbound-anchor -a /var/unbound/db/root.key
creates: /var/unbound/db/root.key
tags:
- network
- dns
- unbound
- name: Set DNS resolving - name: Set DNS resolving
copy: copy:
content: |- content: |-
...@@ -58,19 +67,19 @@ ...@@ -58,19 +67,19 @@
- name: Configure the network interfaces - name: Configure the network interfaces
with_dict: with_dict:
em1: | em1: |
inet 192.168.3.1 255.255.255.0
description "Connected to internal LAN." description "Connected to internal LAN."
inet 192.168.3.1 255.255.255.0
group ingress group ingress
up up
em5: | em5: |
description "Connected to DSL modem for PPPoE connection to the ISP." description "Connected to DSL modem for PPPoE connection to the ISP."
up up
pppoe0: | pppoe0: |
description "The connection to the internet."
inet 62.219.131.121 255.255.255.255 NONE \ inet 62.219.131.121 255.255.255.255 NONE \
pppoedev em5 authproto pap \ pppoedev em5 authproto pap \
authname 'ns_nimadar@014' authkey '{{ bezeqint_password }}' up authname 'ns_nimadar@014' authkey '{{ bezeqint_password }}' up
dest 0.0.0.1 dest 0.0.0.1
description "The connection to the internet."
!/sbin/route add default -ifp pppoe0 62.219.131.121 !/sbin/route add default -ifp pppoe0 62.219.131.121
copy: copy:
content: '{{ item.value }}' content: '{{ item.value }}'
...@@ -439,7 +448,7 @@ ...@@ -439,7 +448,7 @@
special_time: daily special_time: daily
- job: >- - job: >-
{ {
/usr/sbin/unbound-anchor -a /var/unbound/etc/root.key /usr/sbin/unbound-anchor -a /var/unbound/db/root.key
|| ||
/etc/rc.d/unbound restart ; /etc/rc.d/unbound restart ;
} | logger } | logger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment