16 lines
269 B
Plaintext
16 lines
269 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if ! [ $EUID -eq 0 ]
|
||
|
then
|
||
|
echo "Must be root!" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd /etc
|
||
|
|
||
|
if ferm --interactive --timeout 10 ferm.conf
|
||
|
then
|
||
|
ferm -n -l --domain ip ferm.conf > /etc/iptables/iptables.rules
|
||
|
ferm -n -l --domain ip6 ferm.conf > /etc/iptables/ip6tables.rules
|
||
|
fi
|