Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to tunnel IKEv2 #488

Open
fardindadashi opened this issue Aug 16, 2023 · 1 comment
Open

How to tunnel IKEv2 #488

fardindadashi opened this issue Aug 16, 2023 · 1 comment

Comments

@fardindadashi
Copy link

fardindadashi commented Aug 16, 2023

Hi. I have an IKEv2 server and I ran these commands but doesn't work (there is no error, just vpn connection fails):

server side:

./udp2raw_amd64 -s -l 0.0.0.0:444 -r 127.0.0.1:4500 -k "PaSSWoRD1" --raw-mode faketcp -a &
./udp2raw_amd64 -s -l 0.0.0.0:443 -r 127.0.0.1:500 -k "PaSSWoRD2" --raw-mode faketcp -a &

client side

./udp2raw_amd64 -c -l 0.0.0.0:4500 -r 123.45.67.89:444 -k "PaSSWoRD1" --raw-mode faketcp -a &
./udp2raw_amd64 -c -l 0.0.0.0:500 -r 123.45.67.89:443 -k "PaSSWoRD2" --raw-mode faketcp -a &

what am I missing?

@testcaoy7
Copy link

You need to turn on "force udp encapsulation" option in your *Swan.
I think you should not use udp2raw upon udp/500.
udp/500 is for phase-1 where the parameters of child SAs are exchanged, put it behind a proxy might results in error.
Secured traffic happens in phase-2, and uses ESP packets, I believe they can be tunneled by udp2raw after encapsulated in udp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants