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
19 # Flush the SAD and SPD
23 # 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;
33 # ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
34 # and hmac-md5 authentication using 128 bit long keys
35 add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
36 -E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
37 -A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
39 add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
40 -E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
41 -A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;