#!/bin/sh %for %%tunnel in %%stunnel_name %for %%int_idx in %%range(0, %%int(%%nombre_interfaces)) /sbin/iptables -A eth%%{int_idx}-root -s 0.0.0.0/0.0.0.0 -p tcp -m tcp --dport %%tunnel.stunnel_accept_port --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT %end for %end for