ipsec policy with netfilter mark value

From: Marco Berizzi <hidden>
Date: 2006-09-14 11:04:52

Hello everybody.
I would like to know if is it possible to create an ipsec
policy based on the mark value inizialized by netfilter.

This is my problem: I need to route VoIP packets from hosts
connected to the private networks (A & B) to the QoS routers,
without encrypting them. 'Normal' packets are encrypted &
delivered by the ipsec tunnel through the 'Internet router'.

I was thinking to mark them with netfilter (matching on dscp
value) and then create an ipsec policy based on that mark
value.

TIA

                       ___ private network A
                    | /
                    |/
                    |
                    |
              +-----+-----+
              |           |
              |   linux   |
              |   ipsec   |
              |  gateway  |
              |           |
              +--+-----+--+
                 |     |
  +--------+     |     |
  |Internet|     |     |     +------------------+
  |        +-----+     +-----+QoS enabled router|
  | router |                 +------------------+
  +--------+                          ||
     ||                               ||
     ||                               ||
     ||\                              ||
     || \___ipsec tunnel              ||\
     ||    net A <=> net B            || \___QoS WAN network
     ||                               ||     net A <=> net B
     ||                               ||
  +--------+                          ||
  |Internet|                 +------------------+
  |        +-----+     +-----+QoS enabled router|
  | router |     |     |     +------------------+
  +--------+     |     |
                 |     |
              +--+-----+--+
              |           |
              |   linux   |
              |   ipsec   |
              |  gateway  |
              |           |
              +-----+-----+
                    |
                    |
                    |\
                    | \___ private network B

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help