Reply To: Heinzelmännchen Problem

Home Page Forums Network Management ZeroShell Heinzelmännchen Problem Reply To: Heinzelmännchen Problem

#50213

Pit
Member

Oops! something went wrong.

The patch may be not compatible:

root@zeroshell scripts> patch -p0 < zeroshell-3.patch
patching file failoverd
patching file fw_initrules
Hunk #2 FAILED at 23.
1 out of 2 hunks FAILED — saving rejects to file fw_initrules.rej
patching file fw_makerule
patching file fw_start
Hunk #1 succeeded at 10 with fuzz 1.
patching file fw_viewchain
patching file nb_fw
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED — saving rejects to file nb_fw.rej
patching file nb_setautomarking

fw_initrules.rej:

***************
*** 23,34 ****
iptables -A INPUT -j SYS_INPUT
iptables -A INPUT -p tcp –dport 80 -j SYS_HTTPS
iptables -A INPUT -p tcp –dport 443 -j SYS_HTTPS
iptables -A INPUT -p tcp –dport 22 -j SYS_SSH
fi
[ “$CHAIN” == OUTPUT ] && iptables -A OUTPUT -j SYS_OUTPUT
if [ -d $CONFIG/Chains/$CHAIN/Rules ] ; then
cd $CONFIG/Chains/$CHAIN/Rules
RULES=`ls`
for RULE in $RULES ; do
ENABLED=”`cat $RULE/Enabled 2>/dev/null`”
if [ “$ENABLED” == yes ] ; then
— 23,38 —-
iptables -A INPUT -j SYS_INPUT
iptables -A INPUT -p tcp –dport 80 -j SYS_HTTPS
iptables -A INPUT -p tcp –dport 443 -j SYS_HTTPS
iptables -A INPUT -p tcp –dport 22 -j SYS_SSH
fi
[ “$CHAIN” == OUTPUT ] && iptables -A OUTPUT -j SYS_OUTPUT
+ # If we are doing the QoS chain, thenlear any marks left over from
+ # Netbalancing/failover routing. The QoS chain is applied after
+ # routing so there is no conflict.
+ [ “$CHAIN” == “QoS” ] && iptables $TABLE -A $CH -j MARK –set-mark 0x0
if [ -d $CONFIG/Chains/$CHAIN/Rules ] ; then
cd $CONFIG/Chains/$CHAIN/Rules
RULES=`ls`
for RULE in $RULES ; do
ENABLED=”`cat $RULE/Enabled 2>/dev/null`”
if [ “$ENABLED” == yes ] ; then