-
Notifications
You must be signed in to change notification settings - Fork 7
/
mullvad.rules
34 lines (29 loc) · 1.03 KB
/
mullvad.rules
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
define RESOLVER_ADDRS = {
100.100.100.100
}
define EXCLUDED_IPS = {
100.200.300.400,
100.500.600.700
}
# Comment the following block if you do not want IPv6 support.
define EXCLUDED_IPV6 = {
exam:ple:change:exam:ple:add:ress:bf04,
exam:ple:change:exam:ple:add:ress:6951
}
table inet mullvad-ts {
chain excludeOutgoing {
type route hook output priority 0; policy accept;
ip daddr $EXCLUDED_IPS ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
# Comment the following line if you do not want IPv6 support.
ip6 daddr $EXCLUDED_IPV6 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
chain allow-incoming {
type filter hook input priority -100; policy accept;
iifname "tailscale0" ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
chain excludeDns {
type filter hook output priority -10; policy accept;
ip daddr $RESOLVER_ADDRS udp dport 53 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
ip daddr $RESOLVER_ADDRS tcp dport 53 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
}