Skip to content

A simple shell script, that takes the input of a domain, finds the IP and then adds it to a text file. Useful for things like, adding network hubs to the Mystic BBS allowlist easily.

License

Notifications You must be signed in to change notification settings

BigFunnyGiant/bash-whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

bash-whitelist

This is a simple whitelist bash script for linux. It uses dig, to find the IP of a domain, checks to see if it's already in a text file using grep, and if not adds it. Useful, in situations like, if you're running a Mystic BBS and you want to add your network hubs to your allowlist.

Installing

git clone https://github.com/BigFunnyGiant/bash-whitelist # clone the repository
cd bash-wwhitelit
cp whatismyip.sh /usr/local/bin

or copy it to somewhere you like, maybe in the PATH so you can execute it from anywhere. Remember to check the permissions as well.

Usage

Edit the script, and for the WHITE_LIST_FILE variable, put the path to the text file.

Dependencies

  • bash
  • dig
  • grep

About

A simple shell script, that takes the input of a domain, finds the IP and then adds it to a text file. Useful for things like, adding network hubs to the Mystic BBS allowlist easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages