blob: 291b81737294250b9f5f6eaf12db0450194d620e [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 vpp.home
12ikev2 profile set pr1 id remote fqdn roadwarrior.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
17event-logger clear
18trace add af-packet-input 100
19
20create ipip tunnel src 192.168.10.2 dst 192.168.10.1
21ikev2 profile set pr1 tunnel ipip0
22ip route add 192.168.5.0/24 via 192.168.10.1 ipip0
23set interface unnumbered ipip0 use host-vpp
24
25ikev2 set liveness 30 4
26ikev2 set logging level 4