Skip to contentSkip to conversation

About IPSec ALG

DISCUSSION Sarge Gorden 3 participants 6 messages May 29, 2008 – May 30, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all,

Now I was using a Linux box as a gateway (Ver: 2.6.18). But without NAT-T there gona some problems when connecting a L2TP-over-IPSec VPN server.
I wonder if there's a "IPSec ALG" could port into the kernel. (Just like ip_conntack_ipsec/ip_nat_ipsec)
Is there is a patch availiable now?

Thanks.

#1 lore raw
Quoted 5 lines · Sarge Gorden

Hi all,

Now I was using a Linux box as a gateway (Ver: 2.6.18). But without NAT-T there gona some problems when connecting a L2TP-over-IPSec VPN server.

What problem?

Quoted 3 lines

I wonder if there's a "IPSec ALG" could port into the kernel. (Just like ip_conntack_ipsec/ip_nat_ipsec)
Is there is a patch availiable now?

AH and ESP is handled by nf_conntrack_proto_generic (always built-in).

#2 lore raw

If the VPN server or client doesn't support NAT-T.
Then multiple hosts behind a single NAT address couldn't simultaneously establish and maintain tunnels to the multiple exterior hosts.
Only one host could establish...

But if both side support NAT-T, it works.

Quoted 17 lines · Jan Engelhardt
Quoted 5 lines · Sarge Gorden

Hi all,

Now I was using a Linux box as a gateway (Ver: 2.6.18). But without NAT-T there gona some problems when connecting a L2TP-over-IPSec VPN server.

What problem?

Quoted 3 lines

I wonder if there's a "IPSec ALG" could port into the kernel. (Just like ip_conntack_ipsec/ip_nat_ipsec)
Is there is a patch availiable now?

AH and ESP is handled by nf_conntrack_proto_generic (always built-in).

#3 lore raw
Quoted 7 lines · Sarge Gorden

If the VPN server or client doesn't support NAT-T.
Then multiple hosts behind a single NAT address couldn't simultaneously establish and maintain tunnels to the multiple exterior hosts.
Only one host could establish...

But if both side support NAT-T, it works.

(This is called udpencap in Linux.)

That is the commonly-raised problem with NAT. (Suggestion:
abandon NAT, get an IPv6 address.)

It is just not possible to have a conntracking ALG because when people designed ESP, they did so in a way that makes it virtually impossible to track it. ESP is unidirectional, which is quite bad since connection tracking uses a (source-information,destination-information) tuple. But ok, we could live with an unidirectional ESP *if* we knew the SPI it uses, but IKE was designed in a way so as to encrypt the SPIs used for the ESP stream, giving no way of knowing them beforehand. It is a perfect example of how to shoot oneself in the foot, multiple times.

#4 lore raw
In reply to Sarge Gorden

Maybe u alos need this: esp porto conntrack.

Another file is ipt_esp.c, which could find it anywhere, I don't know if u need it in ur kernel version.

Quoted 32 lines · Sarge Gorden

If the VPN server or client doesn't support NAT-T.
Then multiple hosts behind a single NAT address couldn't simultaneously establish and maintain tunnels to the multiple exterior hosts.
Only one host could establish...

But if both side support NAT-T, it works.

Quoted 9 lines · Jan Engelhardt
Quoted 5 lines · Sarge Gorden

Hi all,

Now I was using a Linux box as a gateway (Ver: 2.6.18). But without NAT-T there gona some problems when connecting a L2TP-over-IPSec VPN server.

Quoted 8 lines

What problem?

Quoted 3 lines

I wonder if there's a "IPSec ALG" could port into the kernel. (Just like ip_conntack_ipsec/ip_nat_ipsec)
Is there is a patch availiable now?

AH and ESP is handled by nf_conntrack_proto_generic (always built-in).

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to Sarge Gorden

Fortunately I got some "ipsec alg" codes...I can show you.. It's based on 2.6.8. But there's a lot of changes from 2.6.8 to 2.6.18. Emm...I don't have much time to port it.(actually I'm not so farmiliar with this~)

If u could port it, everybody will be glad~hoho~

Quoted 15 lines · Sarge Gorden

Hi all,

Now I was using a Linux box as a gateway (Ver: 2.6.18). But without NAT-T there gona some problems when connecting a L2TP-over-IPSec VPN server.
I wonder if there's a "IPSec ALG" could port into the kernel. (Just like ip_conntack_ipsec/ip_nat_ipsec)
Is there is a patch availiable now?

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html