Hi!
So i have a Pi 4 incoming. I plan to use it as a vpn client gateway in my network, and use it for some devices going thru a vpn tunnel towards commercial providers. I am testing different vpn providers right now. My question is: I’ve downloaded client config files from these providers, but they look very different where one has a lot more settings. Does anyone know of this extra stuff is necessary? Provider 1 is config file for Debian(they didn’t have raspberry config specifically), 2 is for raspberry pi. I assume number 1 have settings that i could specify in dietpi, but are they necessary? Is this maybe kill-switch functionality? This is obviously Wireguard protocol…
I also wonder if these configs would work with dietpi specifically?
Provider 1:
[Interface]
PrivateKey = xxx
Address = xx.xx.xx.xx
DNS = xxx.xxx.xx.xx
PostUp = iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
[Peer]
PublicKey =
AllowedIPs = 0.0.0.0/0,::0/0
Endpoint = xxx.xxx.xx.xxc:51820
Provider 2:
[Interface]
PrivateKey = xxx
Address = xxx.xx.xxx.xxx
DNS = xx.xxx.xxx.xx, xxx.xx.xxx.xxx
[Peer]
PublicKey =
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = xxxxx.xxxx.com:9945