Phreld not detecting right ip

Support issues for PHREL, the Per Host RatE Limiter.

Phreld not detecting right ip

Postby s1cr0n » Fri Sep 24, 2010 5:36 pm

Hello,

I'm trying to use phreld inside an openvz virtualized container.

I've compiled:
phrel-20080211 snapshot, phreld v0.9.6
libpcap version 0.9.4

everyting went fine, compiled without error, and then I'm starting the daemon with the following parameters:

phreld -T 160:80 -T 280:0 -R 100 -A avg -i 3 -c 3 -s 10 -D 900

This is what I got in messages:


Code: Select all
Sep 24 19:26:57 srv1 phreld[24010]: phreld v0.9.6
Sep 24 19:26:57 srv1 phreld[24010]: libpcap version 0.9.4
Sep 24 19:26:57 srv1 phreld[24010]: starting to monitor traffic
Sep 24 19:26:57 srv1 phreld[24010]: inserting chain phreld-sync-check-24010
Sep 24 19:27:16 srv1 phreld[24010]: SIGTERM/SIGINT - exiting
Sep 24 19:27:16 srv1 phreld[24010]: select() - Interrupted system call
Sep 24 19:27:16 srv1 phreld[24010]: stopped monitoring traffic
Sep 24 19:27:16 srv1 phreld[24010]: deleting chain phreld-sync-check-24010
Sep 24 19:27:16 srv1 phreld[24010]: add: 34925  del: 8860  col: 5922 (17.0%)  width: 75011  depth: 0.3 avg, 4 max, 2898 two, 19516 one, 52350 zero
Sep 24 19:27:27 srv1 phreld[24098]: phreld v0.9.6
Sep 24 19:27:27 srv1 phreld[24098]: libpcap version 0.9.4
Sep 24 19:27:27 srv1 phreld[24098]: starting to monitor traffic
Sep 24 19:27:27 srv1 phreld[24098]: inserting chain phreld-sync-check-24098


Then comes the detection part:

Code: Select all
Sep 24 19:27:27 srv1 phreld[24098]: inserting chain phreld-sync-check-24098
Sep 24 19:31:24 srv1 phreld[24098]: changing threshold for 44.108.194.105 from 0 to 280 (pps 846, rate 0, burst 5, decay 900)
Sep 24 19:31:24 srv1 phreld[24098]: inserting chain 44.108.194.105-280-24098


However, the detected ip is not the one from witch I'm sending the traffic.

But tcpdump, using the same libpcap is detecting the source just fine.

The distro that I'm using is CentOS 5.5

Any idea why ?

I would really apreciate any help.

Thank you in advance,
Mike.
s1cr0n
 
Posts: 2
Joined: Fri Sep 24, 2010 5:24 pm

Re: Phreld not detecting right ip

Postby s1cr0n » Thu Sep 30, 2010 6:22 pm

I think it's because of this: http://wiki.openvz.org/Differences_betw ... t_and_veth

Feature veth venet
Taffic sniffing Yes No

Can be used the same technique to properly detect traffic as tcpdump does on venet ?
s1cr0n
 
Posts: 2
Joined: Fri Sep 24, 2010 5:24 pm

Re: Phreld not detecting right ip

Postby sella » Sun Mar 06, 2011 2:12 am

Wish I could help, but I don't have access to an openvz system to see what's happening. It could well be due to the interface driver, but I'd expect to see tcpdump fail as well. Both tcpdump and PHREL use libpcap internally.
User avatar
sella
Site Admin
 
Posts: 81
Joined: Sat Jan 17, 2004 6:53 pm
Location: Denver, CO


Return to PHREL

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron