[tcpdump-workers] Running TCPDUMP over a web interface

2011-08-14 Thread Tek Bahadur Limbu
Hi all,

I am not sure if this is a right list to post the following question.

I need to run TCPDUMP on a Linux bridge with multiple network interfaces.
However, instead of using a shell, I need to run it over a web interface.

Any guide or suggestion will be highly appreciated.


Thanking you...
Best regards,
Tek Bahadur Limbu
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Running TCPDUMP over a web interface

2011-09-08 Thread Tek Bahadur Limbu
Hi

On Wed, Aug 17, 2011 at 1:59 AM, Sanjay Sundaresan  wrote:
> web interface ? you can't SSH ?

I can SSH but I need to provide some kind of web interface for TCPDUMP
for tech support personnel.


Thanks
Tek

> On Sun, Aug 14, 2011 at 6:51 AM, Tek Bahadur Limbu  wrote:
>> Hi all,
>>
>> I am not sure if this is a right list to post the following question.
>>
>> I need to run TCPDUMP on a Linux bridge with multiple network interfaces.
>> However, instead of using a shell, I need to run it over a web interface.
>>
>> Any guide or suggestion will be highly appreciated.
>>
>>
>> Thanking you...
>> Best regards,
>> Tek Bahadur Limbu
>> -
>> This is the tcpdump-workers list.
>> Visit https://cod.sandelman.ca/ to unsubscribe.
>>
>
>
>
> --
> Sanjay Sundaresan
> Grad Student
> Viterbi School of Engineering, USC
> -
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
>
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Running TCPDUMP over a web interface

2011-09-17 Thread Tek Bahadur Limbu
Hi Guy Harris,

Thank you for the reply.

My goal is to have a web interface and capture traffic and print in on
the screen live but only when a certain command string is supplied.
As stated, I need that web interface to be run over a Linux bridge box.

For the time being, I only need this web tool to run the traffic dump
over the br0 interface of that bridge with something like the
following options:

 tcpdump -enn -i br0 vlan 999

Can you provide further information about how we can go about
implementing this setup?


Thanks,

Tek Bahadur Limbu




On Sat, Sep 10, 2011 at 4:44 AM, Guy Harris  wrote:
>
> On Aug 14, 2011, at 6:51 AM, Tek Bahadur Limbu wrote:
>
>> I need to run TCPDUMP on a Linux bridge with multiple network interfaces.
>> However, instead of using a shell, I need to run it over a web interface.
>
> Tcpdump can do a number of things - it can capture traffic and dissect and 
> print it, or it can capture it and save it into a pcap file for later 
> analysis with tcpdump or other tools.
>
> Which of those do you want to do?  Run it over a Web interface and watch the 
> display update with a display of dissected packets, run it over a Web 
> interface writing to a pcap file and, after you stop the capture, download 
> the pcap file, or both?  (The second of those would probably be easier to do 
> than the first of those.)-
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
>
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Running TCPDUMP over a web interface

2011-09-20 Thread Tek Bahadur Limbu
Dear All,

Thank you for your valuable feedback.

Is this setup were to be done or developed into a commercial product,
how much will the cost be like?


Best regards,
Tek Bahadur Limbu


On Mon, Sep 19, 2011 at 12:40 AM, Julius  wrote:
> Am 18.09.2011 19:01, schrieb Aaron Turner:
>>
>> On Sun, Sep 18, 2011 at 9:13 AM, harish badrinath
>>   wrote:
>>>>
>>>> On Sep 17, 2011, at 1:54 AM, Tek Bahadur Limbu wrote:
>>>>
>>>>> Can you provide further information about how we can go about
>>>>> implementing this setup?
>>>
>>> These are the steps i would follow
>>> (a) First look for a MVC web framework for the language of your choice
>>> If you end up with goahead or microhttpd you would be left with C or
>>> Something like that,
>>> so look for CGIC or a library with similar/more functionality.
>>> (b) Build the UI in HTML+CSS
>>> (c) Make the UI call cgi scripts and/or special URL your web framework
>>> would provide
>>> (d) Test and deploy.
>>>
>>> IMHO you could get better help/suggestions/answers asking in Ruby on
>>> rails or catalyst or django community’s dev-help channel(s).
>>>
>>> If the webserver you deploy with, cant easily handle standard web
>>> frameworks (eg: given above) you would have to tinker with them to
>>> work with the webserver in question, or write your own.
>>
>> He doesn't need to learn a MVC framework... he could write a simple
>> CGI with a little Ajax to have something perfectly useful in a couple
>> of hours.
>>
>> Seriously, just pick up a book on CGI programming in Perl or whatever
>> scripting language of choice or ask someone who has taken a web
>> programming course in college.  This isn't a "hard" problem or
>> specific in any way to tcpdump, it's a pretty simple web programming
>> problem.
>>
>> The only tricky bit is tcpdump needs to run as root and most
>> webservers don't run CGI's as root for security reasons.  The easiest
>> thing is just suid root the tcpdump binary to fix that.  Note: that
>> this has security implications so you may not want to do this on a
>> multi-user system.  Hence I'd copy tcpdump to a special location and
>> do:
>>
>> cp tcpdump tcpdump.root
>> chmod 750 tcpdump.root
>> chown root tcpdump.root
>> chmod u+s tcpdump.root
>> chgrp tcpdump tcpdump.root
>>
>> and then anyone in the 'tcpdump' group can run the tcpdump.root binary
>> without needing to be root.
>>
>>
>
> this can be done with twisted/nevow in python.
>
> -


> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
>
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.