xtables.conf 1.97 KB
Newer Older
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
family ipv4 {
	table raw {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -300
		chain OUTPUT hook NF_INET_LOCAL_OUT prio -300
	}

	table mangle {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -150
		chain INPUT hook NF_INET_LOCAL_IN prio -150
		chain FORWARD hook NF_INET_FORWARD prio -150
		chain OUTPUT hook NF_INET_LOCAL_OUT prio -150
		chain POSTROUTING hook NF_INET_POST_ROUTING prio -150
	}

	table filter {
		chain INPUT hook NF_INET_LOCAL_IN prio 0
		chain FORWARD hook NF_INET_FORWARD prio 0
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 0
	}

	table nat {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -100
		chain INPUT hook NF_INET_LOCAL_IN prio -100
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 100
		chain POSTROUTING hook NF_INET_POST_ROUTING prio 100
	}

	table security {
		chain INPUT hook NF_INET_LOCAL_IN prio 50
		chain FORWARD hook NF_INET_FORWARD prio 50
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 50
	}
}

family ipv6 {
	table raw {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -300
		chain OUTPUT hook NF_INET_LOCAL_OUT prio -300
	}

	table mangle {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -150
		chain INPUT hook NF_INET_LOCAL_IN prio -150
		chain FORWARD hook NF_INET_FORWARD prio -150
		chain OUTPUT hook NF_INET_LOCAL_OUT prio -150
		chain POSTROUTING hook NF_INET_POST_ROUTING prio -150
	}

	table filter {
		chain INPUT hook NF_INET_LOCAL_IN prio 0
		chain FORWARD hook NF_INET_FORWARD prio 0
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 0
	}

	table nat {
		chain PREROUTING hook NF_INET_PRE_ROUTING prio -100
		chain INPUT hook NF_INET_LOCAL_IN prio -100
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 100
		chain POSTROUTING hook NF_INET_POST_ROUTING prio 100
	}

	table security {
		chain INPUT hook NF_INET_LOCAL_IN prio 50
		chain FORWARD hook NF_INET_FORWARD prio 50
		chain OUTPUT hook NF_INET_LOCAL_OUT prio 50
	}
}

family arp {
	table filter {
		chain INPUT hook NF_ARP_IN prio 0
		chain FORWARD hook NF_ARP_FORWARD prio 0
		chain OUTPUT hook NF_ARP_OUT prio 0
	}
}