portcheck

command module
v0.0.0-...-49c0d2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 12 Imported by: 0

README

Portcheck

Portcheck is a simple service for checking if a port is open to the internet, only ports on the request source IP are checked.

It features Recaptcha, ratelimits, Cloudflare support, logging with rollover and compression, and the ability to restrict ports, comes with a default restricted ports list.

You can try it out live at portcheck.komodai.com.

Setup

  1. Open main.go and locate reCAPTCHASecret = "" and enter your Recaptcha secret.
  2. Open www/index.html and locate data-sitekey="" and enter your own Recaptcha site key.
  3. If you are proxying behind Cloudflare, open main.go and set useCloudflare to true, this will pass through client IPs for logging, otherwise it will log 127.0.0.1.
  4. Build using go build . and run!

Optionally adjust:

  • Ratelimits.
  • Log location and rollover size.
  • Restricted ports.

All these settings can be found in main.go.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL