mirror of https://github.com/hashicorp/consul
13 lines
356 B
Bash
13 lines
356 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
sudo iptables -I INPUT -s 0/0 -p tcp --dport 8300 -j ACCEPT
|
|
sudo iptables -I INPUT -s 0/0 -p tcp --dport 8301 -j ACCEPT
|
|
sudo iptables -I INPUT -s 0/0 -p tcp --dport 8302 -j ACCEPT
|
|
|
|
if [ -d /etc/sysconfig ]; then
|
|
sudo iptables-save | sudo tee /etc/sysconfig/iptables
|
|
else
|
|
sudo iptables-save | sudo tee /etc/iptables.rules
|
|
fi
|