Files for building MongoDB docker container.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
512 B

#!/bin/bash
#
# Run this on the server -
# either the server that runs stunnel,
# or the server that runs the docker stunnel container.
function usage {
6 years ago
echo ""
echo "close_fw.sh script:"
echo "opens the firewall to a particular port using iptables."
echo "specify a port number for the firewall to open:"
echo ""
echo " ./close_fw.sh 666"
echo ""
}
if [[ "$#" -ne 1 || $1 =~ "[0-9]\{1,5\}" ]];
then
6 years ago
usage
else
6 years ago
iptables -A INPUT -p tcp --dport ${1} -j DROP
fi