4 # Example ESP Tunnel for VPN.
6 # ========= ESP =========
8 # Network-A Gateway-A Gateway-B Network-B
9 # 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
11 # ====== 83xx board A ====== ===== 83xx board B =====
14 # 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
18 # Flush the SAD and SPD
22 # I am gateway B (eth0:192.168.2.130, eth1:200.200.200.20)
26 spdadd 192.168.2.0/24 192.168.1.0/24 any -P out ipsec
27 esp/tunnel/200.200.200.20-200.200.200.10/require;
29 spdadd 192.168.1.0/24 192.168.2.0/24 any -P in ipsec
30 esp/tunnel/200.200.200.10-200.200.200.20/require;