This article provides information on how to access remote protected resources, which are distributed over multiple zones, by using Dynamic VPN.
How to access remote protected resources, which are distributed over multiple zones, by using Dynamic VPN.
This article includes only the additional configuration which is required for a Dynamic VPN user to to reach remote protected resources in multiple zones. For a detailed explanation on how to configure a dynamic VPN, refer to TN7 - Configuring Dynamic VPN (Remote Access VPN Client .
Assume that the SRX is configured to lease the dynamic-vpn user an IP address in the scope 10.10.10.0/24 .
dynamic-vpn { access-profile dyn-vpn-access-profile; clients { all { remote-protected-resources { 10.1.1.0/24; 10.1.2.0/24; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dyn-vpn; user { test; } } } }
dynamic-vpn {
access-profile dyn-vpn-access-profile;
clients {
all {
remote-protected-resources {
10.1.1.0/24;
10.1.2.0/24;
}
remote-exceptions {
0.0.0.0/0;
} ipsec-vpn dyn-vpn;
user {
test;
zones { security-zone untrust { address-book { address 10.10.10.0/24 10.10.10.0/24; } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { ge-0/0/0.0; } }
zones {
security-zone untrust {
address-book {
address 10.10.10.0/24 10.10.10.0/24;
host-inbound-traffic {
system-services {
all;
protocols {
interfaces {
ge-0/0/0.0;
policies { from-zone untrust to-zone trust { policy dyn-policy-trust { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn dyn-vpn ; } } } } } from-zone untrust to-zone DMZ { policy dyn-policy-dmz { match { source-address 10.10.10.0/24 ; destination-address any; application any; } then { permit; } } } }
policies {
from-zone untrust to-zone trust {
policy dyn-policy-trust {
match {
source-address any; destination-address any; application any;
then {
permit {
tunnel {
ipsec-vpn dyn-vpn
;
} from-zone untrust to-zone DMZ {
policy dyn-policy-dmz {
source-address 10.10.10.0/24 ; destination-address any; application any;
} then {
permit;
Notice that only one policy refers to the VPN tunnel ( dyn-policy-trust ). This policy serves the following functions:
proxy-id,
It determines if the traffic which is coming out of the tunnel and going into the trust zone is allowed.
The Junos Pulse VPN client will attempt to negotiate and bring up two IPsec SAs (one for each subnet that is defined in the remote-protected-resources) and they will be accepted based on the dyn-policy-trust policy. After the VPN tunnel has been established, the ESP packets that arrive at the SRX device will first be decrypted, before a policy lookup is performed:
For the policy that is inside the untrust to DMZ zone, notice that it specifies the source address as the dynamic-VPN user's assigned IP pool. This is to ensure that no other traffic from the untrust zone is able to access the DMZ zone and only the decrypted traffic from the VPN tunnel is allowed.