#!/bin/sh IPT=/sbin/iptables $IPT -F #policies $IPT -P OUTPUT ACCEPT $IPT -P INPUT DROP $IPT -P FORWARD DROP #allowed inputs $IPT -A INPUT --in-interface lo -j ACCEPT $IPT -A INPUT -p tcp --dport 113 -j ACCEPT $IPT -A INPUT -p tcp --dport 22 -j ACCEPT #allow responses