This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
clearing_iptables [2023/05/08 04:23] – -Clarity-intro, formatting hogwild | clearing_iptables [2024/10/31 21:09] (current) – hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Clearing iptables custom commands prior to re-applying new ones ===== | + | ===== Clearing iptables custom commands prior to applying new ones ===== |
- | Let's say, for example, | + | As an example, let's say that you wanted |
- | You can remove | + | |
\\ | \\ | ||
Line 11: | Line 11: | ||
\\ | \\ | ||
- | This command here below will check what iptables **-A** (append) or **-I** (insert) have been used in the current Script/ | + | The commands |
- | | + | You might have created custom tables in which to use advanced iptables commands. This is usually performed using the "**-N**" (new) command. The same principles described above will also apply to previously-issued directives which used the **-N command**. |
- | * a table needs to be empties | + | |
- | * only at this point you will be allowed to remove the table with a **iptables -X $TABLE_NAME**. | + | \\ Here are a few rules to remember when using these commands: |
+ | |||
+ | \\ | ||
+ | |||
+ | * First, | ||
+ | * A table must then be emptied | ||
+ | * Only then will you be allowed to remove the table by using the command: \\ "**iptables -X $TABLE_NAME"**. | ||
+ | |||
+ | \\ | ||