Skip to content

Instantly share code, notes, and snippets.

@robinvanemden
Forked from kim3er/script
Last active July 22, 2016 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinvanemden/880b040b591b06645687eecbdfe0599e to your computer and use it in GitHub Desktop.
Save robinvanemden/880b040b591b06645687eecbdfe0599e to your computer and use it in GitHub Desktop.
IP address limited UFW firewall config for Couchbase 4.5
#!/bin/sh
IP_ADDRESS="192.168.0.2"
ufw allow from $IP_ADDRESS to any port 4369
ufw allow from $IP_ADDRESS to any port 8091
ufw allow from $IP_ADDRESS to any port 8092
ufw allow from $IP_ADDRESS to any port 11214
ufw allow from $IP_ADDRESS to any port 11215
ufw allow from $IP_ADDRESS to any port 11209
ufw allow from $IP_ADDRESS to any port 11210
ufw allow from $IP_ADDRESS to any port 11211
ufw allow from $IP_ADDRESS to any port 18091
ufw allow from $IP_ADDRESS to any port 18092
ufw allow from $IP_ADDRESS proto tcp to any port 21100:21299
ufw allow from $IP_ADDRESS to any port 3838
ufw allow from $IP_ADDRESS to any port 4369
ufw allow from $IP_ADDRESS to any port 4984
ufw allow from $IP_ADDRESS to any port 8093
ufw allow from $IP_ADDRESS to any port 8094
ufw allow from $IP_ADDRESS to any port 11207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment