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
Rafael Monnerat
slapos.package
Commits
0ecb14bf
Commit
0ecb14bf
authored
Apr 04, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Include a script for open firewall.
parent
45b088b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
playbook/roles/re6stnet/files/ip6tables
playbook/roles/re6stnet/files/ip6tables
+16
-0
playbook/roles/re6stnet/tasks/main.yml
playbook/roles/re6stnet/tasks/main.yml
+7
-0
No files found.
playbook/roles/re6stnet/files/ip6tables
0 → 100644
View file @
0ecb14bf
#!/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 @
0ecb14bf
...
...
@@ -37,6 +37,13 @@
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
:
Create centos 6 init.d missing file
copy
:
src=ip6tables dest=/usr/bin/re6stnet-ip6tables-check mode=755
-
shell
:
/usr/bin/re6stnet-ip6tables-check
-
cron
:
name="ip6tables at reboot" special_time=reboot job="sleep 20 && /usr/bin/re6stnet-ip6tables-check"
-
name
:
Start re6st-node service
service
:
name=re6stnet state=started enabled=yes
when
:
recheck_re6stnet_conf.stat.exists == True
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