unable to connect to the remote server via StrongSwan IPSec. Linux Debian 12
0
votes
0
answers
56
views
I have a problem connecting to a remote server via StrongSwan IPsec. I tried connecting using FortiClient IPsec on Windows, and everything worked fine. I was able to connect! However, when I tried to connect using StrongSwan, it didn’t work. I’d be very grateful for any support.
This is my code in ipsec.conf
config setup
charondebug="ike 2, knl 2, net 2, dmn 2, mgr 2"
nat_traversal=yes
conn myvpn
keyexchange=ikev2
authby=xauthpsk
left=%defaultroute
leftid=
right=
rightid=@
rightsubnet=0.0.0.0/0
ikelifetime=60m
keylife=20m
esp=aes256-sha2_256
dpdaction=clear
dpddelay=30s
dpdtimeout=120s
auto=start
This is my cod in ipsec.secrets
@ : PSK "PSK_key"
@ : XAuth "password"
Asked by Max
(1 rep)
Mar 29, 2025, 04:56 PM
Last activity: Mar 29, 2025, 05:06 PM
Last activity: Mar 29, 2025, 05:06 PM