Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
280c9763
Commit
280c9763
authored
Feb 27, 2020
by
Rafael Monnerat
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Port for slapos master services changed
parent
addcd9c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
playbook/roles/standalone-shared/templates/setup-firewall-direct.j2
...oles/standalone-shared/templates/setup-firewall-direct.j2
+2
-2
No files found.
playbook/roles/standalone-shared/templates/setup-firewall-direct.j2
View file @
280c9763
...
...
@@ -18,6 +18,6 @@ if [ ! -z "$slap_ipv4" ] ; then
fi
iptables
-t
nat
-vnL
PREROUTING |
grep
dpt:5443 |
grep
-q
"
${
remote_access_comment
}
"
&&
iptables
-t
nat
-D
PREROUTING
`
iptables
-t
nat
-vnL
PREROUTING
--line-numbers
|
grep
dpt:5443 |
grep
"
${
remote_access_comment
}
"
|
cut
-d
' '
-f
1
`
iptables
-t
nat
-vnL
OUTPUT |
grep
dpt:5443 |
grep
-q
"
${
local_access_comment
}
"
&&
iptables
-t
nat
-D
OUTPUT
`
iptables
-t
nat
-vnL
OUTPUT
--line-numbers
|
grep
dpt:5443 |
grep
"
${
local_access_comment
}
"
|
cut
-d
' '
-f
1
`
iptables
-t
nat
-A
OUTPUT
-p
tcp
-d
{{
ansible_default_ipv4.address
}}
--dport
5443
-j
DNAT
--to
$slap_ipv4
:21
57
-m
comment
--comment
"
${
local_access_comment
}
"
iptables
-t
nat
-A
PREROUTING
-p
tcp
-d
{{
ansible_default_ipv4.address
}}
--dport
5443
-j
DNAT
--to-destination
$slap_ipv4
:21
57
-m
comment
--comment
"
${
remote_access_comment
}
"
iptables
-t
nat
-A
OUTPUT
-p
tcp
-d
{{
ansible_default_ipv4.address
}}
--dport
5443
-j
DNAT
--to
$slap_ipv4
:21
61
-m
comment
--comment
"
${
local_access_comment
}
"
iptables
-t
nat
-A
PREROUTING
-p
tcp
-d
{{
ansible_default_ipv4.address
}}
--dport
5443
-j
DNAT
--to-destination
$slap_ipv4
:21
61
-m
comment
--comment
"
${
remote_access_comment
}
"
fi
Thomas Gambier
🚴🏼
@tomo
mentioned in commit
00ca5f98
·
Sep 22, 2020
mentioned in commit
00ca5f98
mentioned in commit 00ca5f98f9dc5bdcea624514b748c6f77eecb0d1
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment