-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put a rule before the last one #1
Comments
All PUT requests insert in front of the chain (-I) so if you do: |
i cannot understand properly. consider a filter chain, and i'm putting 4-5 rules allow and then a drop all. how can i put, after two days, another allow before the drop all statement? |
There are only iptables inserts in rfw so you should start with drop all, add 4-5 allow rules (they will be inserted so will end up before the drop all rule) and then add (insert) next allow rules at any time. |
Ahhh, ok, so are in reverse order, right? Another question, what will happen at machine reboot? Will the rules stays on and active or will be lost? |
Q1: Yes, reverse |
about q2, what can i do for letting stay in? a cronjob iptables-save into /etc/sysconfig/iptables (into centos 6) ? |
another important question, how to delete a previous allow rule ? |
Q2': iptables-save in cron should work |
I want to have got a configuration with last rule as "-A INPUT -j DROP" but, after this, i want to add a rule before this drop all statement.
How to accomplish that?
The text was updated successfully, but these errors were encountered: