Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Blocking hosts

I havent been able to block ip's from contacting my server, anyone have an idea?

I defined the ip i want to block

i've tried packet filter

block_ip   any   any   drop

i also tried deny and made no difference

the only packetfilter rule i currently have is 
private networks - RFC1918 any any allow for masquerading

I have tried

iptables -A AUTO_INPUT -s 123.456.789.321 -j DROP
and
iptables -A INPUT 123.456.789.321 -j DROP

with no success

all i need is to know where to add a rule to block a host from all contack preferably a command line response because that is how i want to add this rule from a seaperate program

thanks

[ 16 January 2002: Message edited by: Boltz ]



This thread was automatically locked due to age.
Parents
  • when you activate your rule this host can't access clients behind your firewall, right?

    when you just want to send no ping anwers, disable icmp on firewall (Packetfilter->ICMP)
  • no not really i want to block a host from the external interface IP

    stopping that ip from contacting my firewall at all

    i want to do this manually and none of the manual iptables commands i put work

    i would like someone to show an example of how to block an ip from contacting the external firewall
    in either the GUI or the manual ipchains command line or both
Reply
  • no not really i want to block a host from the external interface IP

    stopping that ip from contacting my firewall at all

    i want to do this manually and none of the manual iptables commands i put work

    i would like someone to show an example of how to block an ip from contacting the external firewall
    in either the GUI or the manual ipchains command line or both
Children