hwdsl2 / setup-ipsec-vpn

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

xauth problem mode #920

Closed amirabasalinaghi closed 3 years ago

amirabasalinaghi commented 3 years ago

Checklist

Describe the issue hi there is a problem when using xauth method when I use xauth for my client I can not ssh to my server anymore(VPN works but ssh does not work) but when I switch to PSK everything is ok

this problem is new with the last few days update I was running a server with an old script for months and there was no problem I installed the script again on a clean os and now I have this problem

To Reproduce Steps to reproduce the behavior:

  1. run script on the server
  2. connect to VPN with xauth mode
  3. try ssh to the server

Expected behavior I should be able to connect to the server by ssh with xauth or psk

Logs Check logs and VPN status, and add error logs to help explain the problem, if applicable.

Server (please complete the following information)

Client (please complete the following information)

Additional context Add any other context about the problem here.

hwdsl2 commented 3 years ago

@amirabasalinaghi Hello! This looks like a client side issue rather than a problem with the VPN setup scripts. There has been no recent updates to the setup scripts that could cause the SSH connection issue you described.

Please provide more information - how did you SSH to the VPN server after connecting to the VPN? i.e. Which IP did you use? If you used the server's internal VPN IP 192.168.42.1 for SSH, note that this IP is only valid when clients connect using IPsec/L2TP mode. The VPN server does NOT have an internal VPN IP when clients connect using IPsec/XAuth mode. In this case, what you described is normal, and as an alternative you can instead use the VPN server's public IP for SSH.