Giter VIP home page Giter VIP logo

qbittorrent-nat-tcp-hole-punching's Introduction

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

qbittorrent-nat-tcp-hole-punching's People

Contributors

mythologyli avatar arenadruid avatar uxbenkel avatar wy580477 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.