Skip to contentSkip to conversation

iptables and SPI...

DISCUSSION dimitri borjac 2 participants 2 messages Oct 22, 2003 – Oct 31, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi!
i sent this question to the user list but maybe you would have more precise answers ...

I'd like to know if it's possible to use the current version of iptables in order to NAT different VPN established between different NATted hosts and 1 remote gateway (the same gateway for all of them) ? Such a NAT would be made by watching both addresses, ports and SPIs...

In other words : is it possible for iptables to go and check the SPI field in the ESP Header of the IPsec packet in ESP tunnel mode ?

Hope i make me clear enough :)
Thanks in advance !

Dimo

_________________________________________________________________
MSN Messenger 6 http://g.msn.fr/FR1001/866 : ajoutez une image à votre pseudo pour dialoguer avec vos amis

#1 lore raw
Quoted 8 lines · dimitri borjac

Hi!
i sent this question to the user list but maybe you would have more precise answers ...

I'd like to know if it's possible to use the current version of iptables in order to NAT different VPN established between different NATted hosts and 1 remote gateway (the same gateway for all of them) ? Such a NAT would be made by watching both addresses, ports and SPIs...

I don't really understand what you want to achieve. Please try to explain this in more detail.

Quoted 2 lines

In other words : is it possible for iptables to go and check the SPI field in the ESP Header of the IPsec packet in ESP tunnel mode ?

are you talking about freeswan or the 2.6 kenel ipsec implementation? Is your iptables running on one end of a tunnel or just enroute your ESP tunnel? Are you using UDP ESP encapsulation mode (nat-traversal)?

Quoted 1 line

Hope i make me clear enough :)

no, unfortunately not. Or I'm too stupid, sorry.

Quoted 1 line

Dimo

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie