Skip to content

A script that automatically whitelists people that connect to openvpn (they are saved forever) and drops the port but also allowing the clients to connect preventing annoying socket floods.

License

Notifications You must be signed in to change notification settings

SnoopWS/SFilter-Openvpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SFilter-OpenVPN

SFilter-OpenVPN is a script that automatically whitelists people who connect to OpenVPN, saving them forever. It drops the port while still allowing clients to connect, preventing annoying socket floods.

Setup

  1. Locate your OpenVPN server.conf file, which is commonly found in /etc/openvpn/server/server.conf.

  2. Add the following lines to the server.conf file:

    status openvpn-status.log 2
    
  3. Restart the openvpn service.

    sudo systemctl restart openvpn-server@server.service
    

Recommendations

Locate the push line in your server.conf file and replace it with the following line to only allow TUN traffic (credits to toxicj for this):

push "redirect-gateway def1 bypass-dhcp"

This ensures that only the necessary traffic is allowed through the VPN tunnel, providing a more secure and stable connection.

About

A script that automatically whitelists people that connect to openvpn (they are saved forever) and drops the port but also allowing the clients to connect preventing annoying socket floods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages