Skip to contentSkip to conversation

Netfilter+IPsec patches in pom-ng now

DISCUSSION Patrick McHardy 3 participants 5 messages Apr 14, 2004 – Apr 21, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

I've just commited the netfilter+ipsec patches to pom-ng.

The input patch is replaced with a new version which just posts packets which are done with ipsec into the stack again and lets them traverse the hooks at the usual places. The advantage is the simplicity and transparency for netfilter, the disadvantage is an extra pass through the stack.

Some bugs have been fixed since the last set of patches:

- IPIP packets decapsulated from IPsec missed the input hooks
- multiple other problems related to the old input patch
- compiles without CONFIG_NETFILTER
- icmp/igmp didn't traverse POST_ROUTING before encapsulation
- possible NULL-ptr dereference fixed

They still need some work but mostly cleanup, nothing critical.

The patches are split into four parts, but pom-ng does not handle recursive dependencies when dependant patches change the same piece of code and --dry-run fails, so the patches need to be applied manually in the right order. The patches are named in a way that they will appear in the correct order during "runme".

Regards
Patrick

PS: I've CCed some people who showed interest, but who I think are not subscribed to the list. Please tell me in private if you want don't want these mails.

#1 lore raw
Quoted 24 lines · Patrick McHardy

I've just commited the netfilter+ipsec patches to pom-ng.

The input patch is replaced with a new version which just posts packets which are done with ipsec into the stack again and lets them traverse the hooks at the usual places. The advantage is the simplicity and transparency for netfilter, the disadvantage is an extra pass through the stack.

Some bugs have been fixed since the last set of patches:

- IPIP packets decapsulated from IPsec missed the input hooks
- multiple other problems related to the old input patch
- compiles without CONFIG_NETFILTER
- icmp/igmp didn't traverse POST_ROUTING before encapsulation
- possible NULL-ptr dereference fixed

They still need some work but mostly cleanup, nothing critical.

The patches are split into four parts, but pom-ng does not handle recursive dependencies when dependant patches change the same piece of code and --dry-run fails, so the patches need to be applied manually in the right order. The patches are named in a way that they will appear in the correct order during "runme".

Quoted 7 lines

Regards
Patrick

PS: I've CCed some people who showed interest, but who I think are not subscribed to the list. Please tell me in private if you want don't want these mails.

Patrick I have noted that 04 doesn't apply cleanly to 2.6.5

#2 lore raw
Quoted 1 line

Patrick I have noted that 04 doesn't apply cleanly to 2.6.5

the only problem i noticed when patching kernel 2.6.5 was with patch 02 (i use the cvs versions of pom-ng and iptables of april 14). i'll try to check again.

btw i'm experimenting with them for a few days now, and i didn't encounter any problem. everything's fine!

ivan

#3 lore raw
Quoted 1 line · Ivan Mitev
Quoted 1 line

Patrick I have noted that 04 doesn't apply cleanly to 2.6.5

Have to admit I used a debian 2.6.5, will check it out

Quoted 10 lines

the only problem i noticed when patching kernel 2.6.5 was with patch 02 (i use the cvs versions of pom-ng and iptables of april 14). i'll try to check again.

btw i'm experimenting with them for a few days now, and i didn't encounter any problem. everything's fine!

ivan

#4 lore raw
In reply to Patrick McHardy
Quoted 16 lines · Patrick McHardy

I've just commited the netfilter+ipsec patches to pom-ng.

The input patch is replaced with a new version which just posts packets which are done with ipsec into the stack again and lets them traverse the hooks at the usual places. The advantage is the simplicity and transparency for netfilter, the disadvantage is an extra pass through the stack.

Some bugs have been fixed since the last set of patches:

- IPIP packets decapsulated from IPsec missed the input hooks
- multiple other problems related to the old input patch
- compiles without CONFIG_NETFILTER
- icmp/igmp didn't traverse POST_ROUTING before encapsulation
- possible NULL-ptr dereference fixed

Quoted 7 lines

They still need some work but mostly cleanup, nothing critical.

The patches are split into four parts, but pom-ng does not handle recursive dependencies when dependant patches change the same piece of code and --dry-run fails, so the patches need to be applied manually in the right order. The patches are named in a way that they will appear in the correct order during "runme".

Work out my problem with 2.6.5, need to apply nf_reset patch first.

Quoted 8 lines

Regards
Patrick

PS: I've CCed some people who showed interest, but who I think are not subscribed to the list. Please tell me in private if you want don't want these mails.