#!/bin/bash #Firewall Script by Bernhard Tittelbach #get's sourced by /etc/init.d/firewall start_firewall() { ip4 -I FORWARD -d $(resolveip -s tv.realraum.at 2>/dev/null || echo 89.106.215.58) -p tcp --syn --dport ! 22 -j REJECT } stop_firewall() { for table in INPUT FORWARD OUTPUT; do ip4 -F $table done }