2 ms·
Setting up IPSec on OpenBSD is much, much easier than on Linux. IKEv2 setup is two lines in /etc/iked.conf: user "someuser" "somepassword" ikev2 "roaming"
by wahern 10y ago
Setting up IPSec on OpenBSD is much, much easier than on Linux. IKEv2 setup is two lines in /etc/iked.conf:
user "someuser" "somepassword"
ikev2 "roaming" passive esp \
from 0.0.0.0/0 to 192.168.1.128/25 peer any \
ikesa auth hmac-sha2-512 enc aes-128 prf hmac-sha2-512 group modp2048 \
childsa enc aes-128-gcm group modp2048 \
eap "mschap-v2" \
config address 192.168.1.128/25 \
config name-server 192.168.1.1
Then setting up NAT is as simple as this one-liner in /etc/pf.conf:
pass out on egress from 192.168.1.128/25 to any nat-to egress
Using IKEv1 instead of IKEv2 is just as easy (one-liner in /etc/ipsec.conf), except you also have to configure L2TP. That's also very simple.
The Linux IPSec stack is just... incomparable.....