VPN Tunnel Between Cisco ASA and Juniper SSG Firewalls

November 3rd, 2009

Recently at work I was tasked with configuring a VPN tunnel between Cisco ASA 5505 to a Juniper SSG 320M. After hearing that it wasn’t compatible from many sources including our partners I just could not believe that this was the case, ipsec tunnels are a standard protocol and both Juniper and Cisco should be compatible with ipsec.

After a day of google searches and troubleshooting I couldn’t find a proper solution that was easy and explained properly for my type of standard setup. Here is how I configured an ipsec VPN tunnel between the SSG and ASA.

Cisco ASA 5505

  • IP: 1.1.1.1
  • Network: 192.168.1.0/24

Juniper SSG 320M

  • IP: 2.2.2.2
  • Network: 192.168.2.0/24

192.168.1.0/24 < -> 1.1.1.1 < --VPN Tunnel--> 2.2.2.2 < -> 192.168.2.0/24

Here is the actual configuration including all the access list to allow all traffic through, you will probably want to lock this down as it will allow all traffic through.

Cisco ASA 5505 Configuration

object-group network local_cisco_network
network-object 192.168.1.0 255.255.255.0
object-group network remote_juniper_network
network-object 192.168.2.0 255.255.255.0

access-list ciscovpn_nat_junipervpn extended permit ip object-group local_cisco_network object-group remote_juniper_network
access-list ciscovpn_nat_junipervpn extended permit ip object-group remote_juniper_network object-group local_cisco_network

access-list ciscotojuniper_cryptomap extended permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0

crypto map outside_map 1 match address ciscotojuniper_cryptomap
crypto map outside_map 1 set pfs
crypto map outside_map 1 set peer 2.2.2.2
crypto map outside_map 1 set transform-set ESP-3DES-SHA

tunnel-group 2.2.2.2 type ipsec-l2l
tunnel-group 2.2.2.2 ipsec-attributes
pre-shared-key

Juniper SSG 320M Configuration

set address “Trust” “192.168.2.0/24″ 10.248.1.0 255.255.255.0
set address “Untrust” “192.168.1.0/24″ 10.0.10.0 255.255.255.0

set ike gateway “1.1.1.1″ address 1.1.1.1 Main outgoing-interface “ethernet0/1″ preshare “” proposal “pre-g2-3des-sha”

set vpn “1.1.1.1″ gateway “1.1.1.1″ no-replay tunnel idletime 0 proposal “g2-esp-3des-sha”
set policy id 2 name “1.1.1.1″ from “Trust” to “Untrust” “192.168.2.0/24″ “192.168.1.0/24″ “ANY” tunnel vpn “1.1.1.1″ id 0xa pair-policy 1
set policy id 2
exit
set policy id 1 name “1.1.1.1″ from “Untrust” to “Trust” “192.168.1.0/24″ “192.168.2.0/24″ “ANY” tunnel vpn “1.1.1.1″ id 0xa pair-policy 2
set policy id 1
exit

This configuration will allow traffic from 192.168.1.0/24 to 192.168.2.0/24 and vice versa. On the Juniper side the name of the vpn and gateway I think are important otherwise the Phase 1 negotiation will not work. If I’ve missed something or if you don’t understand something please let me know.

I will probably need to configure this against a Cisco router in the near future so stay tuned for an update for the cisco side.

Abi Rendon Labor, Sysadmin, Technology , ,

Science Vs Religion

June 9th, 2009

The conflict between religion and science astounds me. The philosophical basis of nearly all popular religions stress the importance of humility. Is there a more humble institution than science? Its foundation stands on the idea that you must give up your preconceptions in the face of evidence to the contrary, no matter how much you may be comfortable in your ways. This idea doesn’t only apply to things like the elemental composition of the corona of distant stars, it goes for anything a thinking creature observes in its environment if it wants to do anything more than eat and fuck and swing from trees.

The power to collectively observe and document our world is an incredible gift, and is responsible for everything humanity has created, from the worldwide computer network with which you read this, to the actual written word language in which this opinion is expressed.

To deny science is to deny that which makes you human.

Quote from forum user the_ruiner of somethingawful.com

Abi Rendon Personal ,

Install OSX on Dell Mini 9

April 17th, 2009

With help from MyDellMini.com I’ve installed OS X on my new Dell Mini 9 netbook.

Here’s a few pics from the install.

Abi Rendon Home

CrapHost Logo

April 2nd, 2009

Just testing out a logo for my craphost.com design, this will essentially be a clustered fault tolerant scalable hosting system that I’ve been working on for quite some time. Starting out with craphost.com for beta testing and trying out pricing models and will start up professional services with more features and uptime guarantees as I work out the kinks.

craphost_logo

Current Mood: (sleepy) sleepy

Abi Rendon Projects ,

Adam Carolla Podcast!

February 23rd, 2009

Now that The Adam Carolla Show is off the air he’s moved over to a podcast format, listen to him now!

http://carollaradio.com/2009/02/23/acp-20090223/

Check him out, uncensored and unedited.

Abi Rendon Home ,

iPhone Blog Test

February 19th, 2009

I’m just testing the wordpress plugin for the iPhone. So far it looks like it’s pretty good. I’m still looking for new iPhone apps too.

Abi Rendon Technology

New URL and Design

February 19th, 2009

As some might have noticed, I’ve recently updated my domain to abirendon.com and I’ve also applied a new wordpress theme, just made a few tweaks but it all seems to be working splendidly and it looks good.

I’ll be posting some guides on setting up and configuring VMWare ESXi, converting VMWare Server VMs to ESXi format, configuring a raid 5 array on an MSA20 via linux command line and hopefully some more interesting pictures.

I’ve also just bought an iphone so I’ll probably be messing around with doing updates on the go.

Current Mood: (good) good

Abi Rendon Home, Personal, Sysadmin, Technology , , ,

Snowpocalypse Lynnwood ‘08

December 22nd, 2008

After many warnings and fears there was in fact many a snow fall in the greater Seattle area… I’ve documented my neighborhood and what has come to pass…

Read more…

Current Mood: (pleased) pleased

Abi Rendon Personal ,

New Hardware for WTFServe

November 19th, 2008

Today was a busy day, at Airbiquity we went live with the Ford Sync Project, but before that I did some work for my own project.

We installed some new hardware, this includes 2 new VM servers and a storage array as well as networking equipment.

Read more…

Current Mood: (cheerful) cheerful

Abi Rendon Projects , , ,

I am voting for…

October 30th, 2008

Nobody!

If you’re an American of the United States variety you may have noticed there’s an election going on, and on, and on, and on. It’s been a long standing tradition amongst our culture in this great nation to stretch out events as long as possible, if you’re not picking out presents in August you might as well end it all now because god knows your grandchildren need new socks at the ready for that special day oh so many months away.

Read more…

Current Mood: (apathetic) apathetic

Abi Rendon Home