Skip to content

Commit

Permalink
Update ubuntu-seed-node.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOnomy authored Mar 20, 2024
1 parent 2823d8d commit 8652cb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/mainnet/chain/scripts/ubuntu-seed-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ sudo ./add-service.sh node-exporter ${PWD}/start-node-exporter.sh
IPTABLES_CONFIG=/etc/iptables/rules.v4
if test -f "$IPTABLES_CONFIG"; then
# Oracle Cloud Ubuntu Firewall Config
sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 26656 -j ACCEPT/' /etc/iptables/rules.v4
sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 26657 -j ACCEPT/' /etc/iptables/rules.v4
sudo iptables-restore < /etc/iptables/rules.v4
sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 26656 -j ACCEPT/' $IPTABLES_CONFIG
sudo sed -i 's/22 -j ACCEPT/&\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 26657 -j ACCEPT/' $IPTABLES_CONFIG
sudo iptables-restore < $IPTABLES_CONFIG
fi

echo "Completed node setup"
Expand Down

0 comments on commit 8652cb7

Please sign in to comment.