161 lines
7.9 KiB
INI
161 lines
7.9 KiB
INI
|
###########################################################################
|
||
|
# IPSEC-SECGW Endpoint1 sample configuration
|
||
|
#
|
||
|
# The main purpose of this file is to show how to configure two systems
|
||
|
# back-to-back that would forward traffic through an IPsec tunnel. This
|
||
|
# file is the Endpoint1 configuration. To use this configuration file,
|
||
|
# add the following command-line option:
|
||
|
#
|
||
|
# -f ./ep1.cfg
|
||
|
#
|
||
|
###########################################################################
|
||
|
|
||
|
#SP IPv4 rules
|
||
|
sp ipv4 in esp protect 5 pri 1 dst 192.168.105.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 6 pri 1 dst 192.168.106.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 10 pri 1 dst 192.168.175.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 11 pri 1 dst 192.168.176.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 15 pri 1 dst 192.168.200.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 16 pri 1 dst 192.168.201.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 25 pri 1 dst 192.168.55.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp protect 26 pri 1 dst 192.168.56.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp bypass dst 192.168.240.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 in esp bypass dst 192.168.241.0/24 sport 0:65535 dport 0:65535
|
||
|
|
||
|
sp ipv4 out esp protect 105 pri 1 dst 192.168.115.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 106 pri 1 dst 192.168.116.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 110 pri 1 dst 192.168.185.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 111 pri 1 dst 192.168.186.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 115 pri 1 dst 192.168.210.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 116 pri 1 dst 192.168.211.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 115 pri 1 dst 192.168.210.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 125 pri 1 dst 192.168.65.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 125 pri 1 dst 192.168.65.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp protect 126 pri 1 dst 192.168.66.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp bypass pri 1 dst 192.168.245.0/24 sport 0:65535 dport 0:65535
|
||
|
sp ipv4 out esp bypass pri 1 dst 192.168.246.0/24 sport 0:65535 dport 0:65535
|
||
|
|
||
|
#SP IPv6 rules
|
||
|
sp ipv6 in esp protect 5 pri 1 dst 0000:0000:0000:0000:5555:5555:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 in esp protect 6 pri 1 dst 0000:0000:0000:0000:6666:6666:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 in esp protect 10 pri 1 dst 0000:0000:1111:1111:0000:0000:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 in esp protect 11 pri 1 dst 0000:0000:1111:1111:1111:1111:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 in esp protect 25 pri 1 dst 0000:0000:0000:0000:aaaa:aaaa:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 in esp protect 26 pri 1 dst 0000:0000:0000:0000:bbbb:bbbb:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
|
||
|
sp ipv6 out esp protect 15 pri 1 dst ffff:0000:0000:0000:5555:5555:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 out esp protect 16 pri 1 dst ffff:0000:0000:0000:6666:6666:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 out esp protect 110 pri 1 dst ffff:0000:1111:1111:0000:0000:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 out esp protect 111 pri 1 dst ffff:0000:1111:1111:1111:1111:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 out esp protect 125 pri 1 dst ffff:0000:0000:0000:aaaa:aaaa:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
sp ipv6 out esp protect 126 pri 1 dst ffff:0000:0000:0000:bbbb:bbbb:0000:0000/96 \
|
||
|
sport 0:65535 dport 0:65535
|
||
|
|
||
|
#SA rules
|
||
|
sa in 5 cipher_algo aes-128-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
|
||
|
auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
|
||
|
mode ipv4-tunnel src 172.16.1.5 dst 172.16.2.5
|
||
|
|
||
|
sa in 6 cipher_algo aes-128-cbc cipher_key a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:\
|
||
|
a0:a0:a0:a0:a0 auth_algo sha1-hmac auth_key a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:\
|
||
|
a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.1.6 dst 172.16.2.6
|
||
|
|
||
|
sa in 10 cipher_algo aes-128-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
|
||
|
a1:a1:a1:a1:a1 auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
|
||
|
a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
|
||
|
|
||
|
sa in 11 cipher_algo aes-128-cbc cipher_key b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:\
|
||
|
b2:b2:b2:b2:b2 auth_algo sha1-hmac auth_key b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:\
|
||
|
b2:b2:b2:b2:b2:b2:b2:b2:b2 mode transport
|
||
|
|
||
|
sa in 15 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.1.5 \
|
||
|
dst 172.16.2.5
|
||
|
|
||
|
sa in 16 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.1.6 \
|
||
|
dst 172.16.2.6
|
||
|
|
||
|
sa in 25 cipher_algo aes-128-cbc cipher_key c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:\
|
||
|
c3:c3:c3:c3:c3 auth_algo sha1-hmac auth_key c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:\
|
||
|
c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \
|
||
|
src 1111:1111:1111:1111:1111:1111:1111:5555 \
|
||
|
dst 2222:2222:2222:2222:2222:2222:2222:5555
|
||
|
|
||
|
sa in 26 cipher_algo aes-128-cbc cipher_key 4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:\
|
||
|
4d:4d:4d:4d:4d auth_algo sha1-hmac auth_key 4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:\
|
||
|
4d:4d:4d:4d:4d:4d:4d:4d:4d mode ipv6-tunnel \
|
||
|
src 1111:1111:1111:1111:1111:1111:1111:6666 \
|
||
|
dst 2222:2222:2222:2222:2222:2222:2222:6666
|
||
|
|
||
|
sa out 105 cipher_algo aes-128-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
|
||
|
auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
|
||
|
mode ipv4-tunnel src 172.16.2.5 dst 172.16.1.5
|
||
|
|
||
|
sa out 106 cipher_algo aes-128-cbc cipher_key a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:\
|
||
|
a0:a0:a0:a0:a0 auth_algo sha1-hmac auth_key a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:a0:\
|
||
|
a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.2.6 dst 172.16.1.6
|
||
|
|
||
|
sa out 110 cipher_algo aes-128-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
|
||
|
a1:a1:a1:a1:a1 auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
|
||
|
a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
|
||
|
|
||
|
sa out 111 cipher_algo aes-128-cbc cipher_key b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:\
|
||
|
b2:b2:b2:b2:b2 auth_algo sha1-hmac auth_key b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:b2:\
|
||
|
b2:b2:b2:b2:b2:b2:b2:b2:b2 mode transport
|
||
|
|
||
|
sa out 115 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.2.5 \
|
||
|
dst 172.16.1.5
|
||
|
|
||
|
sa out 116 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.2.6 dst 172.16.1.6
|
||
|
|
||
|
sa out 125 cipher_algo aes-128-cbc cipher_key c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:\
|
||
|
c3:c3:c3:c3:c3 auth_algo sha1-hmac auth_key c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:c3:\
|
||
|
c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \
|
||
|
src 2222:2222:2222:2222:2222:2222:2222:5555 \
|
||
|
dst 1111:1111:1111:1111:1111:1111:1111:5555
|
||
|
|
||
|
sa out 126 cipher_algo aes-128-cbc cipher_key 4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:\
|
||
|
4d:4d:4d:4d:4d auth_algo sha1-hmac auth_key 4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:4d:\
|
||
|
4d:4d:4d:4d:4d:4d:4d:4d:4d mode ipv6-tunnel \
|
||
|
src 2222:2222:2222:2222:2222:2222:2222:6666 \
|
||
|
dst 1111:1111:1111:1111:1111:1111:1111:6666
|
||
|
|
||
|
#Routing rules
|
||
|
rt ipv4 dst 172.16.1.5/32 port 0
|
||
|
rt ipv4 dst 172.16.1.6/32 port 1
|
||
|
rt ipv4 dst 192.168.185.0/24 port 0
|
||
|
rt ipv4 dst 192.168.186.0/24 port 1
|
||
|
rt ipv4 dst 192.168.245.0/24 port 0
|
||
|
rt ipv4 dst 192.168.246.0/24 port 1
|
||
|
rt ipv4 dst 192.168.105.0/24 port 2
|
||
|
rt ipv4 dst 192.168.106.0/24 port 3
|
||
|
rt ipv4 dst 192.168.55.0/24 port 2
|
||
|
rt ipv4 dst 192.168.56.0/24 port 3
|
||
|
rt ipv4 dst 192.168.175.0/24 port 2
|
||
|
rt ipv4 dst 192.168.176.0/24 port 3
|
||
|
rt ipv4 dst 192.168.200.0/24 port 2
|
||
|
rt ipv4 dst 192.168.201.0/24 port 3
|
||
|
rt ipv4 dst 192.168.240.0/24 port 2
|
||
|
rt ipv4 dst 192.168.241.0/24 port 3
|
||
|
|
||
|
rt ipv6 dst 1111:1111:1111:1111:1111:1111:1111:5555/116 port 0
|
||
|
rt ipv6 dst 1111:1111:1111:1111:1111:1111:1111:6666/116 port 1
|
||
|
rt ipv6 dst ffff:0000:1111:1111:0000:0000:0000:0000/116 port 0
|
||
|
rt ipv6 dst ffff:0000:1111:1111:1111:1111:0000:0000/116 port 1
|
||
|
rt ipv6 dst 0000:0000:0000:0000:aaaa:aaaa:0000:0000/116 port 2
|
||
|
rt ipv6 dst 0000:0000:0000:0000:bbbb:bbbb:0000:0000/116 port 3
|
||
|
rt ipv6 dst 0000:0000:0000:0000:5555:5555:0000:0000/116 port 2
|
||
|
rt ipv6 dst 0000:0000:0000:0000:6666:6666:0000:0000/116 port 3
|
||
|
rt ipv6 dst 0000:0000:1111:1111:0000:0000:0000:0000/116 port 2
|
||
|
rt ipv6 dst 0000:0000:1111:1111:1111:1111:0000:0000/116 port 3
|