! ! Century Systems NXR-650 Series ver 21.11.2C (build 1/15:16 24 08 2021) ! hostname NXR_A telnet-server enable http-server enable no rest http enable no rest https enable ! ! ! ! ! ipv6 forwarding fast-forwarding enable ! ! ! ! ! ipsec priority-ignore enable ! l2tp udp source-port 40001 ! ! ipsec local policy 1 address ip ! ! ipsec isakmp policy 1 description NXR_B authentication pre-share IPsecKEY1 hash sha256 encryption aes128 group 5 lifetime 86400 isakmp-mode main remote address ip 192.0.2.1 local policy 1 ! ipsec isakmp policy 2 description NXR_C authentication pre-share IPsecKEY2 keepalive 30 3 periodic clear hash sha256 encryption aes128 group 5 lifetime 86400 isakmp-mode aggressive remote address ip any remote identity fqdn NXRC local policy 1 ! ! ipsec tunnel policy 1 description NXR_B set transform esp-aes128 esp-sha256-hmac set pfs group5 set key-exchange isakmp 1 set sa lifetime 28800 match address IPsec_ACL ! ipsec tunnel policy 2 description NXR_C negotiation-mode responder set transform esp-aes128 esp-sha256-hmac set pfs group5 set key-exchange isakmp 2 set sa lifetime 28800 match address IPsec_ACL ! ! interface tunnel 1 no ip address ip tcp adjust-mss auto tunnel mode ipsec ipv4 tunnel protection ipsec policy 1 ! interface tunnel 2 no ip address ip tcp adjust-mss auto tunnel mode ipsec ipv4 tunnel protection ipsec policy 2 ! interface ethernet 0 ip address 192.168.10.1/24 ip policy route-map eth0_PBR ! interface ethernet 1 ip address 203.0.113.1/30 ip tcp adjust-mss auto ip access-group in eth1_IN ip masquerade ip spi-filter ipsec policy 1 ! interface ethernet 2 ip address 192.168.11.1/24 ip policy route-map eth2_PBR ! dns service enable address 203.0.113.253 address 203.0.113.254 ! ! syslog local enable exit-syslog ! ! ! system led ext 0 signal-level mobile 0 ! ! ! ! ! ! ! ip route 192.168.0.0/16 null 254 ip route 0.0.0.0/0 203.0.113.2 ! ! ! ip access-list eth1_IN permit any 203.0.113.1 udp 500 500 ip access-list eth1_IN permit any 203.0.113.1 50 ! ipsec access-list IPsec_ACL ip any any ! ! ip policy access-list tunnel1_PBR_OUT 192.168.10.0/24 192.168.20.0/24 ip policy access-list tunnel2_PBR_OUT 192.168.11.0/24 192.168.30.0/24 ! route-map eth0_PBR permit 1 match ip address tunnel1_PBR_OUT set interface tunnel 1 ! route-map eth2_PBR permit 1 match ip address tunnel2_PBR_OUT set interface tunnel 2 ! ! end