Here are some notes I keep for myself when I play with iptables
(I don’t use it often enough to remember how it works):
List all rules
# iptables -L
See the rules and their numbers
# service iptables status
Delete a rule
# iptables -D CHAIN NUM
E.g.:
# iptables -D INPUT 12
Add a new rule at the bottom of the chain
# iptables -A INPUT -i eth0 -p tcp --dport 8888 -j ACCEPT
Insert a new rule in a particular place
This inserts a rule in position 6; the rule that was formerly in 6th position will be bumped down (and all rules below it):
From “Ratatouille”, bonus DVD:
Anybody can cook. It’s just you have to have the desire, the determination, to make something that you’re going to feel proud to give to somebody to have that emotional connection with somebody. I think you have to be emotionally attached to what you’re doing.
And the food can be so inspiring. It comes in in its raw form, and you think, “Ok, what am I going to do with this?” What are we looking at when we’re defining a new dish? We’re really looking at the end product. What do we want to see in the dish, what do we want to feel in our mouth, what do we want to smell, what do want to taste? And then we work backwards. In establishing the different techniques or the different products that we’re going to use, that will result in that end.