Usage Tips:
- Click on a keyword to enable inline editing.
- Click inside a code block to copy (excludes comments).
- Use the button to view examples.
- Click outside to collapse all examples.
Enum
# Check with ikeV1
ike-scan -M <TARGET>
Sample Output:
TO-DO
# Check with ikeV2
ike-scan -M --ikev2 <TARGET>
Sample Output:
TO-DO
Connect to VPN
sudo apt install strongswan
Sample Output:
TO-DO
Settings
# Edit /etc/ipsec.secrets
%any : PSK <PASSWORD>
Sample Output:
TO-DO
# Edit /etc/ipsec.conf (copy from ike-scan result)
config setup
charondebug="all"
uniqueids=yes
strictcrlpolicy=no
conn testvpn
authby=secret
auto=add
ike=3des-sha1-modp1024!
esp=3des-sha1!
type=transport
keyexchange=ikev1
left=<LOCAL>
right=<TARGET>
rightsubnet=<TARGET>[tcp]
Sample Output:
TO-DO
Connect
# Reset
ipsec restart
Sample Output:
TO-DO
# Connect
ipsec up testvpn
Sample Output:
TO-DO