var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Block one IP > mail
Anyone know how to block one specific IP
So that my box couldn't send Email to that IP
By PHP mail(); or SMTP ?
Is APF -d IP enough?
Thx in advice.
use iptables to block all outgoing traffic to the specific IP
i did even ping to IP doesnt work
that will do trick?
If you configured IPTables correctly for this, then yes, that is all you need.
Well to be honest I don't use iptables, i Use APF to block traffic.
But i get APF uses iptables.
I got in/out traffic blocked to IP that i wanted by adding
APF -d IPadress
i wonder if it is enough?
run the commands below in your server command prompt.
/sbin/iptables -A OUTPUT -p tcp -i eth0 -s x.x.x.x --dport 25 -j DROP
replace the x.x.x.x with the IP address that you want to block.
Thanks Mike but i did remove -i eth0 bcoz Iptables told me to.
Hey friend, It's fine
apf uses iptables, it's just an easier interface to iptables. So if you've blocked the site with "apf -d" and you can't ping it, the site will be cut off.
If you really want to test it, try "telnet 18.104.22.168 25" where 22.214.171.124 is the IP you blocked; if it times out, then you know you've cut it off successfully. If you want to be even smarter, you could try turning iptables off.
yes that will work fine.
Originally Posted by
By ariopp in forum Web Hosting
Last Post: 02-15-2009, 06:21 PM
By marekc in forum Hosting Security and Technology
Last Post: 12-13-2008, 02:41 AM
By Saryooo in forum Hosting Security and Technology
Last Post: 05-28-2007, 04:37 AM
By sytker in forum Hosting Security and Technology
Last Post: 06-23-2006, 02:05 PM
By r2tech in forum Dedicated Server
Last Post: 05-28-2005, 01:35 AM