LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Question about a iptables rule? (https://www.linuxquestions.org/questions/linux-security-4/question-about-a-iptables-rule-384083/)

rjw1678 11-17-2005 02:41 PM

Question about a iptables rule?
 
Every time enter the following rule (thru a konsole session):

iptables -A INPUT -m iprange ! --src-range 4.79.142.192-4.79.142.207 -j LOG

iptables displays "hoho". The rule seems to work I do not want to log packets from grc.com (Gibson Research) which works and it logs all the other packets that I want it to log.

I am wondering what the "hoho" is.

Thank You
Bob W

twsnnva 11-17-2005 06:27 PM

From the iprange source code:

Code:

if (invert) {
        info->flags |= IPRANGE_SRC_INV;
        printf("hoho\n");
}

It seems when you invert the souce range (!) it just prints hoho for the heck of it.

rjw1678 11-18-2005 07:46 AM

Thank you for your reply.

Bob W.


All times are GMT -5. The time now is 10:40 AM.