Skip to content
Discussion options

You must be logged in to vote

All works fine if the MARK rules in the mangle table for the FORWARD hook go to PREROUTING. Which is a bit of a mystery to me since according to https://commons.wikimedia.org/wiki/File:Netfilter-packet-flow.svg, for instance, xfrm lookup for inside -> outside plaintext packets would take place after FORWARD and even after POSTROUTING. But none of FORWARD or POSTROUTING work. The conclusion is: PREROUTING does the marking for the packets generated by the clients and OUTPUT does the marking for the packets generated locally.

Two distinct marks are required in order to set up two distinct IPsec tunnels for the same IP traffic selector.

And two distinct reqid's are required (iirc) to mitigate…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@jwfloroiu
Comment options

@Thermi
Comment options

@jwfloroiu
Comment options

@Thermi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jwfloroiu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants