summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates/firewall/elevate-festival.sh.j2
blob: 041e441b7f220195c5fb1ebaafc51b38612643c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#######################
# Definitions         #
#######################

IPTABLES="/sbin/iptables"
IP6TABLES="/sbin/ip6tables"

[ -x $IPTABLES ] || exit 0
[ -x $IP6TABLES ] || exit 0

FILTER="$IPTABLES -t filter"
NAT="$IPTABLES -t nat"
MANGLE="$IPTABLES -t mangle"

FILTER6="$IP6TABLES -t filter"
MANGLE6="$IP6TABLES -t mangle"


#########################
# IPv4 UP               #
#########################

ipv4_up() {
  # don't do anything here
  echo -n "success"
}


#########################
# IPv6 UP               #
#########################

ipv6_up() {
  # don't do anything here
  echo -n "success"
}


#########################
# IPv4 DOWN             #
#########################

ipv4_down() {
  # don't do anything here
  echo -n "success"
}


#########################
# IPv6 DOWN             #
#########################

ipv6_down() {
  # don't do anything here
  echo -n "success"
}