I have a typical requirement, I want to have a converter module, that can convert UDP packet to TCP packet. And I need to do it before the packet can be processed in IP layer.
I will explain this complete scenario using an example
Lets say we have 3 machines A, B and C.
A sent an UDP packet
B received UDP packet
At B, when packet is being given to IP layer (from Link / MAC / Ethernet layer) , I want to get hold of packet. I want to delete the UDP and IP header in packet. I want to add TCP and IP header (assuming C is the destination host).
Now from B machine, packet is sent to C machine
Can somebody help me how this can be done. I am using linux machines.
Though libpcap can be one of the option (from wireshark), but it is not suitable for me because of performance reasons. I want a very light weight solution for this problem.
How to mangle a packet(Qos) using iptables before packet is deliver out.
I successfully ip -Q 33 192.168.100.11 and capture QoS at the receiver end using wireShark
I am implementing a new protocol in NS2.
I stucked at a point. kindly help me.
Is it possible to make two different type of packets(containing different headers) in the same simulation
In my protocol there are two types of struct header { } . At few instances i want to use one and at other instances want to use another.One of the structure has very less fields compared to other so this would reduce the size of packet i'm sending.
Is it possible ? and if yes then how to implement that?
I'm trying to find out if Iptables supports creating jitter, like it does for packet loss. I'm using 'iptables -A INPUT -m statistic --mode random --probability 0.02 -j DROP' to simulate packet loss, but can I do something similar to create jitter? I think TC will do it, but our firmware does not support it. If there is an alternate solution, any advice would be greatly appreciated.
One patch will add changes to some files, say
common/packet.h queue/priqueue.h queue/priqueue.cc
tcl/lib/ns-lib.tcl tcl/lib/ns-default.tcl tcl/lib/ns-packet.tcl .
And the next patch may undo those first changes,
and even add something that conflicts with
the functions intended in the first patch.
A few patches are meant to live together.
Or at least have no conflicts.
Most others not.
-
I don't konw above. Help me
Hello! I hope this post get's in the right place, cause I'm a newbie @ Linux
I'm trying to set up a Webserver, apache. And I'm confused which chain to set in IPTables. I hope'd someone could answer me a little more in detail, I've tryed googeling, but the answers were quite confusing for me, anyway here are the statement;
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
and
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
A know that that -A INPUT is for incoming packaes, -p specifies protocol TCP. But I'm unsure what -m does? Cause in the first line it is just "-m tcp" and in the second it is "-m state --state". So if someone could explant the diffrence and which one to use, I would be grateful.
And another question while I'm at it; In the start of IPTables I have;
-A INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
What happens if I get a packet destined for some service, that isn't a chain in IPTables? Take port 80 for example, will IPTables accept the packet, but drop it at the end because there isn't any hit? If you understand what I mean. If -A INPUT would be DENY istead of ACCEPT, would the packet never ever get examined further then the first line?
Almost and the bottom of IPTables ther is a line;
-A INPUT -j REJECT --reject-with icmp-host-prohibited
Is it the chain that will be matched if there is not hit prior to it? What would happen if this line wasn't there?
Thank you very much for your help, I'm just wanna be sure little how IPTables work.
Best Regards; Stefan
Can someone please help me to install Gartoon Redux 1.11 icons on my laptop? I already downloaded the file, but I'm having trouble getting the packet to be install. So if someone could help that would be great.
So far I've try the follwing to install the packet,
Downloals/Gartoon Redux 1.11/./configure
Downloads.Gartoon Redux 1.11/./configure make
Information about my system:
I'm running puppy linix Tahrpup 6.0
Thank you for your help
Hiii.. i am going to integrate the zrp in ns2.35 and facing the error.... plz help me to remove this error....
trace/cmu-trace.o: In function `hdr_zrp::access(Packet const*)':
cmu-trace.cc.text._ZN7hdr_zrp6accessEPK6Packet[hdr_zrp::access(Packet const*)]+0x7): undefined reference to `hdr_zrp:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Dear Friends ,
I have to configure rsyslog server with few clients . But I am confused to configure rsyslog on the client end properly . From my client side I want to get the Network Packet flow information o my syslog server .
How can I do it ?
My second ques :
what is difference between 'syslog' and 'rsyslog' ?
And If I use rsyslog as server , then can I use syslog as client?
Waiting for kind reply . ..
Hi , i desinstall ns2.34 and i want to reinstall again so i was follow your step
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < lwx+LTE+dccp+MPTCP.patch
$ export CC=gcc41 CXX=g++41 && ./install
and with this patch i add another patch for wimax "wimax-awg26_ns235.patch"
but when i install ns2.34 this erreur was showen
common/packet.h: In static member function ‘static void p_info::initName()’:
common/packet.h:402: error: ‘PT_WIMAXBS’ was not declared in this scope
make: *** [common/scheduler.o] Error 1
Ns make failed!
can you tell me where is the problem ???
Dear Forumners,
I have implemented as Asterisk solution on two seperate servers and trunked them with IAX2 trunk.
Every morning the servers have to be restarted in order for the trunk to work.
One of the messages I got from the logs is:
Packet too short or invalid while reading response record. (Maybe an UTF8 problem?)
I will be grateful if any forumner can offer me the necessary assistance.
Michael