Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Posts
    1,226

    trying to block IP

    hello

    I'm trying to block one user from accessing my server (FreeBSD) using
    ipfw add deny all from [IP] to any

    any ideas why it's not working?

  2. #2
    Join Date
    Nov 2003
    Location
    India
    Posts
    152
    Do you get any error when you issue the command to add the rule?

    if yes please paste the error over here.


    also check if there any rules that allow tcp above this rule

    or you can even try:

    ipfw add 1 deny all from [ip] to me

    As it will add the first rule to deny access to that ip.

    Hopefully it should fix your issue

    Regards

  3. #3
    Join Date
    May 2005
    Posts
    67
    Which version of FreeBSD are you running?

    What's your setup in rc.conf for ipfw?
    (ie. firewall_enable="YES") ?

    Is the command you are executing listed in the running rules?
    ipfw list

  4. #4
    Join Date
    Feb 2004
    Posts
    1,226
    it's FreeBSD 4.10
    thanks for the help, it has been fixed

    the problem, as sh3lls.net said, was the order of the rules

    choon helped me figuring this out too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •