Re[2]: [LARTC] proxyremap

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Christian,

CWM> Hi,

>> linux:/usr/local/wipl # linux:/usr/local/wipl # ./run_proxyremap

CWM> You forgot to show us what is in your run_proxyremap file.
sorry.
my run_proxyremap file:
--cut---
/usr/local/squid/squid.stop
/usr/local/squid/squid.start &
/usr/local/sbin/proxyremap --pipe /usr/local/squid/logs/foo \
   --wipl /usr/local/wipl/daemon --debug
--cut---
my /usr/local/squid/squid.start :
--cut---
sleep 1
/etc/rc.d/init.d/squid start
--cut---

to monitor:
--cut---
wiplc --daemon /usr/local/wipl/daemon --zero --periodlen 4 --starttime 2   \
   --format html --outfile $web                      \
   "mac"                                                   \
   "ip4"                                                   \
   "(Send,5,1,KB/s,(d(0,0)-d(0,6))/(t(0)-t(6)) >> 10)" \
   "(Recv,5,1,KB/s,(d(1,0)-d(1,6))/(t(0)-t(6)) >> 10)" &
--cut---
my /etc/wipld.conf:
--cut---
[counters]
Send
Recv

[options]
filter: ip
addrmode: mac
maxentries: 1024
proxymaxcon: 200
logfile: /usr/local/wipl/log
daemonfile: /usr/local/wipl/daemon

[program]
if(dstmac==00:80:AD:1B:96:B8 && dstip!=10.0.0.1 && )
    srcmac[0]+=size;
else if(srcmac==00:80:AD:1B:96:B8 && srcip!=10.0.0.1)
    dstmac[1]+=size;
--cut---

>> Connecing to clients:

CWM> There should be a line for wipl here.

>> Opens files and reads welcome messages:
>>   /usr/local/squid/logs/foo
>> Starting WWW-proxy squid:
CWM> done

Saludos,

Fabian





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux