#add kill switch
in the .conf add
below interface
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
Once added libnatpmp is needed
Then paste to get open and display open port
#open port
in terminal type
while true ; do date ; natpmpc -a 1 0 udp 60 -g 10.2.0.1 && natpmpc -a 1 0 tcp 60 -g 10.2.0.1 || { echo -e "ERROR with natpmpc command \a" ; break ; } ; sleep 45 ; done
this opens a tunnel for that port
then in torrent client uncheck nat-pmp from my router. vpn tunnels through your router so you only need to set the port in torrent client.
What I think this does is normally there is nat-pmp on the torrent client. This opens that port on your router automatically so you dont have to do it. Since we disabled it and set it up manually we uncheck from router. The end result is that you can be directly referenced from the internet otherwise all incoming connections are blocked. This allows you to upload.
Thought this was hilarious
