Help - Search - Members - Calendar
Full Version: Iptables
The Planet Forums > Security > General Security
solokron
I have...
DROP all -- 221.0.0.0/8 0.0.0.0/0

listed in my Iptables. This blocks out a large portion of China. I have a customer that communicates with a developer in China. How can I add his IP without disturbing the existing drop rule?

I am using APF and it does not have this Iptable rule in the deny list. I suspect it is pulling it from DShield.org

I have added it to the allow list in APF.
Azhrarn
Well I don't know how APF does things, but iptables goes in order of the rules added.

So if you added a specific allow rule before the drop rules then the person would be allowed through. If it gets entered after the DROP rule, then it will never get that far.

Looking at `iptables -L` will show you the order of the rules. You can move them around and insert rules at arbitrary positions, but if APF rewrites them, then you will have to keep modding it, or modify it to do explicit allows before explicit drops.
TheLinuxGuy
/etc/apf/apf -a ip


i think thats the allow command
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.