Hi all. I have a problem with the firewall.local start - stop function.
i will try to use the good-old script PeerGuardian wiki.ipfire.org - PeerGuardian Script
But my config from the past is lost - equal my docu from there:
https://wiki.ipfire.org/optimization/scripts/pg/peergaurdian_cli__forum.ipfire.org_all.pdf
can you tell me, what values i need for blacklist start & stop function in firewall.local? this is actually my code, but it is not right.
#!/bin/sh
# Used for private firewall rules
IPT="/sbin/iptables"
BLACKLIST="/etc/sysconfig/blacklist"
# See how we were called.
case "$1" in
start)
## add your 'start' rules here
for BLACKLIST in `cat $BLACKLIST`; do
$IPT -A CUSTOMINPUT -s $BLACKLIST -j DROP
;;
stop)
## add your 'stop' rules here
;;
reload)
$0 stop
$0 start
## add your 'reload' rules here
;;
*)
echo "Usage: $0 {start|stop|reload}"
;;
esac
this messages i see it after reload firewall-rules:
/etc/sysconfig/firewall.local reload
/etc/sysconfig/firewall.local: line 11: syntax error near unexpected token `;;'
/etc/sysconfig/firewall.local: line 11: ` ;;'
Cheers, 5p9