Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 26 guests and 1 member online
You are here:
Home
Resources
Tutorials
NetScreen VPN with Pre-Shared key
EH-Net
May 25, 2013, 02:36:34 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Resources
>
Tutorials
(Moderator:
don
) >
NetScreen VPN with Pre-Shared key
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: NetScreen VPN with Pre-Shared key (Read 2919 times)
0 Members and 1 Guest are viewing this topic.
GarnetNW
Newbie
Offline
Posts: 7
NetScreen VPN with Pre-Shared key
«
on:
August 22, 2012, 09:57:59 AM »
Just a brief list of instructions I made some time ago which may be useful:
Set up a VPN with a NetScreen using a preshared key walkthrough (using the web interface) of a route-based VPN solution between two NetScreens:
Scenario:
Firewall A -> Internet -> Firewall B
1. Log into Firewall A through the web interface
2. Configure your tunnel interface
• Click Network -> Interfaces
• Make sure the dropdown in the top left says Tunnel IF, and click New
• I put mine in the Untrust zone because I want all of my VPN traffic to run through my Untrust->Trust policy
• Click unnumbered and select the Untrust interface
• click OK
3. Configure your VPN Gateway
• Click VPNs -> AutoKey Advanced -> Gateway
• click New
• Name the gateway "FirewallB-gw"
I always select the custom security level, you'll see why in a following step
• Enter the public IP address of Firewall B
• Carefully enter your preshared key
• Select Untrust for your outgoing interface
• Click Advanced
• Select User defined (custom)
• In the first dropdown select pre-g2-aes128-sha
• Click Return at the bottom
• Click OK at the bottom
4. Create the VPN
• on the menu on the left select VPNs -> Autokey Advanced
• click New
• name it FirewallB-vpn
• select Custom
• leave predefined checked and select your FirewallB-GW in the dropdown
• click Advanced
• select Custom
• In the first dropdown, select g2-esp-aes128-sha
• Turn on replay protection
• Bind to tunnel interface, and select your tunnel interface you created in step 2
• Turn on VPN monitor (this will bring up the VPN right away and keep it up even when there's no traffic on it)
• Click Return
• Click OK
5. You need to add routes to the remote network. You can configure the tunnel interfaces to run OSPF, or you can add a static. I will tell you how to add a static.
• On the menu click Network -> Routing -> Destination
• Click new
• Type in the network address behind Firewall B
• Select Gateway
• Select your tunnel interface in the dropdown
• Click ok
6. Add your policy to allow access to/from the remote network. If you are not in NAT mode on your trust interface, make sure you check position at top when creating a Trust->Untrust rule, or it will NAT the traffic to your Untrust IP or DIP pool and then send it across the tunnel, which you probably don't want. Create an Untrust->Trust policy which allows access from the Network behind Firewall B to hosts or the network behind Firewall B. You probably want to allow Ping at a minimum.
7. Repeat steps 1-6 on Firewall B. Substituting Firewall A's data.
The VPN should pop up and everything should work. You can also use the little wizard. If one or both of your NetScreens is behind something that does NAT, you will also have to turn on NAT traversal on both ends.
If you don't want static routes and want to use OSPF instead, create an OSPF instance under the trust VR. Make sure you add the tunnel interfaces and your internal interfaces to it, and tell it to advertise your private networks. You will then have to go under each interface that you added, and turn on OSPF. On tunnel interfaces, you can enable demand circuit and add it to the area, apply the changes, and then Enable OSPF on it.
Regards
Garnet
Logged
"Remember there is no engineering problem that can't be fixed with an appropriate sized hammer and at the end of the day.....It gets Dark"
Jamie.R
Sr. Member
Offline
Posts: 429
Re: NetScreen VPN with Pre-Shared key
«
Reply #1 on:
August 22, 2012, 10:47:02 AM »
Thanks is this somthing you done for a home lab ? or more of a job for work ?
Logged
OSWP | Hackingdojo Nidan | eCPPT
fred
Sr. Member
Offline
Posts: 351
The World is sick, Save your mind...
Re: NetScreen VPN with Pre-Shared key
«
Reply #2 on:
August 24, 2012, 03:02:59 AM »
ofcourse vpn with cretificate is much secure than pre shared key thanx
Logged
ICS Academy Network Security Certified
Grendel
Full Member
Offline
Posts: 242
Re: NetScreen VPN with Pre-Shared key
«
Reply #3 on:
August 25, 2012, 01:22:54 AM »
Quote from: Cyber.spirit on August 24, 2012, 03:02:59 AM
ofcourse vpn with cretificate is much secure than pre shared key thanx
Not sure I'd agree with that. Pre-shared keys means both parties know who is on the other end. Use of certificates in PKI only means the person with the public key knows who is on the other end - system with the private key has no clue who the other system is.
Logged
- Thomas Wilhelm, MSCS MSM
ISSMP CISSP SCSECA SCNA IEM
Web Site:
http://HackingDojo.com
Author:
Professional Penetration Testing
Ninja Hacking
Penetration Tester's Open Source Toolkit
Metasploit Toolkit for Penetration Testing
Netcat Power Tools
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.