File: C00iptables

package info (click to toggle)
debomatic 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 716 kB
  • ctags: 153
  • sloc: python: 1,653; sh: 74; makefile: 46
file content (8 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/sh

if [ "$(uname -s)" = "Linux" ]
then
	# GID must match the one defined by BUILDUSERID into pbuilderrc file
	iptables -D OUTPUT ! -s 127.0.0.1 ! -d 127.0.0.1 -m owner --gid-owner 1234 -j REJECT --reject-with icmp-port-unreachable
	iptables -nL OUTPUT
fi