Search squid archive

Is it possible to mark tcp_outgoing_mark (server side) with SAME MARK as incoming packet (client side)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I would like to mark outgoing packet (on server side) with SAME MARK as on incoming (NATed or CONNECTed) packet.

There is option tcp_outgoing_mark with which I can mark packets.

But there is no ACL option to check incoming mark.


If there is already a way to do this then please guide.


Otherwise I would like to suggest:

Option 1)
-----------


Syntax: tcp_outgoing_mark SAMEMARK [!]aclname

where SAMEMARK is special (literal) word where acl matching are applied same mark as on incoming packet.

For e.g I can do:

tcp_outgoing_mark SAMEMARK all

And all packets will be applied same mark as incoming packet mark.


Option 2)
-----------


Have an acl:

Syntax: acl aclname nfmark mark-value


Then I can do something like this:

acl mark101 nfmark 0x101
tcp_outgoing_mark 0x101 mark101


If both above options can be combined then it would be even better.

Thanks in advance,

Amm.






[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux