How do I set firewall rules in Linux?

How do I set firewall rules in Linux?
Answer
Basic iptables commands :
  1. List the current rules of iptable : To list the rules of the current iptables:- sudo iptables -L. The Output would be:- …
  2. Clear the rules : If you ever want to clear/flush out all the existing rules. Run the following command:- sudo iptables -F. …
  3. Changing the default policy of chains :
 

Tìm kiếm

Back
Top