If you are running a VPN on your server, some of your end customers may use it for torrenting (P2P). As a result, they may violate DMCA and other legal copyright acts. To protect your server from suspension, we recommend limiting P2P traffic.
We have provided an automated script that blocks the majority of BitTorrent traffic signatures while keeping your VPN safe for gaming and calls.
Key Features:
Safe for Gaming & VoIP: It does not block all UDP traffic.
Non-Intrusive: It filters traffic passing through the VPN only.
Easy Revert: You can disable the protection at any time using the same command.
Installation
Step 1: Connect to your server Access your server via SSH.
Step 2: Run the next commands Copy and paste the following commands into your terminal. Execute them one after another.
curl -O https://scripts.s-ed1.cloud.gcore.lu/block_p2p.sh
sudo bash block_p2p.sh(Note: If you don't have curl installed, run sudo apt install curl first).
Step 3: Apply protection The script will launch a menu. Type 1 and press Enter. The script will automatically install the necessary firewall persistence tools and apply the filters.
How to disable the block?
If you need to allow torrents again, go to the folder where the script if located, and run the command again:
sudo bash block_p2p.shAnd select Option 2 (Remove Blocking Rules) from the menu.
Note
This script may not work on all Linux distributions, and we don’t guarantee that all P2P traffic will be blocked. It’s a soft version of the block, developed specifically to prevent VPN and related activities. If you still see P2P activity on your server, please apply a stricter block.
Comments
0 comments
Please sign in to leave a comment.