Re: [tkined] "free tools for manipulating SNMP packets"

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 26 Nov 1999 13:49:37 +0100

>>>>> Davide Minervini writes:

Davide> Don't want to bother anyone so: I am looking for some hints to
Davide> write some scripts or a programme which can help me in
Davide> manipulating SNMP packets when they are about to be sent on IP
Davide> networks so at a low level. I need it to catch packets with a
Davide> particular destination address and chance the sender address
Davide> to a particular one so they get particular priorities given by
Davide> the net to that source address. Is there someone who can give
Davide> me a link to a site where I can find tcl or C/C++code which
Davide> does that or something similar or somehow useful at my
Davide> purposes ???

What you are trying to do is some kind of NAT. I do not know of any
Tcl API that allows you do to that (for good reasons). Also note that
you may end up with seriously confused manager applications if you do
things like this.

Anyway, what you need to do is to grab packets, hack them and
re-insert them into the network (probably with a facked IP and UDP
header). You will need root priviledges on serious operation systems
to do that.

I guess what I am saying is that you should think at least twice
whether there is really have no other solution to your problem before
implementing something like this.

/js

-- 
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.