#!/bin/bash
#

%if %%activer_regles_filtrage_port_source == 'oui'
%for %%port_source in %%fw_rule_port
# ouvre le port %%port_source en sortie pour le protocole %%port_source.fw_rule_protocole
/sbin/iptables -I eth%%port_source.fw_rule_int-root -i %%getVar('nom_zone_eth' + %%port_source.fw_rule_int) --protocol %%port_source.fw_rule_protocole --sport %%port_source -j ACCEPT

%end for
%end if
