hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
24.95k stars 6.28k forks source link

How can i make ipv4 AND ipv6 working? #1502

Closed DerKartdomi closed 9 months ago

DerKartdomi commented 9 months ago

Checklist

Describe the enhancement request A clear and concise description of your enhancement request.

I want to configure my VPN with ipv4 and ipv6 so that it supports both of them but i fail with the configuration. Can someone help me?

letoams commented 9 months ago

On Thu, 7 Dec 2023, DerKartdomi wrote:

You will need to wait for libreswan 5.0 to combine v4 and v6 into one IPsec SA. Until then, you would need to define two separate conns, but that might not be compatible with common clients (eg apple, microsoft)

Paul

Date: Thu, 7 Dec 2023 11:13:01 From: DerKartdomi @.> Cc: Subscribed @.> To: hwdsl2/setup-ipsec-vpn @.***> Subject: [hwdsl2/setup-ipsec-vpn] How can i make ipv4 AND ipv6 working? (Issue

1502)

Checklist

  • [x ] I searched existing Issues, and did not find a similar enhancement request
  • This enhancement request is about the VPN setup scripts, and not IPsec VPN itself
  • [ x] I read the README
  • [ x] I read the Important notes
  • [x ] I followed instructions to configure VPN clients
  • [x ] I checked IKEv1 troubleshooting, IKEv2 troubleshooting and VPN status

Describe the enhancement request A clear and concise description of your enhancement request.

I want to configure my VPN with ipv4 and ipv6 so that it supports both of them but i fail with the configuration. Can someone help me?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.[AAW5L6P36X3HB7QFY7KHGILYIHTI3A5CNFSM6AAAAABALKBFWGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHSD7CIM.gif] Message ID: @.***>

DerKartdomi commented 9 months ago

there is also no way to do this right? and another question is: If I'm connected I cant connect to my vpn server via ssh. I get connection timed out. Can I connect me something else with the server?

DerKartdomi commented 9 months ago

And is there a way to connect to the openvpn server on the same machine? This was also a problem for me

hwdsl2 commented 9 months ago

@DerKartdomi Correct, this is not currently supported in this project.

It is possible to connect to SSH to the same server while the VPN is active, using the VPN server's public IP. The VPN scripts do not block such connections by default.

You can optionally set up OpenVPN and/or WireGuard in addition to the IPsec VPN on the same server.

DerKartdomi commented 9 months ago

@hwdsl2 Ports are blocked on a public WiFi. When I have connected to the VPN server I can access all ports except those of the server itself. If I want to establish an SSH connection I get a time out and nothing happens with openvpn. what can I do then?

hwdsl2 commented 9 months ago

@DerKartdomi For OpenVPN, the VPN server has internal IP 10.8.0.1 by default. For your use case, try connecting to SSH on 10.8.0.1 while the VPN is active.

patrickmdx commented 9 months ago

On Thu, 7 Dec 2023, DerKartdomi wrote: You will need to wait for libreswan 5.0 to combine v4 and v6 into one IPsec SA. Until then, you would need to define two separate conns, but that might not be compatible with common clients (eg apple, microsoft) Paul Date: Thu, 7 Dec 2023 11:13:01 From: DerKartdomi @.> Cc: Subscribed @.> To: hwdsl2/setup-ipsec-vpn @.> Subject: [hwdsl2/setup-ipsec-vpn] How can i make ipv4 AND ipv6 working? (Issue #1502) Checklist [x ] I searched existing Issues, and did not find a similar enhancement request This enhancement request is about the VPN setup scripts, and not IPsec VPN itself [ x] I read the README [ x] I read the Important notes [x ] I followed instructions to configure VPN clients [x ] I checked IKEv1 troubleshooting, IKEv2 troubleshooting and VPN status Describe the enhancement request A clear and concise description of your enhancement request. I want to configure my VPN with ipv4 and ipv6 so that it supports both of them but i fail with the configuration. Can someone help me? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.[AAW5L6P36X3HB7QFY7KHGILYIHTI3A5CNFSM6AAAAABALKBFWGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHSD7CIM.gif] Message ID: @.>

So can I configure my IkEv2 server to only work with IPV6? If so, could you tell me the way?

hwdsl2 commented 9 months ago

@patrickmdx This use case is not currently supported in this project.