All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: iptables and SPI...
@ 2003-10-31 18:07 dimitri borjac
  2003-10-31 22:01 ` Henrik Nordstrom
  0 siblings, 1 reply; 9+ messages in thread
From: dimitri borjac @ 2003-10-31 18:07 UTC (permalink / raw)
  To: hno; +Cc: netfilter-devel


>  -----Message d'origine-----
>  De : Henrik Nordstrom [mailto:hno@marasystems.com]
>  Envoyé : vendredi 31 octobre 2003 18:42
>  À : dimitri borjac
>  Cc : laforge@netfilter.org; netfilter-devel@lists.netfilter.org
>  Objet : RE: iptables and SPI...
>    On Fri, 31 Oct 2003, dimitri borjac wrote:
>   > what i'm trying to do is to perform NAT based on 
>IP_addresses/Ports/SPIs.
>   Why not simply using a IP-Sec implementation supporting the  
>NAT-Transversal standard?
>   IP-Sec is generally not very happy about being NAT:ed. For examle AH is
>  totally incompatible with NAT (unless using the NAT-Transversal 
>standard).
>   Regards
>  Henrik

Just because I don't want to be compelled to use NAT-Traversal :)

And the only solution in this case is to NAT using the SPI... indeed by 
default AH is not compatible with NAT, and neither is ESP in transport mode, 
but ESP in tunnel mode supports the NAT (since the whole encrypted IP packet 
is encapsulated in a new IP header).

The only problem then (with ESP in tunnel mode) is for the local gateway : 
it has to know who the encrypted packet coming back to the local network is 
destinated to... that's where the SPI is helpful.

So the problem is still there... is it possible to extend the NAT functions 
of iptables in order to make the local gateway read and use the SPI for 
NATting packets ?

Regards,
dimo

_________________________________________________________________
Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: iptables and SPI...
@ 2003-10-31 15:32 dimitri borjac
  2003-10-31 17:41 ` Henrik Nordstrom
  2003-11-02 15:06 ` Harald Welte
  0 siblings, 2 replies; 9+ messages in thread
From: dimitri borjac @ 2003-10-31 15:32 UTC (permalink / raw)
  To: laforge; +Cc: netfilter-devel

Thx for trying to help me Harald :)

what i'm trying to do is to perform NAT based on IP_addresses/Ports/SPIs.

The situation would be different users NATted by a common local gateway (all 
the users are located on the same private network), making each one an IPsec 
tunnel (using ESP) to the same remote gateway.

The different tunnels start from each user, go through the local gateway 
(which NATts the users) and end at the remote gateway.

The problem for the local gateway is to NAT the different VPN, based on the 
private IP adresses of the users, the ports used (port 50 for ESP...) and 
the SPIs (in order to distinguish the different tunnels).

The problem is not for the chosen ipsec implementation since the local 
gateway only NATts and forwards the ispec packets. But with the current 
version of iptables, is it possible for the local gateway to perform NAT 
based on the SPIs (and @IP and ports...) ?  (i saw that extracting the SPI 
from the ESP header is possible thx to last p-o-m... but NAT with it ?)

I hope this explanation is more understandable :-/
Thx very much for your help !!

Regards,
dimo

_________________________________________________________________
Trouvez l'âme soeur sur MSN Rencontres http://g.msn.fr/FR1000/9551

^ permalink raw reply	[flat|nested] 9+ messages in thread
* iptables and SPI...
@ 2003-10-22 16:44 dimitri borjac
  2003-10-31 14:47 ` Harald Welte
  0 siblings, 1 reply; 9+ messages in thread
From: dimitri borjac @ 2003-10-22 16:44 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* iptables and SPI
@ 2003-10-22 13:26 dimitri borjac
  2003-10-22 13:50 ` Julian Gomez
  0 siblings, 1 reply; 9+ messages in thread
From: dimitri borjac @ 2003-10-22 13:26 UTC (permalink / raw)
  To: netfilter

sorry to disturb all of you once more... and thank you Julian for your first 
answer...

but actually i think i wasn't clear enough in my last mail : is it possible 
to use 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 more clear this time :)
Thanks in advance !

Dimo

_________________________________________________________________
Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! 
http://g.msn.fr/FR1000/9493



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-11-02 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-31 18:07 iptables and SPI dimitri borjac
2003-10-31 22:01 ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2003-10-31 15:32 dimitri borjac
2003-10-31 17:41 ` Henrik Nordstrom
2003-11-02 15:06 ` Harald Welte
2003-10-22 16:44 dimitri borjac
2003-10-31 14:47 ` Harald Welte
2003-10-22 13:26 dimitri borjac
2003-10-22 13:50 ` Julian Gomez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.