netfilter-devel digest, Vol 1 #1166 - 6 msgs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Why not connction track dose not track tcp protocol session wiht seq number?
If it dose not track the tcp seq number, so Hacker maybe spoofing the session.
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Sunday, July 04, 2004 12:27 PM
Subject: netfilter-devel digest, Vol 1 #1166 - 6 msgs
Quoted 35 lines
Send netfilter-devel mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
https://lists.netfilter.org/mailman/listinfo/netfilter-devel
or, via email, send a message with subject or body 'help' to [email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of netfilter-devel digest..."
Today's Topics:
1. RE: information (Muhammad R. Sami)
2. RE: information (Henrik Nordstrom)
3. RE: information (Muhammad R. Sami)
4. RE: information (Henrik Nordstrom)
5. RE: information (Muhammad R. Sami)
6. RE: information (Muhammad R. Sami)--__--__--
Message: 1
From: "Muhammad R. Sami" <[email protected]>
To: "'Henrik Nordstrom'" <[email protected]>
Cc: "'Babar Qaisrani'" <[email protected]>,
"'Netfilter List'" <[email protected]>
Subject: RE: information
Date: Sat, 3 Jul 2004 11:18:45 +0300
X-Virus: 1
Quoted 1 line
Yes, I mean to say the verdict. Now I am a bit confused. Is not the
verdict
Quoted 1 line
enough to tell the kernel what to do with the packets? If yes, then it
does
Quoted 22 lines
not work with me more than once.
Muhammad R. Sami
Research Assistant,
Computer Engineering Department
P.O.Box 354
King Fahd University of Petroleum & Minerals
Dhahran 31261
Saudi Arabia.
Tel: +96638601423
Cell: +96657982951
www.ccse.kfupm.edu.sa/sami-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Henrik Nordstrom
Sent: Saturday, July 03, 2004 4:08 AM
To: Muhammad R. Sami
Cc: 'Babar Qaisrani'; Netfilter List
Subject: RE: information
Quoted 3 lines
Quoted 1 line · Muhammad R. Sami
I got the libipq/QUEUE part working but the problem is that it only
works
Quoted 2 lines
Quoted 2 lines
for the first time. For example, if I want to drop all icmp packets, it will, but if I change the nfmark from drop to accept and then recompile
my
Quoted 35 lines
Quoted 1 line
libipq program, it does not work and the dropping policy is maintained.
Same
Quoted 1 line
for the other way around.
Please explain what you refer to by "change the nfmark from drop to accept".
nfmark does not have a concept of drop/accept, just value.
Is you perhaps speaking about the verdict set by the userspace telling if the packet should be accepted (passed on to next hook) or dropped? This is just a verdict and not related to nfmark.
Regards
Henrik--__--__--
Message: 2
Date: Sat, 3 Jul 2004 10:56:34 +0200 (CEST)
X-Virus: 1
From: Henrik Nordstrom <[email protected]>
To: "Muhammad R. Sami" <[email protected]>
cc: "'Babar Qaisrani'" <[email protected]>,
"'Netfilter List'" <[email protected]>
Subject: RE: information
Quoted 3 lines
Quoted 1 line · Muhammad R. Sami
Yes, I mean to say the verdict. Now I am a bit confused. Is not the
verdict
Quoted 1 line
Quoted 1 line
enough to tell the kernel what to do with the packets? If yes, then it
does
Quoted 32 lines
Quoted 1 line
not work with me more than once.
The verdict tells what to do with the packet in this hook (PREROUTING/FORWARD/POSTROUTING etc). Only if the verdirct is
NF_ACCEPTis the packet accepted by this hook.Why it only works "once" for you I do not know. Maybe if you describe in full details what you mean by "once" we can find some hint to what is going wrong.
It is only that your talk about nfmark made me a little confused. nfmark is not related to the verdict. See the MARK target and/or linux advaced routing howto for more info on nfmark in case you want to learn more what the nfmark is and how it may be used. But it is not related to your problem.
Regards
Henrik--__--__--
Message: 3
From: "Muhammad R. Sami" <[email protected]>
To: "'Henrik Nordstrom'" <[email protected]>
Cc: "'Babar Qaisrani'" <[email protected]>,
"'Netfilter List'" <[email protected]>
Subject: RE: information
Date: Sat, 3 Jul 2004 12:10:18 +0300
X-Virus: 1
Quoted 2 lines
Thanks for your help, I simply want to QUEUE packets to the libipq application and then through verdict accept or drop them. Sorry for
creating
Quoted 3 lines
the confusion by using "nfmark" in my emails. Right now my work does not require nfmark at all.
Now what I mean by "once" is that whenever I queue a specific flow of
packet
Quoted 4 lines
to the libipq program and for example set the verdict to DROP, it works fine. But if I change the verdict to ACCEPT and recompile my program, the box still drops the packets. On the other hand if I ACCEPT the packets first, they will always be accepted even after changing the verdict to
DROP.
Quoted 92 lines
In short, whatever verdict I set the first time seems to be there always despite the fact that I change the verdict and recompile the program. Regards,
Muhammad R. Sami
Research Assistant,
Computer Engineering Department
P.O.Box 354
King Fahd University of Petroleum & Minerals
Dhahran 31261
Saudi Arabia.
Tel: +96638601423
Cell: +96657982951
www.ccse.kfupm.edu.sa/sami-----Original Message-----
From: Henrik Nordstrom [mailto:[email protected]]
Sent: Saturday, July 03, 2004 11:57 AM
To: Muhammad R. Sami
Cc: 'Babar Qaisrani'; 'Netfilter List'
Subject: RE: informationQuoted 1 line · Muhammad R. Sami
Yes, I mean to say the verdict. Now I am a bit confused. Is not the
verdict
Quoted 1 line
enough to tell the kernel what to do with the packets? If yes, then it
does
Quoted 1 line
not work with me more than once.
The verdict tells what to do with the packet in this hook (PREROUTING/FORWARD/POSTROUTING etc). Only if the verdirct is
NF_ACCEPTis the packet accepted by this hook.Why it only works "once" for you I do not know. Maybe if you describe in full details what you mean by "once" we can find some hint to what is going wrong.
It is only that your talk about nfmark made me a little confused. nfmark is not related to the verdict. See the MARK target and/or linux advaced routing howto for more info on nfmark in case you want to learn more what the nfmark is and how it may be used. But it is not related to your problem.
Regards
Henrik--__--__--
Message: 4
Date: Sat, 3 Jul 2004 14:16:48 +0200 (CEST)
X-Virus: 1
From: Henrik Nordstrom <[email protected]>
To: "Muhammad R. Sami" <[email protected]>
cc: "'Babar Qaisrani'" <[email protected]>,
"'Netfilter List'" <[email protected]>
Subject: RE: informationQuoted 4 lines · Muhammad R. Sami
Now what I mean by "once" is that whenever I queue a specific flow of packet to the libipq program and for example set the verdict to DROP, it works fine. But if I change the verdict to ACCEPT and recompile my program, the box still drops the packets.
Have you restarted your application?
Are you positively sure you restarted the recompiled binary?
From where are you invoking the QUEUE target?
What does your ruleset (in iptables) look like?
Regards
Henrik--__--__--
Message: 5
From: "Muhammad R. Sami" <[email protected]>
To: "Netfilter List" <[email protected]>
Subject: RE: information
Date: Sat, 3 Jul 2004 17:33:25 +0300
X-Virus: 1
Quoted 2 lines
What do you exactly mean by "restarting". I just recompile my .c file that generates a .out file and that's it. Do I have to make an exe or binary
from
Quoted 2 lines
it or what?
I invoke the QUEUE target from the iptables commands and it looks
something
Quoted 54 lines
like this
iptables -A OUTPUT -p icmp -j QUEUE
Muhammad R. Sami
Research Assistant,
Computer Engineering Department
P.O.Box 354
King Fahd University of Petroleum & Minerals
Dhahran 31261
Saudi Arabia.
Tel: +96638601423
Cell: +96657982951
www.ccse.kfupm.edu.sa/sami-----Original Message-----
From: Henrik Nordstrom [mailto:[email protected]]
Sent: Saturday, July 03, 2004 3:17 PM
To: Muhammad R. Sami
Cc: 'Babar Qaisrani'; 'Netfilter List'
Subject: RE: informationQuoted 4 lines · Muhammad R. Sami
Now what I mean by "once" is that whenever I queue a specific flow of packet to the libipq program and for example set the verdict to DROP, it works fine. But if I change the verdict to ACCEPT and recompile my program, the box still drops the packets.
Have you restarted your application?
Are you positively sure you restarted the recompiled binary?
From where are you invoking the QUEUE target?
What does your ruleset (in iptables) look like?
Regards
Henrik--__--__--
Message: 6
From: "Muhammad R. Sami" <[email protected]>
To: "'Henrik Nordstrom'" <[email protected]>
Cc: "Netfilter List" <[email protected]>
Subject: RE: information
Date: Sat, 3 Jul 2004 20:26:55 +0300
X-Virus: 1
Quoted 1 line
What do you exactly mean by "stopping" because I don't even start
anything,
Quoted 6 lines
I just compile the code and that is it, and that is what I do every time I change the code (
set_verdict). As far as the iptables rule, I was simply testing the rule in the manpage example but for my work I have to queue packets at the INPUT.
Another interesting thing I just faced was that although the iptables_filter.o and ip_queue.o files are present in my Netfilter
directory
Quoted 1 line
(as they were compiled with the kernel), whenever I run the command
modprobe
Quoted 1 line
iptables_filterand modprobeip_queue, it says FATAL: module not found.
When
Quoted 1 line
I run the insmod module name it say "invalid module format". Really
lost!!!
Quoted 13 lines
Regards,
Muhammad R. Sami
Research Assistant,
Computer Engineering Department
P.O.Box 354
King Fahd University of Petroleum & Minerals
Dhahran 31261
Saudi Arabia.
Tel: +96638601423
Cell: +96657982951
www.ccse.kfupm.edu.sa/sami
Quoted 9 lines
-----Original Message-----
From: Henrik Nordstrom [mailto:[email protected]]
Sent: Saturday, July 03, 2004 5:46 PM
To: Muhammad R. Sami
Subject: RE: informationQuoted 1 line · Muhammad R. Sami
What do you exactly mean by "restarting". I just recompile my .c file
that
Quoted 32 lines
Quoted 1 line
generates a .out file and that's it. Do I have to make an exe or binary
from
Quoted 1 line
it or what?
No, but you have to stop the old binary and start the new one...
Quoted 1 line
I invoke the QUEUE target from the iptables commands and it looks
something
Quoted 3 lines
like this
iptables -A OUTPUT -p icmp -j QUEUE
Any other OUTPUT rules before this?
Regards
Henrik--__--__--
_______________________________________________
netfilter-devel mailing list
[email protected]
https://lists.netfilter.org/mailman/listinfo/netfilter-develEnd of netfilter-devel Digest
Re: Tracking TCP sequence numbers
Quoted 1 line · linkai
Why not connction track dose not track tcp protocol session wiht seq number?
See tcp-window-tracking in patch-o-matic-ng
Regards
Henrik