Last change
on this file since 3869 was 3795, checked in by Bruno Cornec, 6 months ago |
Untag v3.3.0 never really published in the past - will start from here
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3655] | 1 | ---
|
---|
| 2 | - name: Install shorewall
|
---|
[3795] | 3 | urpmi: name=shorewall state=installed no_recommends=yes
|
---|
[3655] | 4 |
|
---|
| 5 | # Generate configuration
|
---|
| 6 | - name: Generate zones
|
---|
| 7 | template: src=zones.j2 dest=/etc/shorewall/zones owner=root group=root mode=0600 backup=yes
|
---|
| 8 |
|
---|
| 9 | - name: Generate interfaces
|
---|
| 10 | template: src=interfaces.j2 dest=/etc/shorewall/interfaces owner=root group=root mode=0600 backup=yes
|
---|
| 11 |
|
---|
| 12 | - name: Generate policy
|
---|
| 13 | template: src=policy.j2 dest=/etc/shorewall/policy owner=root group=root mode=0600 backup=yes
|
---|
| 14 |
|
---|
[3694] | 15 | - name: Generate masq
|
---|
| 16 | template: src=masq.j2 dest=/etc/shorewall/masq owner=root group=root mode=0600 backup=yes
|
---|
| 17 |
|
---|
[3655] | 18 | - name: Generate rules
|
---|
| 19 | template: src=rules.j2 dest=/etc/shorewall/rules owner=root group=root mode=0600 backup=yes
|
---|
| 20 |
|
---|
| 21 | - name: Generate shorewall.conf
|
---|
| 22 | template: src=shorewall.conf.j2 dest=/etc/shorewall/shorewall.conf owner=root group=root mode=0600 backup=yes
|
---|
| 23 |
|
---|
| 24 | # Generate service configuration
|
---|
| 25 | - name: Generate Shorewall service conf
|
---|
| 26 | template: src=shorewall.j2 dest=/etc/sysconfig/shorewall owner=root group=root mode=0600 backup=yes
|
---|
| 27 |
|
---|
| 28 | - name: Restart Shorewall service
|
---|
| 29 | service: name=shorewall state=restarted
|
---|
| 30 |
|
---|
| 31 | - name: Check that Shorewall is running and enabled
|
---|
| 32 | service: name=shorewall state=started enabled=yes
|
---|
Note:
See
TracBrowser
for help on using the repository browser.