Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszk_host
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
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
KSZK
Ansible
Roles
kszk_host
Commits
c4b984ae
Commit
c4b984ae
authored
3 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
IPv6 addresses != IPv4 addresses
parent
6498bfce
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
templates/etc/iptables/rules.v6
+3
-3
3 additions, 3 deletions
templates/etc/iptables/rules.v6
with
3 additions
and
3 deletions
templates/etc/iptables/rules.v6
+
3
−
3
View file @
c4b984ae
...
@@ -20,12 +20,12 @@
...
@@ -20,12 +20,12 @@
-A INPUT -p tcp -m tcp --dport {{ ssh.port }} -m conntrack --ctstate NEW -m limit --limit 10 -j ACCEPT
-A INPUT -p tcp -m tcp --dport {{ ssh.port }} -m conntrack --ctstate NEW -m limit --limit 10 -j ACCEPT
{% if iptables_forward_custom is defined %}
{% if ip
6
tables_forward_custom is defined %}
##############################################################################
##############################################################################
### FORWARD
### FORWARD
##############################################################################
##############################################################################
{{ iptables_forward_custom }}
{{ ip
6
tables_forward_custom }}
{% endif %}
{% endif %}
##############################################################################
##############################################################################
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
################################################################################
################################################################################
### SERVICES
### SERVICES
################################################################################
################################################################################
{% for entry in iptables_input %}
{% for entry in ip
6
tables_input %}
-A INPUT -p {{ entry.protocol|default("tcp", true) }}{% if entry.source is defined %} --src {{ entry.source }}{% endif %} --dport {{ entry.port }} {% if entry.protocol == "tcp"%} -m conntrack --ctstate NEW {% endif %} {% if entry.comment is defined %} -m comment --comment "{{ entry.comment }}" {% endif %} -j ACCEPT
-A INPUT -p {{ entry.protocol|default("tcp", true) }}{% if entry.source is defined %} --src {{ entry.source }}{% endif %} --dport {{ entry.port }} {% if entry.protocol == "tcp"%} -m conntrack --ctstate NEW {% endif %} {% if entry.comment is defined %} -m comment --comment "{{ entry.comment }}" {% endif %} -j ACCEPT
{% endfor %}
{% endfor %}
...
...
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