Martineau
Part of the Furniture
Should I go ahead and run a test with a valid ip such as 8.8.8.8 to check it out?
I found the code and here is the change you said to implement:
Code:if [ $? -eq 0 ];then echo -e "\n"$unbannedip "Is Now Unbanned"$cRESET sed -i '/$unbannedip/d' $DIR/IPSET_Block.config fi # if [ $? -eq 0 ];then # echo -e "\n"$unbannedip "Is Now Unbanned"$cRESET # fi echo "`sed /$unbannedip/d $DIR/IPSET_Block.config`" > $DIR/IPSET_Block.config
No!!!!
This is the line that that causes the damage:
Code:
echo "`sed /$unbannedip/d $DIR/IPSET_Block.config`" > $DIR/IPSET_Block.config
and must be DELETED - and it appears you have not commented it out.
Once you have removed the line, then you can test!