Join the community, get access to exclusive contents and discussions.
Grab tips and tricks from experts.
We are in-need for your support and participation.
Join now as we regularly update the website for your needs.
Leave your suggestion on our contact page. We'll
promise to do our best to make your request possible!
Linux Server: Installing Firewall to your Server for Security.
Now, to allow specific ports from protocol tcp/udp.
service ufw allow 3000/tcp service ufw allow 3000/udp
To allow a range of ports, use the following command. To block just change allow to deny.
> service ufw allow 3000:3100
To deny subnet with attackers, usually. Subnet includes range of ip so take note either safe ip or malicious ip is blocked!
ufw deny proto tcp from 126.96.36.199/16 to any
Now, that all things are set, you can now reload your firewall to make use of the new rules previously set. To reload the current firewall new config.
Now, all things set you can now config iptables that you will be using to deal with the networking and security like iptables. See, Server Admin: Basic Manual for Performance and Security forum for more server administration.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic. Login here