JuniperForum.com
March 12, 2010, 12:18:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: If you have an interesting idea for an article or knowledgebase entry, please submit it!
 
   Home   Help Login Register  
* *
written by signal15 | 31813 Views | Rating: (10 rates)
I work for a Juniper reseller and spend a lot of time going to client sites to configure VPNīs, and many people havenīt figured out how to set up a VPN with a Netscreen using a preshared key. So, hereīs a 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
    1. Click Network -> Interfaces
    2. Make sure the dropdown in the top left says Tunnel IF, and click New
    3. I put mine in the Untrust zone because I want all of my VPN traffic to run throug my Untrust->Trust policy
    4. Click unnumbered and select the untrust interface
    5. click OK
  3. Configure your VPN Gateway
    1. Click VPNs -> AutoKey Advanced -> Gateway
    2. click New
    3. Name the gateway "FirewallB-gw"
    4. I always select the custom security level, youīll see why in a following step
    5. Enter the public IP address of Firewall B
    6. Carefully enter your preshared key
    7. select untrust for your outgoing interface
    8. click advanced
    9. select User defined (custom)
    10. in the first dropdown select pre-g2-aes128-sha
    11. click return at the bottom
    12. click OK at the bottom
  4. Create the VPN
    1. on the menu on the left select VPNs -> Autokey Advanced
    2. click New
    3. name it FirewallB-vpn
    4. select Custom
    5. leave predefined checked and select your FirewallB-GW in the dropdown
    6. click Advanced
    7. select custom
    8. in the first dropdown, select g2-esp-aes128-sha
    9. turn on replay protection
    10. Bind to tunnel interface, and select your tunnel interface you created in step 2
    11. turn on VPN monitor (this will bring up the VPN right away and keep it up even when thereīs no traffic on it)
    12. click Return
    13. 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.
    1. on the menu click Network -> Routing -> Destination
    2. click new
    3. type in the network address behind Firewall B
    4. Select Gateway
    5. Select your tunnel interface in the dropdown
    6. 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 FirewallB to hosts or the network behind FirewallB. 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 thing, but I havenīt tried it. If you use it, I donīt think it picks the most secure cipher for P1 and P2, this is why we set this up manually. 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, you can 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.

Navigation

Donate

Please consider donating if we've saved you time or money. It helps pay for the bandwidth, equipment, and hosting charges to keep this site running

Tools

Submit Article/KB - Do not submit questions here.

Recent

Stats

Members
Stats
  • Total Posts: 38039
  • Total Topics: 9827
  • Online Today: 18
  • Online Ever: 393
  • (August 06, 2008, 07:40:57 AM)
Users Online
Users: 0
Guests: 16
Total: 16
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.184 seconds with 30 queries.