File: C00iptables

package info (click to toggle)
pkg-perl-tools 0.82
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 796 kB
  • sloc: sh: 3,255; perl: 3,239; makefile: 142; python: 18
file content (14 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Copyright: 2012-2017 gregor herrmann <gregoa@debian.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.

# GID must match the one defined by BUILDUSERID into pbuilderrc file
iptables  -D OUTPUT ! -s 127.0.0.0/8 ! -d 127.0.0.0/8 -m owner --gid-owner 1234 -j LOG --log-uid --log-prefix "COWBUILDER: " || true
iptables  -D OUTPUT ! -s 127.0.0.0/8 ! -d 127.0.0.0/8 -m owner --gid-owner 1234 -j REJECT --reject-with icmp-port-unreachable  || true
ip6tables -D OUTPUT ! -s ::1         ! -d ::1         -m owner --gid-owner 1234 -j LOG --log-uid --log-prefix "COWBUILDER: " || true
ip6tables -D OUTPUT ! -s ::1         ! -d ::1         -m owner --gid-owner 1234 -j REJECT --reject-with icmp6-port-unreachable || true

dmesg | grep "COWBUILDER: " || true