Annotation of embedaddon/miniupnpd/netfilter/iptables_removeall.sh, revision 1.1.1.3

1.1       misho       1: #! /bin/sh
1.1.1.3 ! misho       2: # $Id: iptables_removeall.sh,v 1.6 2012/01/02 09:55:20 nanard Exp $
1.1.1.2   misho       3: IPTABLES=/sbin/iptables
1.1       misho       4: 
                      5: #change this parameters :
                      6: EXTIF=eth0
1.1.1.3 ! misho       7: EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`"
1.1       misho       8: 
                      9: #removing the MINIUPNPD chain for nat
                     10: $IPTABLES -t nat -F MINIUPNPD
                     11: #rmeoving the rule to MINIUPNPD
                     12: #$IPTABLES -t nat -D PREROUTING -d $EXTIP -i $EXTIF -j MINIUPNPD
                     13: $IPTABLES -t nat -D PREROUTING -i $EXTIF -j MINIUPNPD
                     14: $IPTABLES -t nat -X MINIUPNPD
                     15: 
                     16: #removing the MINIUPNPD chain for filter
                     17: $IPTABLES -t filter -F MINIUPNPD
                     18: #adding the rule to MINIUPNPD
1.1.1.2   misho      19: $IPTABLES -t filter -D FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD
1.1       misho      20: $IPTABLES -t filter -X MINIUPNPD
                     21: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>