! ! Century Systems NXR-G240 Series ver 9.12.1 (build 2/11:21 29 07 2020) ! DIP-SW : 1:off 2:off 3:off 4:off ! hostname NXR_A telnet-server enable telnet-server ip forbidden-access-wan telnet-server ipv6 forbidden-access-wan http-server enable http-server ip forbidden-access-wan http-server ipv6 forbidden-access-wan no rest http enable no rest https enable ! ! system power-management mode balance ! ! ! ipv6 forwarding no fast-forwarding 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.2 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 protocol etherip ! 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 protocol etherip ! ! interface bridge 0 ip address 192.168.10.1/24 ip access-group in br0_in ! interface tunnel 1 mtu 1500 bridge-group 0 port 2 no ip address tunnel mode ethernet ip tunnel source ethernet 1 tunnel destination 192.0.2.2 ! interface tunnel 2 mtu 1500 bridge-group 0 port 3 no ip address tunnel mode ethernet ip tunnel source ethernet 1 tunnel destination nxrc.sample.warplink.ne.jp ! interface ethernet 0 bridge-group 0 port 1 no ip address ! interface ethernet 1 ip address 203.0.113.1/30 ip access-group in eth1_in ip access-group out eth1_out ip masquerade ip spi-filter ipsec policy 1 ! interface ethernet 2 no ip address ! dns service enable address 203.0.113.253 address 203.0.113.254 ! ! syslog local enable exit-syslog ! ! ! ! ! ! ! ! ! ! ip route 0.0.0.0/0 203.0.113.2 ! ! ! ip access-list br0_in permit 192.168.10.0/24 192.168.10.1 tcp any 23 ip access-list br0_in permit 192.168.10.0/24 192.168.10.1 tcp any 880 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 ip access-list eth1_out deny 203.0.113.1 any 97 ! ! ! end