Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables CONNMARK questions

Reply
Thread Tools Display Modes

iptables CONNMARK questions

 
 
buck
Guest
Posts: n/a

 
      07-22-2006, 11:24 AM
I want to set a mark to act on in the INPUT chain.

iptables -t mangle -A PREROUTING -p tcp --sport $HI_PORTS \
--dport 80 -j CONNMARK --restore-mark

1) I know 1023 is a priviledged port and 1025 is not. What is the
case for 1024?
2) is PREROUTING the right chain? Why or why not?
MEMO: Packet count = 7034

iptables -t mangle -A PREROUTING -p tcp -m mark ! --mark 0 \
-j ACCEPT

3) ACCEPT or RETURN? Why?
4) Does this rule need --sport and --dport?
5) The packet count = 6655 which I think is far too many. Why?

iptables -t mangle -A PREROUTING $MATCH_THIS -j MARK \
--set-mark 0x1
MEMO: Packet count = 10

iptables -t mangle -A PREROUTING -p tcp -m mark ! --mark 0 \
-j CONNMARK --save-mark

6) Does this _really_ cause the entire connection to be marked or just
the packets that match $MATCH_THIS? If it only matches the
$MATCH_THIS packets, is there a way to mark the entire connection?
MEMO: Packet count = 10

Thanks for any help!
--
buck
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem setting connmark with ip6tables Washington Ratso Linux Networking 1 07-19-2011 04:41 PM
Questions related to iptables command jeniffer Linux Networking 5 11-08-2006 11:52 AM
2.4.32+CONNMARK support Piotr Linux Networking 0 08-08-2006 12:43 PM
Two QoS/iptables related questions Jomu Linux Networking 3 07-17-2005 08:23 AM
Looking for iptables applications code (iptables.c) to run some rules to forward packets tvnaidu@yahoo.com Linux Networking 2 01-17-2005 05:01 PM



1 2 3 4 5 6 7 8 9 10 11