hwdsl2/setup-ipsec-vpn

how to configure ipsec vpn over tcp port

algoritmsystems opened this issue · 8 comments

how to configure ipsec vpn over tcp port

@algoritmsystems Hello! Please refer to: #1302 and #1450.

Thanks!

If both ends are libreswan you can do it by enabling RFC 8229 support, see the client and server config in this test case: https://github.com/libreswan/libreswan/blob/main/testing/pluto/ikev2-tcp-01-listen-default/east.conf

basicslly add enable-tcp=yes in the connection and listen-tcp=yes in “config setup” on both ends.

You can use ikeport and tcp-remote-port for changing port although usually 4500 TCP works fine

Thanks @letoams, but it would be better if the script asked for the choice of transport during installation.

Yes! Also would be better to add a function to the script for choosing between IKE, L2TP and Xauth of CISCO

Sure, I meant v2