1 |
constanze 13/10/26 18:38:21 |
2 |
|
3 |
Added: shorewall6.systemd shorewall6.initd |
4 |
shorewall6.confd shorewallrc |
5 |
Log: |
6 |
Version bump; Thanks to Thomas D. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-firewall/shorewall6/files/4.5.21.2/shorewall6.systemd |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.systemd?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.systemd?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: shorewall6.systemd |
17 |
=================================================================== |
18 |
# |
19 |
# The Shoreline Firewall 6 (Shorewall6) Packet Filtering Firewall - V4.5 |
20 |
# |
21 |
[Unit] |
22 |
Description=Shorewall IPv6 firewall |
23 |
Documentation=man:shorewall6(8) http://www.shorewall.net/Documentation_Index.html |
24 |
After=network.target |
25 |
|
26 |
[Service] |
27 |
Type=oneshot |
28 |
RemainAfterExit=yes |
29 |
EnvironmentFile=/etc/conf.d/shorewall6 |
30 |
ExecStart=/sbin/shorewall6 $OPTIONS start $STARTOPTIONS |
31 |
ExecStop=/sbin/shorewall6 $OPTIONS stop $STOPOPTIONS |
32 |
|
33 |
[Install] |
34 |
WantedBy=multi-user.target |
35 |
|
36 |
|
37 |
|
38 |
1.1 net-firewall/shorewall6/files/4.5.21.2/shorewall6.initd |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.initd?rev=1.1&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.initd?rev=1.1&content-type=text/plain |
42 |
|
43 |
Index: shorewall6.initd |
44 |
=================================================================== |
45 |
#!/sbin/runscript |
46 |
# Copyright 1999-2013 Gentoo Foundation |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.initd,v 1.1 2013/10/26 18:38:21 constanze Exp $ |
49 |
|
50 |
description='The Shoreline Firewall 6, more commonly known as "Shorewall6", is' |
51 |
description="${description} a high-level tool for configuring Netfilter." |
52 |
|
53 |
extra_commands="check clear" |
54 |
extra_started_commands="refresh reset" |
55 |
|
56 |
description_check="Checks if the configuration will compile or not." |
57 |
|
58 |
description_clear="Clear will remove all rules and chains installed by" |
59 |
description_clear="${description_clear} Shorewall6. The firewall is then" |
60 |
description_clear="${description_clear} wide open and unprotected." |
61 |
|
62 |
description_refresh="The mangle table will be refreshed along with the" |
63 |
description_refresh="${description_refresh} blacklist chain (if any)." |
64 |
|
65 |
description_reset="All the packet and byte counters in the firewall are reset." |
66 |
|
67 |
depend() { |
68 |
need net |
69 |
provide firewall |
70 |
after ulogd |
71 |
} |
72 |
|
73 |
status() { |
74 |
local _retval |
75 |
/sbin/shorewall6 status 1>/dev/null |
76 |
_retval=$? |
77 |
if [ ${_retval} = '0' ]; then |
78 |
einfo 'status: started' |
79 |
mark_service_started "${SVCNAME}" |
80 |
return 0 |
81 |
else |
82 |
einfo 'status: stopped' |
83 |
mark_service_stopped "${SVCNAME}" |
84 |
return 3 |
85 |
fi |
86 |
} |
87 |
|
88 |
start() { |
89 |
ebegin "Starting shorewall6" |
90 |
/sbin/shorewall6 ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null |
91 |
eend $? |
92 |
} |
93 |
|
94 |
stop() { |
95 |
ebegin "Stopping shorewall6" |
96 |
/sbin/shorewall6 ${OPTIONS} stop ${STOPOPTIONS} 1>/dev/null |
97 |
eend $? |
98 |
} |
99 |
|
100 |
restart() { |
101 |
# shorewall comes with its own control script that includes a |
102 |
# restart function, so refrain from calling svc_stop/svc_start |
103 |
# here. Note that this comment is required to fix bug 55576; |
104 |
# runscript.sh greps this script... (09 Jul 2004 agriffis) |
105 |
|
106 |
ebegin "Restarting shorewall6" |
107 |
/sbin/shorewall6 status 1>/dev/null |
108 |
if [ $? != 0 ] ; then |
109 |
svc_start |
110 |
else |
111 |
/sbin/shorewall6 ${OPTIONS} restart ${RESTARTOPTIONS} 1>/dev/null |
112 |
fi |
113 |
eend $? |
114 |
} |
115 |
|
116 |
clear() { |
117 |
# clear will remove all the rules and bring the system to an unfirewalled |
118 |
# state. (21 Nov 2004 eldad) |
119 |
|
120 |
ebegin "Clearing all shorewall rules and setting policy to ACCEPT" |
121 |
/sbin/shorewall6 ${OPTIONS} clear 1>/dev/null |
122 |
eend $? |
123 |
} |
124 |
|
125 |
reset() { |
126 |
# reset the packet and byte counters in the firewall |
127 |
|
128 |
ebegin "Resetting the packet and byte counters in shorewall6" |
129 |
/sbin/shorewall6 ${OPTIONS} reset 1>/dev/null |
130 |
eend $? |
131 |
} |
132 |
|
133 |
refresh() { |
134 |
# refresh the rules involving the broadcast addresses of firewall |
135 |
# interfaces, the black list, traffic control rules and |
136 |
# ECN control rules |
137 |
|
138 |
ebegin "Refreshing shorewall6 rules" |
139 |
/sbin/shorewall6 ${OPTIONS} refresh 1>/dev/null |
140 |
eend $? |
141 |
} |
142 |
|
143 |
check() { |
144 |
# perform cursory validation of the zones, interfaces, hosts, rules |
145 |
# and policy files. CAUTION: does not parse and validate the generated |
146 |
# iptables commands. |
147 |
|
148 |
ebegin "Checking shorewall6 configuration" |
149 |
/sbin/shorewall6 ${OPTIONS} check 1>/dev/null |
150 |
eend $? |
151 |
} |
152 |
|
153 |
|
154 |
|
155 |
1.1 net-firewall/shorewall6/files/4.5.21.2/shorewall6.confd |
156 |
|
157 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.confd?rev=1.1&view=markup |
158 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewall6.confd?rev=1.1&content-type=text/plain |
159 |
|
160 |
Index: shorewall6.confd |
161 |
=================================================================== |
162 |
# Global start/restart/stop options |
163 |
# |
164 |
OPTIONS="" |
165 |
|
166 |
# Start options |
167 |
# |
168 |
STARTOPTIONS="" |
169 |
|
170 |
# Stop options |
171 |
# |
172 |
STOPOPTIONS="" |
173 |
|
174 |
# Restart options |
175 |
# |
176 |
RESTARTOPTIONS="" |
177 |
|
178 |
|
179 |
|
180 |
1.1 net-firewall/shorewall6/files/4.5.21.2/shorewallrc |
181 |
|
182 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewallrc?rev=1.1&view=markup |
183 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/4.5.21.2/shorewallrc?rev=1.1&content-type=text/plain |
184 |
|
185 |
Index: shorewallrc |
186 |
=================================================================== |
187 |
# |
188 |
# Gentoo Shorewall 4.5 rc file |
189 |
# |
190 |
BUILD= #Default is to detect the build system |
191 |
HOST=gentoo #Gentoo GNU Linux |
192 |
PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. |
193 |
SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. |
194 |
LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. |
195 |
PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory |
196 |
CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed |
197 |
SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed |
198 |
MANDIR=${PREFIX}/share/man #Directory where manpages are installed. |
199 |
INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. |
200 |
INITFILE=${PRODUCT} #Name of the product's installed SysV init script |
201 |
INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script |
202 |
ANNOTATED= #If non-zero, annotated configuration files are installed |
203 |
SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) |
204 |
SERVICEFILE=gentoo.service #Name of the distributed file to be installed as systemd service file |
205 |
SYSCONFFILE=default.gentoo #Name of the distributed file to be installed in $SYSCONFDIR |
206 |
SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed |
207 |
SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR |
208 |
VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. |
209 |
VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. |