rules6-save 5.92 KB
Newer Older
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
# rules6-save generated by awall
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT DROP [0:0]
:icmp-routing - [0:0]
:logaccept-0 - [0:0]
:logaccept-18 - [0:0]
:logaccept-27 - [0:0]
:logaccept-36 - [0:0]
:logaccept-45 - [0:0]
:logaccept-63 - [0:0]
:logaccept-9 - [0:0]
:logdrop-0 - [0:0]
:logdrop-1 - [0:0]
:logpass-0 - [0:0]
:logpass-16 - [0:0]
:logpass-30 - [0:0]
:logpass-37 - [0:0]
:logpass-50 - [0:0]
:logpass-9 - [0:0]
-A FORWARD -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A FORWARD -j ACCEPT
-A FORWARD 
-A FORWARD -j logaccept-0
-A FORWARD -j logpass-0
-A FORWARD -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -o eth1 -d fc00::/7 
-A FORWARD -o eth1 -d fc00::/7 -j logaccept-9
-A FORWARD -o eth1 -d fc00::/7 -j logpass-9
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -i eth0 
-A FORWARD -i eth0 -j logaccept-18
-A FORWARD -i eth0 -j logpass-16
-A FORWARD -i eth0 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -d fc00::/7 
-A FORWARD -i eth0 -o eth1 -d fc00::/7 -j logaccept-27
-A FORWARD -i eth0 -o eth1 -d fc00::/7 -m limit --limit 1/second -j LOG
-A FORWARD -i eth1 -s fc00::/7 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 
-A FORWARD -i eth1 -s fc00::/7 -j logaccept-36
-A FORWARD -i eth1 -s fc00::/7 -j logpass-30
-A FORWARD -i eth1 -s fc00::/7 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 
-A FORWARD -i eth1 -s fc00::/7 -j logaccept-45
-A FORWARD -i eth1 -s fc00::/7 -j logpass-37
-A FORWARD -j ACCEPT
-A FORWARD -j logdrop-0
-A FORWARD 
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
-A FORWARD -j logaccept-63
-A FORWARD -j logdrop-1
-A FORWARD -j logpass-50
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth0 -o eth4 -j ACCEPT
-A FORWARD -i eth0 -o eth5 -j ACCEPT
-A FORWARD -i eth0 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth0 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth4 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth5 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth4 -o eth0 -j ACCEPT
-A FORWARD -i eth5 -o eth0 -j ACCEPT
-A FORWARD -i eth4 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth5 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth4 -o eth4 -j ACCEPT
-A FORWARD -i eth4 -o eth5 -j ACCEPT
-A FORWARD -i eth5 -o eth4 -j ACCEPT
-A FORWARD -i eth5 -o eth5 -j ACCEPT
-A FORWARD -i eth4 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth5 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth0 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth4 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth5 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -p icmpv6 -j icmp-routing
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT 
-A INPUT -j logaccept-0
-A INPUT -j logpass-0
-A INPUT -i eth0 -j ACCEPT
-A INPUT -i eth0 
-A INPUT -i eth0 -j logaccept-18
-A INPUT -i eth0 -j logpass-16
-A INPUT -i eth1 -s fc00::/7 -j ACCEPT
-A INPUT -i eth1 -s fc00::/7 
-A INPUT -i eth1 -s fc00::/7 -j logaccept-36
-A INPUT -i eth1 -s fc00::/7 -j logpass-30
-A INPUT -i eth1 -s fc00::/7 -j ACCEPT
-A INPUT -i eth1 -s fc00::/7 
-A INPUT -i eth1 -s fc00::/7 -j logaccept-45
-A INPUT -i eth1 -s fc00::/7 -j logpass-37
-A INPUT -j ACCEPT
-A INPUT -j logdrop-0
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
-A INPUT -j logaccept-63
-A INPUT -j logdrop-1
-A INPUT -j logpass-50
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -p icmpv6 -j ACCEPT
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT 
-A OUTPUT -j logaccept-0
-A OUTPUT -j logpass-0
-A OUTPUT -o eth1 -d fc00::/7 -j ACCEPT
-A OUTPUT -o eth1 -d fc00::/7 
-A OUTPUT -o eth1 -d fc00::/7 -j logaccept-9
-A OUTPUT -o eth1 -d fc00::/7 -j logpass-9
-A OUTPUT -j ACCEPT
-A OUTPUT -j logdrop-0
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
-A OUTPUT -j logaccept-63
-A OUTPUT -j logdrop-1
-A OUTPUT -j logpass-50
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d fc00::/7 -j ACCEPT
-A OUTPUT -p icmpv6 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 1 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 2 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 3 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 4 -j ACCEPT
-A logaccept-0 -m limit --limit 1/second -j LOG
-A logaccept-0 -j ACCEPT
-A logaccept-18 -m limit --limit 1/second -j LOG
-A logaccept-18 -j ACCEPT
-A logaccept-27 -m limit --limit 1/second -j LOG
-A logaccept-27 -j ACCEPT
-A logaccept-36 -m limit --limit 1/second -j LOG
-A logaccept-36 -j ACCEPT
-A logaccept-45 -m limit --limit 1/second -j LOG
-A logaccept-45 -j ACCEPT
-A logaccept-63 -m limit --limit 1/second -j LOG
-A logaccept-63 -j ACCEPT
-A logaccept-9 -m limit --limit 1/second -j LOG
-A logaccept-9 -j ACCEPT
-A logdrop-0 -m limit --limit 1/second -j LOG
-A logdrop-0 -j DROP
-A logdrop-1 -m limit --limit 1/second -j LOG
-A logdrop-1 -j DROP
-A logpass-0 -m limit --limit 1/second -j LOG
-A logpass-16 -m limit --limit 1/second -j LOG
-A logpass-30 -m limit --limit 1/second -j LOG
-A logpass-37 -m limit --limit 1/second -j LOG
-A logpass-50 -m limit --limit 1/second -j LOG
-A logpass-9 -m limit --limit 1/second -j LOG
COMMIT
*mangle
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
177 178 179 180
-A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
181 182 183 184 185 186 187 188 189
COMMIT
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A OUTPUT -j CT --notrack
-A PREROUTING -i eth0 -j CT --notrack
-A PREROUTING -i eth1 -s fc00::/7 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -j CT --notrack
COMMIT