Configuring OTP SafeNet access in MAG device

First of all, There should two servers, SafeNet & LDAP/Radius server which is including all usernames and passwords. And SafeNet server should be configured to establish sync with LDAP/Radius server in order to pull out all usernames/password.

Second, check with which ports OTP is listening:


Now we should activate the username who’s going to establish the VPN connection via OTP .



Now we need to type the activation code received by the application:

4 >> 5 >> 6 >> 7


Now this is how to configure the OTP connection in the MAG:



  • The shared secret is what you determine in the OTP server settings, e.g SafeNet


Now you configure realm with correct authentication methods:


And all other roles and page policies …


PulseSecure-Generate report about who logged with VPN in a certain period

In new versions such as 8.2R4 , you can easily export it under a new tab that has been added called “Reports”


In versions 8 and below there is a need to run a filter with query :

Goto System> Log/Monitoring > User Access > Filters.
Create New Filter.
Start Date: (Select Month, Date, Year)
End Date: (Select Month, Date, Year)
Save changes.

NOTE: Select start date and end date as per your requirement.

Then navigate to System> Log/Monitoring > User Access > Log.
View by Filter: (Please select the new filter which you created)
Edit Query: (Please enter the below ID’s as per your requirement)

id=’AUT24326′ (To find the Users authentication successful)
id=’NWC23464′ (To fine the VPN tunneling session started )
id=’NWC23465′ (To fine the VPN tunneling session ended )


Click on Update .

Note: in ‘start date” you well see the year which the corrent version has been released. which means if we’re in 2016 and you still using version 7.4R8 you can start only from 2014 , and you can’t start from 2016 . In such cases you need to upgrade the device. As a workaround and I’m not sure if it will work , you can change the date maually X-years foward : (System –> Status –> Overview –> “System Date & Time” –> click “Edit” –> Time Source –> ” Set Time Manually”).


In Juniper SA Series, there is an option to give a secure connection to corporate networks without the use of network connect .

In this example I’ll demonstrate how can we do this with OWA server .





Cashing: To control what browser contents temporarily stored (cached) on the client machine. Which web content the client’s computer will do cashing to it . Usually listed above are generated Automatically , so there is no need for our intervention in the configuration.




Now add the Realms to the SSO , then you can see that an autopolicy created:




  1. Creating the WSAM profile



JSAM is likely more for Apple users.

At this example I will demonstrate how to enter exchange through outlook

Screenshot_3 Screenshot_4

If you wonder why I typed (*) which means (all ports), that because we’re talking about a lot of ports, not only SMTP port .. if you have another helpful idea please put that in a comment .

Don’t forget to click on Add button , and then save and continue .

2. Adding the WSAM to a role :



As you noticed, it created automatically “Supporting Policies”. But if we created the WSAM by “Resource Policies”, then we’ll be have to create a profile, and associate then to each other (complicated) ..

If we configured something wrong in WSAM , this error message will be generated:


We can also add the application by the User Roles> Access features> Applications

Screenshot_8  Screenshot_9Screenshot_10

Note that we add the application same as it shows in the Task Manager