blob: 36352aa5929ca4fd721bf9a01b3e1ad2798696c6 [file] [log] [blame]
Filip Tehlard5a33802021-02-20 02:26:17 +00001create host-interface name vpp
2set interface ip addr host-vpp 192.168.10.2/24
3set interface state host-vpp up
4
5create host-interface name priv
6set interface ip addr host-priv 192.168.3.1/24
7set interface state host-priv up
8
9ikev2 profile add pr1
10ikev2 profile set pr1 auth shared-key-mic string Vpp123
11ikev2 profile set pr1 id local fqdn roadwarrior.vpp
12ikev2 profile set pr1 id remote fqdn sswan.vpn.example.com
13
14ikev2 profile set pr1 traffic-selector local ip-range 192.168.3.0 - 192.168.3.255 port-range 0 - 65535 protocol 0
15ikev2 profile set pr1 traffic-selector remote ip-range 192.168.5.0 - 192.168.5.255 port-range 0 - 65535 protocol 0
16
17ikev2 profile set pr1 responder host-vpp 192.168.10.1
18ikev2 profile set pr1 ike-crypto-alg aes-gcm-16 256 ike-dh modp-2048
19ikev2 profile set pr1 esp-crypto-alg aes-gcm-16 256
20
21event-logger clear
22trace add af-packet-input 100
23
24create ipip tunnel src 192.168.10.2 dst 192.168.10.1
25ikev2 profile set pr1 tunnel ipip0
26ip route add 192.168.5.0/24 via 192.168.10.1 ipip0
27set interface unnumbered ipip0 use host-vpp
28
29ikev2 set liveness 30 4
30ikev2 set logging level 4