"I am fearless of being DDoSed."
Prevent DDoS attacks on your Garry's Mod server.
The reason for writing this is that gmod-netprotect
does not support frp proxy.
Assuming your gmod server is running on 27070/udp:
- Build the Go program:
go build -o mortis main.go
- Ensure
iptables
andipset
are installed on your system. - Run the executable:
mortis -port=28080 -limit=5/sec -burst=5 -protected-port=27070
- clone this repo into gmod addons directory
- modify
url
in shared.lua - modify
sv_loadingurl
tohttp://your.server.url/http://your.origin.loadingurl
Special thanks to OverlordAkise for his work on gmod-netprotect
, which inspired this project.