Skip to content

Shkarlatov/geossh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoIP-based SSH Access Filter

This package provides a GeoIP-based SSH access filter for Ubuntu, allowing you to allow or deny SSH connections based on the client's country. It is based on the scripts described in this article by Claudio Kuenzler.

Features

  • Automatically filters SSH connections by country code
  • Uses GeoIP database for IP geolocation

Installation

  1. Download the .deb package from the Releases section
  2. Install with:
    sudo apt install ./geossh.deb

Configuration

Edit /usr/local/bin/ipfilter.sh to set:

  • ALLOW_COUNTRIES - space-separated list of allowed country codes (e.g., "CH DE US")
  • ALLOW_IPS - space-separated list of whitelisted IP addresses (default 127.0.0.1)

About

Allow SSH access based on GeoIP country

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages