I figured it out. SER apparently uses strict sub netting. A /27 is 32 IP's
and 80 is not evenly divisible by 32. I changed it to /28 which is 16 IP's
and since 80/16 = 5 with no remainder it now works. It would be nice if SER
didn't have that limitation but its not that big of a deal because I can
just put an || in the if statement.
Thanks!
----------------------------------------
Michael Shuler, C.E.O.
BitWise Communications, Inc. (CLEC) And BitWise Systems, Inc. (ISP)
682 High Point Lane
East Peoria, IL 61611
Office: (217) 585-0357
Cell: (309) 657-6365
Fax: (309) 213-3500
E-Mail: mike(a)bwsys.net
Customer Service: (877) 976-0711
-----Original Message-----
From: Andrei Pelinescu-Onciul
[mailto:pelinescu-onciul@fokus.fraunhofer.de]
Sent: Sunday, September 26, 2004 3:14 AM
To: Michael Shuler
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Src_ip matching
On Sep 25, 2004 at 16:45, Michael Shuler <mike(a)bwsys.net> wrote:
I have the statement:
If(src_ip == 192.168.1.80/27)
{
# Do something cool
}
Else
{
# Don't do something cool
};
When the src_ip (which I verified by xlog) is 192.168.1.85
it doesn't match
and goes to the else code. Am I doing something
wrong?
This is on 0.8.14.
It should work (I've just checked it).
Try to make a small config containing only this "if", and send me the
output of
./ser -ddddddddddd -c -D -E -f config_name.cfg
Andrei