-# $OpenBSD: iked.conf,v 1.1 2014/07/11 21:20:10 deraadt Exp $
+# $OpenBSD: iked.conf,v 1.2 2023/03/01 22:45:25 sthen Exp $
#
# See iked.conf(5) for syntax and examples.
#user "user1" "password123"
#user "user2" "password456"
-# Configuration for clients connecting with EAP authentication.
+# Configuration for clients connecting with EAP authentication
+# and sending all traffic over the IKEv2 tunnel.
# Remember to set up a PKI, see ikectl(8) for more information.
-#ikev2 "win7" passive esp \
-# from 10.1.0.0/24 to 10.2.0.0/24 \
+#ikev2 "eapclient" passive esp \
+# from any to dynamic \
# local any peer any \
# eap "mschap-v2" \
-# config address 10.2.0.1 \
+# config address 10.2.0.0/24 \
# config name-server 10.1.0.2 \
# tag "$name-$id"
# from 10.5.0.0/24 to 10.1.0.0/24 \
# from 10.5.0.0/24 to 172.16.1.0/24 \
# local 192.168.1.1 peer 192.168.2.1 \
-# psk "you-should-not-use-psk-authentication!"
+# psk "tyBNv13zuo3rg1WVXlaI1g1tTYNzwk962mMUYIvaLh2x8vvvyA"