Last active
November 4, 2023 09:28
-
-
Save bajpangosh/a0e6da5f9bfe6e5d3f9a2d25aa24588d to your computer and use it in GitHub Desktop.
Revisions
-
bajpangosh revised this gist
Dec 7, 2022 . No changes.There are no files selected for viewing
-
bajpangosh created this gist
Nov 21, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/bash # GET ALL USER INPUT sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 7080 -j ACCEPT sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 8080 -j ACCEPT sudo netfilter-persistent save