LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2004, 06:14 PM   #1
meks
Member
 
Registered: Jul 2003
Location: AT, Upper Austria
Posts: 33

Rep: Reputation: 15
iptables packet marking


hi

i have a short question regarding iptables' packet marking ability:

if i have the following two rules set occuring in a row, which one takes precedence?

iptables -t mangle -A FORWARD -j MARK --set-mark 0 -i ppp0 -o eth1
iptables -t mangle -A FORWARD -j MARK --set-mark 1 -i ppp0 -o eth1 -d 10.147.1.0/24

understand me, i got a packet which is destined for 10.147.1.1. therefore, both rules will apply. first, the packet is being marked with 0x00, the second rule marks the same packet with 0x01 - is this the way its goin?

or may the packet only be marked once? which means, after marking it with 0x00, the second rule will be processed, but does not change the mark?


hmm hmm hmm.... ;-)

tia
meks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Per-program packet filtering with iptables? tumbelo Linux - Security 1 08-01-2005 11:53 PM
iptables and marking TCP traffic originating within theshoe Linux - Networking 9 07-26-2005 12:20 PM
iptables packet logging netguy2000 Linux - Networking 2 12-24-2004 04:29 AM
How does iptables handle packet ? mrpc_cambodia Linux - Security 3 07-24-2004 05:25 AM
iptables: packet priority LiquidKernel Linux - Networking 1 04-23-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration