![]() |
| Image 1 |
INTRODUCTION
This week there was a need to setup and manipulate the iptables. One of the first steps before starting is to disable the firewall as seen in image 1.
INSTALL
![]() |
| Image 2 |
![]() |
| Image 3 |
MANIPULATE IPTABLE
Once this is installed and status is confirmed can manipulate the table to decide access and security settings. Such as disabling telnet connections. One such command is to remove/delete certain lines. First lets check what the iptables currently appear using the command line #iptables --line-numbers -n -L in image 3.
![]() |
| Image 4 |
Next can use #iptables -D INPUT 4 command where the -D (delete) removes the 4th line changes can be seen in image 4.
Some other basic commands include the following:
-F : Deleting (flushing) all the rules.
-X : Delete chain.
-t table_name : Select table (called nat or mangle) and delete/flush rules.
-P : Set the default policy (such as DROP, REJECT, or ACCEPT).
CONCLUSION
It is important to have a good firewall setup to increase security and this is done through iptables on Linux. Above is just some basics but it puts a person on the right path to computer security.




No comments:
Post a Comment