Site to Site VPN to AWS VPC
I have a site to site VPN setup from Fortigate 200D too AWS VPC. The tunnels are up and active but I cannot seem to get the routing correct.
We are wanting all non-local traffic to go through the VPN tunnel to AWS. No matter what change I make traffice goes out the wan!. I stand corrected if I edit the static default route to use the VPN interface instead of the WAN ports the tunnels go down.
next
edit "AWS VPN"
set vdom "VDOM-A"
set ip 169.254.47.154 255.255.255.255
set allowaccess ping
set type tunnel
set remote-ip 169.254.47.153
set snmp-index 19
set interface "port1"
next
edit "AWS VPN 2"
set vdom "VDOM-A"
set ip 169.254.45.246 255.255.255.255
set allowaccess ping
set type tunnel
set remote-ip 169.254.45.245
set snmp-index 20
set interface "port1"
next
My Tunnels are setup as follow
config vpn ipsec phase1-interface
edit "AWS VPN"
set interface "port1"
set keylife 28800
set peertype any
set proposal aes128-sha1
set dhgrp 2
set remote-gw 3.85.156.247
set psksecret ENC PJpv/i53ceAXe8BOYrILtfAH6YVwgswMbckKMF/h7QnySTOBFi0dE0TSmZXZM03PG/tKjvFiPKRcwDJprN7SAvpmXWMbRw6ct0kvYISQ/dB3MANTpCnM0tU7k+y1WqsxRoYT5ytMHKVQN4zPgl81PdApw3lLCBs3JTtiUXQveRBMHgZHsy3A29l6VaZA8KnJfg+tYw==
next
edit "AWS VPN 2"
set interface "port1"
set keylife 28800
set peertype any
set proposal aes128-sha1
set dhgrp 2
set nattraversal disable
set remote-gw 34.204.21.180
set psksecret ENC 9u9RClwiMZOKCxraZHByC00S8HqmmxVhpspElSwGahDAWa9x7LwA4vcF0lOiYA/ClXoK6on9WlOHX19nqTQwbnnOdHcZd/0dVSu50F2dv8T1VXcrEgYDpE8cciOJThDU9UrgpjWbt9ImUohC2qNfpHmyk/sztTpagRQ+JCzWSOe5nreayJOPHaYsnTbIq+4DcxxaQA==
next
config vpn ipsec phase2-interface
edit "AWS VPN"
set phase1name "AWS VPN"
set proposal aes128-sha1
set dhgrp 2
set keepalive enable
set keylifeseconds 3600
set src-subnet 10.41.5.0 255.255.255.0
set dst-subnet 10.99.10.0 255.255.255.0
next
edit "AWS VPN 2"
set phase1name "AWS VPN 2"
set proposal aes128-sha1
set dhgrp 2
set keepalive enable
set keylifeseconds 3600
set src-subnet 10.41.5.0 255.255.255.0
set dst-subnet 10.99.10.0 255.255.255.0
next
end
config system link-monitor
edit "AWS1VPNFO"
set srcintf "AWS VPN"
set server "169.254.47.153"
set interval 2
next
edit "AWS2VPNFO"
set srcintf "AWS VPN 2"
set server "169.254.45.245"
set interval 2
next
end
static routes
next
edit 6
set dst 10.99.0.0 255.255.0.0
set priority 1
set device "AWS VPN"
next
edit 7
set dst 10.99.0.0 255.255.0.0
set priority 1
set device "AWS VPN 2"
next
end
config router policy
edit 1
set input-device "port2"
set src "10.41.5.0/255.255.255.0"
set dst "0.0.0.0/0.0.0.0"
set output-device "AWS VPN"
next
edit 2
set input-device "port2"
set src "10.41.5.0/255.255.255.0"
set dst "0.0.0.0/0.0.0.0"
set output-device "AWS VPN 2"
next
end
The policy routes are completely ignore for some reason and everything reverts back to the default static route.
Any help would be much appreciated.