Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
homelab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
homelab
Commits
da8e5e22
Commit
da8e5e22
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Updates for the router role for OpenBSD 6.9.
parent
26304abe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/router/tasks/main.yaml
+12
-3
12 additions, 3 deletions
roles/router/tasks/main.yaml
with
12 additions
and
3 deletions
roles/router/tasks/main.yaml
+
12
−
3
View file @
da8e5e22
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment