Skip to content

Personal Firewall für Linux

Uwe Kerstan hat nun endlich eine Personal Firewall für Linux entwickelt:
#!/bin/bash
echo -n Starting firewall.
while true; do
  sleep 1
  echo -n .
  if [ $(($RANDOM%13)) -eq 2 ]; then
     break;
  fi
  done
  echo
  echo Your system is now secure\!
while true; do
  sleep $(($RANDOM%53))
  echo "Blocked attack from host \
$(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%255+1)) \
 on port $(($RANDOM%65535+1))!!!"
done
exit 0
Jetzt muss nur noch jemand ein buntes Interface entwickeln.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

icewind on :

Die Entwicklung hat zwar über ein Jahr gedauert,aber ich denke, mit Folgenden Modifikationen gibt es ein praktisches GUI für die Firewall ;-)

#!/bin/bash
zenity --info --text=“Starting firewall” --title=“Linux-Firewall Pro SE 2006”
while true; do
sleep 1
if [ $(($RANDOM%25)) -eq 2 ]; then
zenity --info --text=“Firewall started” --title=“Linux-Firewall Pro SE 2006”
break
fi
done
echo
echo Your system is now secure\!
while true; do
sleep $(($RANDOM%20))
zenity --warning --text="Blocked attack from host\
$(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%255+1))\
on port $(($RANDOM%65535+1))!!!“ --title=”Linux-Firewall Pro SE 2006"
done
exit 0

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
BBCode format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Form options
cronjob