Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maze
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
Rafael László
Maze
Commits
4623cf26
Commit
4623cf26
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Fix errors with nat and ssh
parent
3aef12c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/router/tasks/main.yaml
+1
-0
1 addition, 0 deletions
ansible/router/tasks/main.yaml
ansible/router/templates/etc/nftables.conf.j2
+3
-1
3 additions, 1 deletion
ansible/router/templates/etc/nftables.conf.j2
with
4 additions
and
1 deletion
ansible/router/tasks/main.yaml
+
1
−
0
View file @
4623cf26
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
name
:
sshd
name
:
sshd
state
:
restarted
state
:
restarted
enabled
:
yes
enabled
:
yes
daemon_reload
:
yes
-
name
:
Setup firewall
-
name
:
Setup firewall
include_tasks
:
firewall.yaml
include_tasks
:
firewall.yaml
This diff is collapsed.
Click to expand it.
ansible/router/templates/etc/nftables.conf.j2
+
3
−
1
View file @
4623cf26
...
@@ -29,10 +29,12 @@ table inet filter {
...
@@ -29,10 +29,12 @@ table inet filter {
type filter hook forward priority 0;
type filter hook forward priority 0;
oif $wan accept
oif $wan accept
iif $wan drop
ct status dnat accept
ct status dnat accept
iif $wan ct state related, established accept
iif $wan ct state related, established accept
# Drop everything else
iif $wan drop
}
}
# Allow all packets sent by the firewall
# Allow all packets sent by the firewall
...
...
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