-
-
Save robinvanemden/880b040b591b06645687eecbdfe0599e to your computer and use it in GitHub Desktop.
IP address limited UFW firewall config for Couchbase 4.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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