Please never ever write iptables rules like this:
[root@deathstar ~]# cat /root/myfirewall.sh
# Setting default filter policy
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
Here be the rules
# Drop non-conforming traffic
iptables -A INPUT -j DROP
iptables -A OUTPUT -j DROP
There are two bad things in an example above:
- You are increasing chain length without achieving anything. Your default policy is already DROP. There is no need to add extra DROP at the end.
- You prevent quick updates to firewall policies. Appending chain from the command line will add entry at the bottom, AFTER drop statements. This will, in turn, make updates useless, because packet traversing chain will be dropped, before reaching my latest additions.
I spent good hour today chasing wind (tcpdumping...) in the fields...
If nobody can answer your question posted to Stack Overflow, does that mean that:
- It's impossible?
- You are using bleeding edge stuff?
- Your question is stupid?
And now for something completely different! Recipe taken from MomsWhoThink. I'm copying it here just in case I can't find it later.
Pastry for 2 crusts (recipe below)
8 cups sliced, peeled assorted baking apples - about 3 lbs. (Granny Smith, Cortland, Jonathan) I used Pink Lady.
2 Tablespoons lemon juice I used natural lemon
3/4 cup white sugar
1/4 cup brown sugar
1/4 cup all-purpose flour
1 teaspoon ground cinnamon
1/4 teaspoon ground nutmeg
2 Tablespoons butter
1 egg yolk
1 Tablespoon milk
1. In a large bowl, toss the sliced apples with lemon juice.
2. Combine sugars, flour, cinnamon and nutmeg; add to apples and toss well to coat.
3. Fill pastry lined 9 inch pie pan with apple mixture. Dot with butter. Forgot butter, but did not affect final product.
4. Place second crust on top of pie filling, cut slits in top of crust to vent. Seal the edges of the crust with a fork or by hand.
5. In a small bowl, beat the egg yolk and milk. Brush mixture over top crust.
6. Bake at 425 degrees F for 15 minutes. I started at 250 C for 15 min. Convection mode used.
7. Reduce heat to 350 degrees F and bake 40-45 minutes more or until crust is golden and filling is bubbly. I baked for 45 mins at 175 C in convection mode.
Flaky Pastry Pie Crust Recipe
Makes two 9-inch pie crusts
2 1/2 cups all-purpose flour
1/2 teaspoon salt
1 cup butter, chilled and diced
1/2 cup ice water
1. Combine the flour and salt in a large bowl.
2. Cut in the butter until the mixture resembles coarse crumbs.
3. Stir in the ice water, a Tablespoon at a time, until the crust mixture forms a ball.
4. Wrap dough in plastic wrap and refrigerate for 4 hours or overnight. 4 hours was enough.
5. Sprinkle flour onto rolling surface. Roll dough out, then divide in half. Roll each half to fit a 9-inch pie plate.
6. Place crust in pie plate, pressing evenly into the bottom and sides.
One thing lead to another and I am back in Uni... There might be a bit less of my attention to this blog now. At least until I settle down and start working on projects again.