![]() There are five chains, but not all of them exist in all tables: The chain tells iptables which chain you want this command to work with.A Append a rule to the end of the chain -I Insert a rule somewhere in the middle of the chain -D Delete a rule from in the chain -R Replace a rule in the chain with a new one -P Set the default policy for the chain, the action to be taken if no rule matches -L List all rules in the chain (or, if no chain is specified, in the table) The mode tells iptables what kind of action you want this command to do.There are multiple tables for various purposes:įILTER Most firewall rules go in here NAT Network Address Translation table, for translating IP addresses between two networks The table tells iptables which part of the firewall you want this command to work with. ![]() Most commands you run with iptables are going to look something like this: iptables ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |