Solved

Fortigate IPSEC VPN with NAT to Cisco

Posted on 2010-08-24
5
7,351 Views
Last Modified: 2012-06-22
Hi there,

I am trying to configure my fortigate 60b to IPSEC to a remote VPN site but has failed badly. The remote VPN is managed by an external vendor and the log provided by them shows

--------Cisco Log--------
%ASA-5-713075: Group = 192.168.10.1, IP = 192.168.10.1, Overriding Initiator's IPSec rekeying duration from 90000 to 28800 seconds
%ASA-6-602303: IPSEC: An outbound LAN-to-LAN SA (SPI= 0x3204778E) between 165.21.21.21 and 192.168.10.1 (user= 192.168.10.1) has been created.
%ASA-5-713049: Group = 192.168.10.1, IP = 192.168.10.1, Security negotiation complete for LAN-to-LAN Group (192.168.10.1)  Responder, Inbound SPI = 0x282d31a3, Outbound SPI = 0x3204778e
%ASA-6-602303: IPSEC: An inbound LAN-to-LAN SA (SPI= 0x282D31A3) between 165.21.21.21 and 192.168.10.1 (user= 192.168.10.1) has been created.
%ASA-5-713120: Group = 192.168.10.1, IP = 192.168.10.1, PHASE 2 COMPLETED (msgid=760d9eaf)
%ASA-4-402116: IPSEC: Received an ESP packet (SPI= 0x282D31A3, sequence number= 0x1) from 192.168.10.1 (user= 192.168.10.1) to 165.21.21.21.  The decapsulated inner packet doesn't match the negotiated policy in the SA.  The packet specifies its destination as APP_SVR_A, its source as 10.65.57.235, and its protocol as 6.  The SA specifies its local proxy as 192.168.123.0/255.255.255.224/0/0 and its remote_proxy as 192.168.10.1/255.255.255.255/0/0.
----------------

The following is a brief desription

192.168.10.1 = Local WAN interface
165.21.21.21 = Remote VPN gateway
192.168.123.0 = Remote network behind VPN gateway
10.65.57.224/255.255.255.240 = Outgoing NAT IP
APP_SVR_A = Some remote server
10.65.57.235 = client NAT IP

Basically I need to configure the Fortigate to establish IPSEC to remote Cisco device. The ACL over at remote site specifies that only client from 10.65.57.224/255.255.255.240 can access the remote network. So NATing is required to NAT all outgoing traffic.

The following is the fortigate 60b config

---- start firewall config ----
set srcintf "internal"
set dstintf "wan1"
set srcaddr "Local Network"
set dstaddr "Remote Network"
set action ipsec
set schedule "always"
set service "ANY"
set natip 10.65.57.224 255.255.255.240
set inbound enable
set outbound enable
set natoutbound enable
set vpntunnel "VPN DR"
---- end firewall config ----

---- start phase1 ----
set interface "wan1"
set nattraversal enable
set dhgrp 2
set proposal 3des-sha1
set keylife 172800
set remote-gw 165.21.21.21
set psksecret ENC <somekey>
set keepalive 900
---- end phase1 ----      

---- start phase2 ----
set dhgrp 2
set keepalive enable
set pfs enable
set phase1name "VPN DR"
set proposal 3des-sha1
set replay enable
set dst-subnet 192.168.123.0 255.255.255.224
set keylifeseconds 90000
---- end phas2 ----

As the remote equipments are controlled by external party, the cisco vpn gateway configs were not available. Except the log that was provided.

Can any expert please explain what is meant by the Cisco log? particularly the last line. And how should i configure my fortigate to work with the remote cisco device?
0
Comment
Question by:hayami
  • 2
5 Comments
 
LVL 24

Assisted Solution

by:rfc1180
rfc1180 earned 250 total points
ID: 33517262
Tell the ASA side to change the ACL from 192.168.10.1 255.255.255.255 to 10.65.57.224 255.255.255.240;

your config looks fine, the ASA Cisco log shows what is happening:

Phase 2 is completing, but there are no matching Proxy IDs
You are natting, so I am not sure what more they want, but really tell them to change the ACL to 10.65.57.224 255.255.255.240 from 192.168.10.1 255.255.255.255


Billy
0
 

Author Comment

by:hayami
ID: 33517327
unfortunately that is not going to happened because the vendor is incharged of the other side and they claimed that fortigate can be configured to meet their needs. unless based on the logs i can find that their ACL is wrong, else there is nothing i can do but to try to make it work.

i am particularly curious of this line

The SA specifies its local proxy as 192.168.123.0/255.255.255.224/0/0 and its remote_proxy as 192.168.10.1/255.255.255.255/0/0.

does it mean that the SA is expecting 192.168.10.1 to access instead of 10.65.57.224 255.255.255.240?
0
 
LVL 24

Accepted Solution

by:
rfc1180 earned 250 total points
ID: 33517381
>does it mean that the SA is expecting 192.168.10.1 to access instead of 10.65.57.224 255.255.255.240?
Yes

their side is wrong, you can not NAT to the outside interface if it is the end point IP. They probably do not want you to use rfc1918 space, so if you have any available public space, you can use that instead.

Billy
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 34434134
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now