Skip to content

deven-sitapara/iptables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Firewall Settings

Allow ports for all

Allow following ports for global access.


# Allow following port for global access

-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 19999 -j ACCEPT

# Allow following port for selected access

-A INPUT -s {IP_ADDRESS_1}/24 -j ACCEPT
-A INPUT -s {IP_ADDRESS_2}/24 -j ACCEPT
-A INPUT -s {IP_ADDRESS_3}/24 -j ACCEPT
-A INPUT -s {IP_ADDRESS_4}/24 -j ACCEPT
  

Restart and check

sudo service iptable restart
sudo iptables -S

Releases

No releases published

Packages

No packages published