Policy-based VPN - Both Sides have Static IPs using Pre-shared Keys in ScreenOS 6.x
How do I create a Policy Based LAN to LAN VPN using Preshared Keys (ScreenOS 6.0 and later)
| Knowledge Base ID: | KB15074 |
| Version: | 1.0 |
| Published: | 26 Aug 2009 |
| Categories: |
Firewall/IPSec_VPN IPSec ScreenOS |
Problem:
Environment:
Solution:- Preshared secrets
- Policy Based VPN
- Static IP Addresses on both gateways of VPN
This example assumes static IP addresses are assigned on both VPN devices in the VPN tunnel.
The preshared secret used is netscreen.
The matrix below will show the proposals we will use for this example:
Site A B Untrust IP of Firewall 1.1.1.1 (eth0/0) 2.2.2.1 (eth0/0) Trust Network 10.1.1.0/24 172.16.10.0/24 Phase 1 Proposal pre-g2-3des-sha pre-g2-3des-sha Phase 2 Proposal g2-esp-3des-sha g2-esp-3des-sha
Site A:
- Click VPNs > AutoKey Advanced > Gateway
- Click New
- Gateway Name: Site B GW
- Remote Gateway: Click Static, and enter IP address 2.2.2.1
- Click Advanced
- Preshared Key: netscreen
- Outgoing Interface: ethernet0/0 (or whichever interface goes out to the Internet)
- Security Level, User-defined: Select Custom, and select Phase 1 Proposal: pre-g2-3des-sha
- Mode (Initiator): Main
- Click Return
- Click OK
- Click VPNs > Autokey IKE
- Click New
- VPN Name: Site B VPN
- Remote Gateway: Click Predefined, and select Site B GW from the pulldown menu
- Click Advanced
- Security Level, User Defined: Select Custom, and select Phase 2 Proposal: g2-esp-3des-sha
- Click VPN Monitor (recommended)
- Click Optimized (recommended)
- Click Rekey (recommended)
- Click Return
- Click OK (Important)
- Click Policy > Policies
- Select From Trust to Untrust Zone, and click New
- Source Address: Click New Address, and enter 10.1.1.0/24
- Destination Address: Click New Address, and enter 172.16.10.0/24
- Service: Any
- Action: Tunnel
- Tunnel: Site B VPN
- Check Modify matching bidirectional VPN policy
- Position at Top: Enabled
- Click Ok
Site B:
- Click VPNs > AutoKey Advanced > Gateway
- Click New
- Gateway Name: Site A GW
- Remote Gateway: Click Static, and enter IP address 1.1.1.1
- Click Advanced
- Preshared Key: netscreen
- Outgoing Interface: ethernet0/0 (or whichever interface goes out to the Internet)
- Security Level, User-defined: Select Custom, and select Phase 1 Proposal: pre-g2-3des-sha
- Mode (Initiator): Main
- Click Return
- Click OK
- Click VPNs > Autokey IKE
- Click New
- VPN Name: Site A VPN
- Remote Gateway: Click Predefined, and select Site A GW from the pulldown menu
- Click Advanced
- Security Level, User Defined: Select Custom, and select Phase 2 Proposal: g2-esp-3des-sha
- Click VPN Monitor (recommended)
- Click Optimized (recommended)
- Click Rekey (recommended)
- Click Return
- Click OK (Important)
- Click Policy > Policies
- Select From Trust to Untrust Zone, and click New
- Source Address: Click New Address, and enter 172.16.10.0/24
- Destination Address: Click New Address, and enter 10.1.1.0/24
- Service: Any
- Action: Tunnel
- Tunnel: Site A VPN
- Check Modify matching bidirectional VPN policy
- Position at Top: Enabled
- Click Ok
If you followed the steps above, and now you need help troubleshooting, refer the VPN Configuration & Troubleshooting Guide.
Configuration