Skip to contentSkip to conversation

How to recognize a IPSEC packet ?

LARTC Franck BALAZOT 3 participants 3 messages Jul 9, 2001

lore
Share & tools
lore
#0 lore raw

Hi all,

I want to make bandwidth management with CBQ (iproute2) There is no problem to manage service like FTP, HTTP,...
We have an IPSEC VPN here, and I don't know how to reconignize IPSEC packets to manage the VPN bandwith.
Is there a special port or something in the IP packet header that tells "here is an IPSEC packet" ?

Thanks,
------------------------------------------------
Franck BALAZOT ([email protected])
AETA.COM
361, Avenue du Général De Gaulle
92140 CLAMART
FRANCE
Tél:01.41.36.12.93
------------------------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw
Quoted 9 lines · Franck BALAZOT

Hi all,

I want to make bandwidth management with CBQ (iproute2) There is no problem to manage service like FTP, HTTP,...
We have an IPSEC VPN here, and I don't know how to reconignize IPSEC packets to manage the VPN bandwith.
Is there a special port or something in the IP packet header that tells "here is an IPSEC packet" ?

Yep, ipsec normally uses IP Protocol 50 or 51 depending on other factors...

These numbers aren't ports, but protocols on the same level of tcp and udp.

ipchains -A input -m 1 -p 50 (or some such...)

Mike

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#2 lore raw
In reply to Franck BALAZOT
Quoted 19 lines · Franck BALAZOT

Hi all,

I want to make bandwidth management with CBQ (iproute2) There is no problem to manage service like FTP, HTTP,...
We have an IPSEC VPN here, and I don't know how to reconignize IPSEC packets to manage the VPN bandwith.
Is there a special port or something in the IP packet header that tells "here is an IPSEC packet" ?

Thanks,
------------------------------------------------
Franck BALAZOT ([email protected])
AETA.COM
361, Avenue du Général De Gaulle
92140 CLAMART
FRANCE
Tél:01.41.36.12.93
------------------------------------------------

Quoted 3 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

Hi,

From what I remember, IPSec use port 500 TCP for IKE & protocol-ids for IPSec trafic are
50 (ESP) / 51 (AH) (stored in IP Header). This should allow you to recognize the IPSec
traffic with u32 filters.

Hope this help !

Later,

Raffaele.

--
____________________________________________________________________________
Raffaele Brancaleoni Email : [email protected]
Licence en Informatique
Université de Liège - Belgique
____________________________________________________________________________

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/