Skip to content

It detects VPN's packets and disconnect the connection of VPN with packet injection. This project started from BoB(Best of the Best) 12th program.

License

Notifications You must be signed in to change notification settings

bob12vpn/vpn-hater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ VPN-Hater

🌐 VPN-Hater is an innovative, open-source solution aimed at enhancing network security by blocking VPN connections. Distinguished from traditional inline methods, VPN-Hater is both reliable and cost-effective, ensuring uninterrupted network performance even in high-traffic scenarios.


Environment

  • Linux

🚀 Key Features

  • 💡 Out-of-Path Method: Guarantees uninterrupted network performance.
  • 🔒 Packet Injection: Expertly blocks VPNs by injecting termination packets.
  • 🔄 Supports Multiple Protocols: Compatible with PPTP, L2TP, TCP Based VPN(OpenVPN TCP), and non-encrypted OpenVPN UDP.
  • 🏎️ High Traffic Handling: Maintains consistent speed under heavy load.
  • 💸 Cost-Effective Solution: Minimizes equipment replacement costs.

🛠️ Usage Guide

🌟 Setting Up

  1. Network Environment Setup: Configure your network for port mirroring.

    1) Using TAP device to mirror packets

    2) Using Internet Router with port mirroring function

    3) Using Switch with port mirroring function

  2. Installation:

    $ git clone https://github.com/bob12vpn/vpn-hater.git
    $ sudo apt install build-essential
    $ sudo apt install libpcap-dev
    $ make -j

    add -j option for compile faster

  3. Execution:

    • command
    $ sudo ./vpn-hater <mirror interface> <send interface> [sni list txt]
    • example
    $ sudo ./vpn-hater eth0 wlan0 sni.txt

📡 How It Works

  • PPTP & L2TP: Strategy involves injecting termination request packets.
  • OpenVPN UDP (Non-Encrypted): Employs explicit-exit-notify packet injection.
  • OpenVPN TCP: Utilizes parsed signature & injects FIN/RST packets.
  • TCP-Based VPNs: Enhanced blocking via signature parsing.

📬 Support

🤝 For assistance, contact us at: [email protected]


📸 Example Usage

image

About

It detects VPN's packets and disconnect the connection of VPN with packet injection. This project started from BoB(Best of the Best) 12th program.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •