File: iptables-persistent.config

package info (click to toggle)
iptables-persistent 1.0.23
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 272 kB
  • sloc: sh: 503; makefile: 20
file content (17 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# Source debconf library
. /usr/share/debconf/confmodule

db_get iptables-persistent/autosave_done || true
if [ "x$RET" != "xtrue" ]; then
	# Save iptables rules?
	db_input high iptables-persistent/autosave_v4 || true
	db_go

	# Save ip6tables rules?
	db_input high iptables-persistent/autosave_v6 || true
	db_go
fi