Alexander Clouter wrote:
> Hi,
>
> On 2005-07-16, Jomu <(E-Mail Removed)> wrote:
> > Hi... Two questions,
> >
> > 1. Can I make "iptables compatible" mark from application? If yes, how?
> >
> Specififing by application is not possible, that I know of but you might
> be able to get a good effect if you use the 'owner' match and dport/sport
> options. I assume that there is something common about the network activity
> that you could identify with iptables (web browsers 99% of the time connect
> to port 80, etc etc) and then you can use the 'owner' matching rule to match
> which user on the machine made that request. This might do what you need.
This I understand, but I would like to mark _from_ application -
meaning to patch application to mark what I need, but I don't know if
it's possible, and how... Maybe to manipulate TOS field and so expedite
some traffic... Hmm, thinking about that... TOS _would_ be passed along
the way and I can make my QoS decision bassed on source host _and_
TOS... Time to google for setsockopt+TOS...
>
> > 2. Is this mark passed over LAN? IE, can I make decision on box B based
> > on mark made by application on box A?
> >
> Not with MARK, but if you use the DSCP field for your own purposes you might
> have some luck.
>
I've glimpsed google with DSCP... Looks like it's replacement/renamed
TOS?
> Regards
>
> Alex
>
> > Thanks
> >
TA,
dd
|