OpenVZ Forum


Home » General » Support » how to block an ip from all VE's
how to block an ip from all VE's [message #28111] Sun, 09 March 2008 12:05 Go to next message
sara3 is currently offline  sara3
Messages: 38
Registered: February 2008
Member
Hello
i have installed apf , iptables on the HN
when i ban an ip of HN with apf -d ip and iptables -I INPUT -p tcp -s ip -j DROP

i find the ip banned from the main HNM ip which the banned ip can still access and keep flooding any VE on the other ips

please advise
Re: how to block an ip from all VE's [message #28113 is a reply to message #28111] Sun, 09 March 2008 18:04 Go to previous messageGo to next message
ArsDangor is currently offline  ArsDangor
Messages: 6
Registered: March 2008
Junior Member
I'm a noob to OpenVZ, but I think you should also block that IP from the FORWARD table:
iptables -A FORWARD -s ip -j DROP

Cheers.


If all the world is a stage, I want better ligthting.
Re: how to block an ip from all VE's [message #28114 is a reply to message #28113] Sun, 09 March 2008 19:40 Go to previous messageGo to next message
sara3 is currently offline  sara3
Messages: 38
Registered: February 2008
Member
hi
thanks but sadly it didn't help Sad
Re: how to block an ip from all VE's [message #28337 is a reply to message #28114] Fri, 14 March 2008 10:14 Go to previous messageGo to next message
sara3 is currently offline  sara3
Messages: 38
Registered: February 2008
Member
Hello
your help in solving this issue is greatly important for me
thanks
Re: how to block an ip from all VE's [message #28361 is a reply to message #28337] Fri, 14 March 2008 16:44 Go to previous message
aTan is currently offline  aTan
Messages: 29
Registered: March 2008
Junior Member
iptables -I FORWARD -i veth0 -d banned_ip -j DROP
Previous Topic: load spikes to 150-290 on HN
Next Topic: Problem with connecting to VPS guess
Goto Forum:
  


Current Time: Sun Jul 14 11:43:52 GMT 2024

Total time taken to generate the page: 0.02336 seconds