#---------------------------------------------------------------------------- # /etc/rc.d/fwrules.post.stunnel # # Last Update: $Id$ # # This script automatically configure the IPv4 packet filter such that # incoming stunnel connections are accepted. A manual packet filter # configuration in config/base.txt is therefore not necessary. #---------------------------------------------------------------------------- if [ "$OPT_STUNNEL" = "yes" ] then . /usr/share/stunnel.api fw_add_chain filter $stunnel_input_filter_chain fw_append_rule filter INPUT $stunnel_input_filter_chain "stunnel access" fw_add_chain filter $stunnel_output_filter_chain fw_append_rule filter OUTPUT $stunnel_output_filter_chain "stunnel access" fi