-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmullvad-netns.config
39 lines (30 loc) · 1.23 KB
/
mullvad-netns.config
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
# all these variables can be overriden in the config file
MULLVAD_PORT=51820
RELAYS_URI="https://api.mullvad.net/public/relays/wireguard/v1/"
MULLVAD_API_URI="https://api.mullvad.net/wg/"
# the default country to select a server from, list of available countries is available with
# curl https://api.mullvad.net/public/relays/wireguard/v1/ | jq ".countries[].name"
# defaults to USA
COUNTRY="usa"
# the default city to select a server from, list of available cities withing a country available with
#curl -s https://api.mullvad.net/public/relays/wireguard/v1/ | jq ".countries[] | select(.name == \"${COUNTRY}\") | .cities[].name"
# defaults to any server in California
CITY=", ca"
# file name to find the account in
ACCOUNT_FILENAME="/etc/mullvad-netns/account"
# directory to store keys in
WG_KEYFILE="/etc/mullvad-netns/privatekey"
# location of cache of servers list
SERVERS_CACHE="/var/cache/mullvad-netns/mullvad-servers.json"
# how often to refresh cache of mullvad servers
SERVERS_CACHE_MAX_AGE="1 day"
# location to load nftables rules from
NFTABLES_RULESET="/etc/mullvad-netns/rules.nft"
# list of nameservers to use inside the netns
NAMESERVERS=(
"193.138.218.74"
"1.1.1.1"
"1.0.0.1"
"2606:4700:4700::1111"
"2606:4700:4700::1001"
)