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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Francois Le Corre
slapos.package
Commits
810b11fd
Commit
810b11fd
authored
Sep 21, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: do not touch the firewall
parent
875561ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
24 deletions
+2
-24
playbook/roles/re6stnet/files/ip6tables
playbook/roles/re6stnet/files/ip6tables
+0
-16
playbook/roles/re6stnet/tasks/main.yml
playbook/roles/re6stnet/tasks/main.yml
+2
-8
No files found.
playbook/roles/re6stnet/files/ip6tables
deleted
100644 → 0
View file @
875561ff
#!/bin/bash
if
[
-f
/sbin/ip6tables
]
;
then
if
[
0
-ne
`
ip6tables
-L
|
grep
-E
"(DROP|REJECT)"
|
wc
-l
`
]
;
then
ip6tables
-P
FORWARD ACCEPT
ip6tables
-I
OUTPUT 1
-p
udp
--dport
6696
-j
ACCEPT
ip6tables
-I
OUTPUT 2
-p
udp
--dport
326
-j
ACCEPT
ip6tables
-I
INPUT 1
-p
udp
--dport
6696
-j
ACCEPT
ip6tables
-I
INPUT 2
-p
udp
--dport
326
-j
ACCEPT
echo
"Updated firewall, openned ports 6696 and 326."
else
echo
"OK (firewall is disabled)"
fi
else
echo
"OK (no ip6tables found)"
fi
playbook/roles/re6stnet/tasks/main.yml
View file @
810b11fd
...
...
@@ -39,14 +39,8 @@
copy
:
src=centos_6_init_d dest=/etc/init.d/re6stnet mode=755
when
:
ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6' and recheck_re6stnet_conf.stat.exists == True
-
name
:
Add script for check ip6tables well configured
copy
:
src=ip6tables dest=/usr/bin/re6stnet-ip6tables-check mode=755
-
name
:
Run re6stnet-ip6tables-check
shell
:
/usr/bin/re6stnet-ip6tables-check
-
name
:
Include re6stnet-ip6tables-check at reboot on cron
cron
:
name="ip6tables at reboot" special_time=reboot job="sleep 20 && /usr/bin/re6stnet-ip6tables-check"
-
file
:
path=/usr/bin/re6stnet-ip6tables-check state=absent
-
cron
:
name="ip6tables at reboot" state=absent
-
include
:
tcp_nodelay.yml
...
...
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