#!/bin/sh
# @(#)(CAcert) $Id: firewall.sh,v 1.5 2010/03/17 12:34:06 markus Exp $

# ---------------------------------------------------------------------------------

# *** common functions ***
iptables()	# function for setting IPv4/IPv6 rules at the same time
{
	/sbin/iptables "$@"
	/sbin/ip6tables "$@"
}

ip4tables()	# function for setting IPv4-specific rules
{
	/sbin/iptables "$@"
}

ip6tables()	# function for setting IPv6-specific rules
{
	/sbin/ip6tables "$@"
}

# ---------------------------------------------------------------------------------

# *** default policies ***
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
