Skip to content

Mythologyli/qBittorrent-NAT-TCP-Hole-Punching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qBittorrent NAT TCP Hole Punching

中文

Use Natter/NATMap to perform TCP hole punching under Full Cone NAT, making qBittorrent for a public IPv4-like experience.

Requirement

  • Full Cone NAT.

  • The device running the script is only under one layer of NAT. If you run the script on other devices on the subnet, you can enable DMZ on the router.

  • qBittorrent is installed on the device running the script. If this condition is not met, you can manually modify the iptables port forwarding part of the script.

Usage

  1. Download the update.sh script.

  2. You can use Natter or NATMap as hole punching program. Take NATMap as an example, download the NATMap binary file and put it in the same directory as update.sh.

  3. Edit update.sh:

    • private_port: Natter fills in $3/NATMap fills in $4
    • public_port: Natter fills in $5/NATMap fills in $2
    • qb_web_port: The port of qBittorrent web service, usually 8080
    • qb_username: username
    • qb_password: password
  4. Take NATMap as an example, run sudo ./natmap -s stunserver.stunprotocol.org -h bing.com -b 45678 -e ./update.sh.

    Among them, stunserver.stunprotocol.org is the STUN server address, and bing.com is the public network HTTP server address, which is used to maintain the NAT mapping relationship and generally does not need to be modified. 45678 is any locally available port.

Thanks

About

qBittorrent NAT Hole Punching/qBittorrent NAT 打洞

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages