Just qBittorrent under VPN?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
ghettopi
Posts: 31
Joined: Tue Jul 30, 2019 8:17 pm

Just qBittorrent under VPN?

Post by ghettopi » Fri Aug 02, 2019 4:29 pm

How to do this, I'm sure I'm not the only one? I'd like it done preferably with Wireshark. I don't need/want every single connection running through Wireshark, just those from qBittorrent and I also need access to my Pi via LAN of course.

When running the following .conf from my VPN provider. I instantly lose any SSH/LAN access to my Pi which makes it useless for me. Does anyone know what kind of modification I need?

Code: Select all

[Interface]
PrivateKey = <privatekey>
Address = 10.***.***.101/32,fc00:****:****:****::865/128
DNS = 193.138.218.74
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 = <publickey>
AllowedIPs = 0.0.0.0/0,::0/0
Endpoint = 185.***.***.130:51820

Post Reply