File: iptables_flush.sh

package info (click to toggle)
miniupnpd 2.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,040 kB
  • sloc: ansic: 28,571; sh: 2,024; makefile: 164
file content (10 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
# $Id: iptables_flush.sh,v 1.7 2018/04/06 10:17:09 nanard Exp $

. $(dirname "$0")/miniupnpd_functions.sh

#flush all rules owned by miniupnpd
$IPTABLES -t nat -F $CHAIN
$IPTABLES -t nat -F $CHAIN-POSTROUTING
$IPTABLES -t filter -F $CHAIN
$IPTABLES -t mangle -F $CHAIN