iptables and 2.5.* ipsec

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

 



Hi,

How does 2.5.* ipsec and netfilter interact?

I guess this way, but I'm not sure:
(encrypted) network card -> routing -> INPUT -> decrypt
(decrypted) ipsec -> routing -> INPUT/FORWARD 

A normal packet is processed this way:
ipsec -> routing -> INPUT/FORWARD 

The first is easy to see: proto 50 or 51 (or udp port 500 for ike).
But how can I see whether an unencrypted packet came in unencrypted
or came in encrypted via ipsec?

with freeswan I could match -i ipsec0, but with kernel 2.5.* there
is no ipsec0 device. What shall I use instead? fwmark?

Thanks for your help.

Regards, Andreas



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux