#!/bin/bash # # start/stop firewall script under /etc/firewall case "$1" in start) echo -n "Starting Firewall:" echo -n " firewall" ; echo "." /etc/firewall/firewall #mount -o remount,ro / ;; stop) echo -n "Stopping Firewall:" echo -n " firewall" ; echo "." iptables -F echo "0" > /proc/sys/net/ipv4/ip_forward ;; restart) echo -n "Restarting Firewall:" echo -n " firewall" echo "." iptables -F echo "0" > /proc/sys/net/ipv4/ip_firewall /etc/firewall/firewall ;; *) echo "Usage: /etc/init.d/inetd {start|stop|reload|restart}" exit 1 ;; esacWechseln wir nun nach /etc/rc2.d und erzeugen einen Link mit dem fwrun-Skript, welches unser firewall-Skript startet mit: