Skip to content

Commit

Permalink
iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydrosys4 committed Nov 28, 2021
1 parent 36e44f7 commit e44ecd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/install_hydrosys4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ EOF

iptables_blockports ()
{
sudo apt-get install iptables -y || { echo "ERROR --------------------------Installation failed ----------------" && exit ;}

sudo iptables -A INPUT -p tcp -s localhost --dport 5020 -j ACCEPT
sudo iptables -A INPUT -p tcp -s localhost --dport 5022 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 5020 -j DROP
Expand Down

0 comments on commit e44ecd4

Please sign in to comment.