Friday, February 1, 2013

JNCIS-AC labs

JNCIS-AC labs

Ok, labs with a notepad.
Sorry, that is life.

NSM express will run you around 3K used.
SRX 210 around $500
ssg 20   $200
Terminal server   $500
MAG $5000
MAG CMC $5000
MAG 6611 Chassis $3000
You'll need the licenses etc.

and you can't find the stuff used.
You'll probably need the Jcare to update them.
Partners get a discount but to be honest your manager will probably collapse with a coronary
if you present him with the bill.

There is no virtual lab either.
You can try Ingram Micro or beg Juniper for some access.


The course lab is simple.


So the PC will have
Pulse
OAC
JAVA
Agentless

The Server will have the resources you want.
The firewall will handle the IPSEC and Enforcement point.
The AC will have the AC stuff.


First lab is to configure the MAG.
Connect the Console to the MAG.

The installation is
9600
no flow

The text will ask to proceed Y
Agree to the license Y
IP
Subnet
Gateway
DNS
DNS domain
WINS

is all of this correct Y.
So far easy.
Create a user  ADMIN
password

Create a self certificate using
common name      is server.domain.com
orgazniation name   domain.com

random text and it will generate the certificate.

https://IP-ADDRESS/admin

Now if you still want to see the CLI
You get the options you can choose from using a number.
1. Network Tools    like ping arp
2. Create Admin username password
3. Display log
4. System options.
5. Toggle password protection for the console
6. Create a super user that dumps the others and lets you in.
7. System snapshot for backup.
8. Reset encryption to a lower  40 so you can export it.

select 1 and 5 and you can ping a gateway.

Upgrading the Software.
Go to Juniper website and download the latest version.

Sign in
https://ac1.pulse.local/admin          admin is for administrators   without it it is for users.


Chapter 16 - Netscreen as enforcement firewalls

Chapter 16 - Netscreen as enforcement firewalls




In NetScreen OS you will see a Shield on the Policy  that will indicate a infranet-auth policy invocation.

Source IP will match
Then permit will point to the INFRANET

the INFRANET will check if the traffic is allowed.

You can add VPN  they recommend you configure it from the MAG.

Policies
Resource
IPSEC VPN
Source Interface
AUTH table mapping
IP address pool for the NAT.

Resource Policy defines which users can allow or deny to resource
AUTH table match the user request with the resource policies

Generic source policy on the enforcer
MAG pushes the resource policy to the nforcer
End user auth to the MAG
maps the roles
Same thing- the Enforcer does not know if you are allowed only that you need to check for permission.

The dropping and then querying is called
Dyanmic auth table allocation.

source IP policy : permit any any any infranet-auth
it is basically a placeholder that will call the MAG to provide the details of the access.

release 6.1 or later allows you to specify an IPSEC policy to a zone
less than that you need to each resource.

you need resource access policy
and VPN setup policy for it to work

You can map specific roles to low end devices so their Auth table does not overflow.
6.1 and above uses dynamic Auth table.

Source INTERFACE policy
is useful when the device is in transparent mode.

You can set up NAT with IP address pools.
If the device connecting is behind a NAT the MAG can give it a VIP address
to use for the IPSEC ???

On the UAC > Infranet enforcer you set up a IPSEC tunnel.
Then you set up a resource policy to the reousrce (ip)
apply it to your chosen roles.
then you can add additional  AntiSpam-IDP-Antivurs from the firewall.

In the IPSEC policy you set up the virtual adapater if you want.
then apply it to the roles.

on the AUTh table Mpaping you can delete the default policy and limit it to specific  roles.

on the IP address pools you set up the IP address pools for the VIP addresses that will be given to the VPN

Verify
>get policy id 1it will say permit-infranet-auth
> get auth table    to see if there are any users

You need a IPSEC policy for each interface that can be receiving the traffic.
>get policy id 3
tunnel-infranet-auth status enabled.



Chapter 15 - Junos Pulse Chassis Management

Junos Pulse Chassis Management

So


The CMC Chassis Management is the top left corner.
It allows you to manage the Chassis itself.

This is available on the 6610 and 6611
Runs Junos OS.
Gives you a Visual representation of the Chassis.



Nice,
It says SA for Secure Access
and IC for UAC
SSO for all the modules.

Configuration 
You need to console in
Run the EZsetup wizard
System Hostname    CM2
Root password
Enable Telnet
Enable SSH   [yes]
configure management EM0.0
IP
Subnet
Gateway
Configure SNMP   [yes]
Contact information for the administrator
community name for the SNMP
Physical location   optional
System time and date
Time zone [yes]   you will select it from the list.

YES  will configure the settings you have done.

OK from the device
root@CM2 >  request security pki generate-key-pair certificate-id   local_cert
root@CM2 >  request security pki generate-certificate-request certificate-id   local_cert1 domain-name cm2.pulse.local subject 

this will generate the certificate request which you can submit to the CA.

When you are done you can load the certificate to the CM-060 using FTP or SCP
load it to local storage
request security pki loacl-certificate load filename /var/tmp/cm.2.cer  certificate-id local_cert1

edit  goes into configure mode
#set system services web-managemenet https port 443 interface em0.0 pki-local-certificate LOCAL_CERT1


So we generated a key-pair
generated a certificate request based on the pair.
Sent this to a server and got back a file answer.
Uploaded this file to the CMC using FTP SCP
Then we loaded it up to device from a our upload location
Then associated it with HTTPS so this will enable https with the certificate on the interface.

Only the management port supports SSO
Clocks must be synchronized to 5minutes or less.
Add the certiifcate to the Auth Servers on the Service modules.

To configure SSO You need to configure the address.
Configure > System proerties > Blade Single Sign On
then change the FPC for each blade.

On each SM you need to import the same certificate you got on the CMC.
- System  > Auth Servers          Chassis Auth Server
upload certificate

Click to launch SSO and you will be in the device of your choice.

Chapter 14 - Junos Pulse Access Control integration



IF-MAP transfers the session from the Secure Access
to the Access Control   seamlessly.
The same thing happens when you access items protected by another Access Control Device.
This is done with a single Login.
IF-MAP is part of the TNC. Trusted Network Connect.

Only the Junos Access Control Service can server as an IF-MAP server.
For that you would need a license.

IF-MAP is a repository of information about the sessions, roles etc.
Each device can connect to the server and get a subset of choice of the data and also update
the server.  So the Secure Access can put some data in and then the Access control can connect
use that data and apply it to its session.

Server IF-MAP license       MAGX600-iFMAP you need to buy the license for this.




Okay in system IF-MAP overview


Select the - system > IF-MAP federation
Select the server from the choices
Then add clients that will communicate with this server. They need a password or certificate.

(IF-MAP clients do not need a license)

On a client.
Select IF-MAP client
Then add a server URL   httsp://ac1.pulse.local/dana-ws/soap/dsifmap
Then add the user and password.

On the clients you set up an Export-Policy.
They will export it to IF-MAP data to the Server

On the clients you set up an Import-policy.
This will interpret the IF-MAP data from the server into roles.

On the IF-MAP client you can see the Active Users TAB
This will give you the data that is being IF-MAPed

On the IF-MAP server you can see the sessions that have been exported/published to it.
Same here.





NSM
Network Security Management.
This is basically an appliance currently that allows you to manage SRX and NetScreen.

You can buy it currently however they are phasing it out for the Junos SPACE

The Firewall has three ways of getting configuration data.

  1. This is the CLI or webmanagement of the device itself (obvious)
  2. Junos Pulse Access Control service   - because we linked them.
  3. NSM - NSM centrally manages the firewalls.
It is best practice to make the NSM the authorative one.
Update the Pulse   - you can click   refresh policies
Avoid CLI changes to the devices that are under the NSM.


Now, we can add the Pulse to the NSM to make life easier.
Procedure is.

  1. Install the Junos Pulse Access Control device (MAG)
  2. As Junos Pulse Access Control Service on the NSM
  3. Configure and Activate the DMI agent on the Pulse Access Control
  4. Confirm connectivity and import the configuration into the NSM.
Let's see how its done.
DMI is a set of protocols that run on TCP.
Netconf , XML alarms and structured syslog.
One DMI agent is per device.






Under the TAB DMI Agent.
{} Inbound if you are using SSH to manage the device.
{} outbound enabled    if you are talking to the NSM
Set up the port to accept on  which is 22 ssh
Set up the "outbound connections"   primary, backup ports , device and HMAC key   7804
Admin Realm
{} DMI logging 



STRM
STRM Security Threat response Manager
is basically an event collection and correlation point for collecting all the logs from the security
devices, this way you can view them centrally.
This helps associate security breaches with a user and not only an IP.

This is what it looks like
It has hardDrives to store the data of the logging.

Let's configure it.
This is done under
System > log/monitoring    you add syslog servers
you can also filter what to log.



IDP
Juniper has IDP sensors either as dedicated devices.

or on the SRX family.


*If the IDP is a stand alone IDP like the ones above.
Then you need to manually configure the list of IPs for the device to monitor

*If the IDP is a module on the Enforcer (SRX/SSG)  then the module
will get the IPs to monitor from the Dynamic Auth table.


The IDP detects malicious traffic.
It notifies the Junos Pulse Secure Access Control Service. 
Which will take an action on the user session.
{They will send the IP ports the attack, time and the severity}


Actions - So the actions you can take can be Manual (by looking at the Active USers)
Automatic - Drop him, disable the user, remediate the user to another role.
The Junos Pulse will display an error message to the disabled user.



Configuration

Adding a standalone IDP sensor:
-System > configuration > SensorsAdd the sensor - The port on which to listen
the password 
Manually enter the addresses to monitor and the severity that you want. 1 to 5   5 is critical.

Adding a Sensor on an Enforcer:
You can also configure a Sensor on the INFRANET ENFORCER (firewall) by
-UAC  > Infranet Enforcer > connection > enforcer
{} USE IDP module as sensor.
This will use the DYN auth table for the choice of IPs to monitor.
Both have Severity filters that determine what level is reported to the Secure Access.
1-5 
Policies will be in the Configuration > Sensors > Sensor event policies
You create a RULE based on the IDP signals that come in .
So EVENT 
then action    ignore/terminate/disable user/replace his role

Then you select on which ROLES to apply this rule.

On System>> Status>> Active Users
you can see the users and run manual actions on them or reenable them if you want.

So IF-MAP Advantages are
single Sign on
You can get service from any AC in the federation
You can move the Session from the SSL to AC seamlessly .



Chapter 13 - High Availability

In Junos Pulse.
A cluster pair is two unit
A cluster multiunit is more than two which means 4.

Cluster can be an Active/Active or an Active/Passive.

Active Passive
Always uses VIP
they sync the state
The Active device sends ARP to the VIP.
When it fails the Passive device will send ARP to the VIP.


Active/Active
Can be done with a
1. Load Balancer
2. DNS round robin- the negative about this is that in case of failure you lose 50% of traffic.

This also gives you more throughput but the same licensing.

Must be the same LAN IP SUBNET in order for that to work.
State synchronization is done using the internal NIC
Must be the same hardware the same OS version
All of the resources must be accessible to all of the devices.


Alright.
When to use VIP Virtual IP.

If you have Pulse and Odyssey they download a list of cluster members and will switch to the next one.
Agentless must use the VIP.


This is another case of using VIP.
This time for the enforcer.
You can either use the VIP address for it.
Or create many instances of the MAG for it. Because they are all in sync it does not matter.



Synchronizing the information from device to device.
Information is synched using the internal interface.
There is a cluster password.
New member will send a message to the existing server asking for a synchronization.
After that you must reconfigure node-specific settings.

Transient information can be synched using.
Unicast, Brocadcast or Multicast
Session data and enforcer status

Nodes will have the service pack, so when you update one it will update the others.

Doing this
A cluster license is not required on the first node
Only on the nodes that join the cluster.

So
System > Clustering > Join Cluster      then add a cluster name password and name of the member.

You can click PROPERTIES on the cluster and switch it from Active/Active to Active/Passive
You can also set up an EXTERNAL VIP and an INTERNAL VIP.

For ACTIVE/ACTIVE to have a VIP you must use a loadbalancer.

You can set up Synchronization.
{}Logs
{} user sessions
{} last time access time for the user sessions

You can change the number of ARP ping failures before the interface is disabled from 3
{} disable the external interface when the internal one fails.

{} advanced settings will change the number of timeouts for the underlying cluster.


OK.

Adding cluster members and checking the status.


You can add a load balancer from the
system > Network > Load Balancer.

You can go to the next device
System>Clustering > Join Cluster


on the
system > Status
you can see a member status window
or you can go to the CLUSTER Tab to see their status.



Configuring the Cluster on the Firewalls.
For the Firewalls you can have Active/Active  or Active/Passive
Active/Active does not support IPSEC


In the INfranet Enforcer
You can add two serial numbers to the Platform.

In the Firewall you simply replace the AC1 with the VIP address
or you create a number of infranet-controller

Ok.
So Active / Active does NOT need a VIP it will use the Load balancer

Active/passive  if you have an internal IP use the internal VIP
If you have an external IP too then you need to create an External VIP too.

Synchronize the users is an options
So is the synchronize the log messages.

{}disable external when internal fails, this is for the active/passive.

Clustering STATUS
will show you who is set.

_system > clustering > load balancer
is where you define the load balancer and if it is between endpoints or the Enforcer.



Chapter 11 authentication





authentication >> auth servers
select the type
local - we used this
ldap   -
NIS
ACE
RADIUS
AD     -    windows LDAP
anonymous Server
SiteMinder
Certificate
MAC address authentication which we used before.

So when the user SIGNS in  he will specify which REALM to use
a REALM is associated with an Authentication Server
The Authentication server will very the user exists and give approval
The Authentication server will also send group attributes.
The Junos Pulse Access Control will evaluate role-mapping rules to see what role to apply to the group.



LDAP
NAME :                   # Give this server a name
LDAP server              # give it an IP
LDAP port             #give it a port       389 usually  or 636 ssl
Backup Ldap1
Backup LDap2        #backup servers
LDAP server type
connection of Unencrypted/ LDAPS / TLS
Connection timeout
Search timeout

Active Directory is annoying in that it requires a username with permissions to search the ActiveDirectory.
So for AD mark the check box for Authentication and provide  a user and password.

If you want to allow users to change their LDAP/AD passwords from the MAG you must
provide an Administrator account in this too.


You will specify a Base DN to start from
dc=sales,dc=bobcat,dc=com

You will specify a Filter like   cn-user
Strip domain from users  so users can use   bobcat/David   format.
It will remove the Bobcat and use it as the Domain.


You can determine group membership by setting up the
BASE DN
Filter
member attribute
query and 2 nested levels is the best practice.
Static or Dynamic.



RADIUS 1812 183
In this scenario the MAG is a client of the BIG radius
Name
NAS_identifier        - is the name that the MAG will use when courting the RADIUS
Server IP
Port 1812
backup server if you want.

Radius Accounting
RADIUS authntication can be enhanced by using RADIUS accounting.
This is when you tell the RADIUS the user just logged in
You do this by sending a Start message after success singing in
and a STOP message after logging out/denied/tiemout/admin intervention.

This is the template you send that data as

You set up a template for returning the data
<USER>(<REALM>)|<ROLE SEP=
so user    domain    then the roles separated by a comma.




Active Directoy and NY authentication 
Name
Primary Active Directory
backup
Domain
administrator
password for  administrator to the AD.


Authentication using
Kerberos   NTLM v2  NTLMv1
only Active Groups.

anonymous authentication
This is for guests.
You use this to limit resources for them.
only define the NAME

users >> user realm  > new user realm
assign a server to it.
Junos Pulse Secure Access Service:
Users > User Realms

You can have different ones for each item.
authentication    let's say Radius
directory/attribute:  let's say AD
accounting :  let's say Radius.
refresh the roles if you want every 60 minutes to see if there was any change.
{}So refresh role will be for new sessions
{}refresh resource policies might kill current sessions.

Create a policy
ip limit

user realms> AD realm >> authentication policy >:>>SSO
single sign on a checkbox.
Stations must be members of the domain.
You sign in to the workstation and your credentials will be used for the Junos Pulse.




Creating Role-mapping RULES
First one is Username so you can manually map usernames to roles.
like fred, bob, muhammad  role IT engineers.
User Attribute is from the LDAP or Radius   - Click update to see the attributes you can select
Certificate - map them based on scertificate attributes.
Group Membership  -  this is only for LDAP or AD.

o= organization
cn=container
ou=organizational unit
Try remembering AD and LDAP from Microsoft.
Cc977992.DSBB12(en-us,TechNet.10).gif

also o   can be used for organization
C for country


The Rules are.   IF user has any of the following attribute values.
The value can be IS or ISNOT

THEN assign him the role.
(select a role)



Chapter 10 - Endpoint defense


Chapter 10 Endpoint defense.
Basically the Host Checker feature

Host Checker is a client side agent that performs checks by collecting IMC  integrity measurements   then sends thos measurements to the   IMV  which is teh MAG.
It can also check software,signatures, third party DLL certificates or similar.

It is compliant with the TNC trusted network connect.

This works in two ways.
If the device has Junos/OAC  it has IMCs
If the device is java or agentless MAG will send him the IMCs.
The IMCs collect data and send it to the IMV  (MAG)

There are two ways of using it.
One on the Authentication REALM as the device is entering the network.
The second is on the ROLE. so if it does not meet the IMV  it will not be given the role.

Deny or Fix(remediation)

Steps.
Create the Host Checker policies.
Apply the policies to the REALM or the ROLE
specify user access to the hostchecker client
set up loggin.

- authentication >> endpoint security >> host checker
autoupgrade option
and the package to use.
First ivs VIRUS it can check for the signatures of AV software. list is XML
Second is patch , you can get a patchdata.dat
Third you can update the ESAP.   Endpoint security assessment plug-in.

Create the POLICY. of what to check.
Yo uwill specify what happens on every operating system  and what checks will be done on it.
The checks will change based on the operating system
They are rule checks for example. Require latest AV
You can also set up Remediation options if those items are NOT met.
Ports
Process
Files.
Registry keys
MAC
MAchine certificate must have a CN of your domain for example.
Patch Assesment.

You can require ALL of the rules
ANY of the rules
or create rule-set combos.

REMEDIATION
you can offer manual or system.
Manual are instructions
Automatic are killing processes deleting files.
you can also send the reasons to the user.

After the user fails he will be given two options.
Try again or enter without a certain role.

Message
Your connection has failed and the remediation page.

EES is an additional scanning license Enhanced Endpoint security.
It protects against MALWARE and AV.


Setting up the policy on the realm.
user >Authentication Realms >   user_realm
First is source IP
Browse limit
Certificate limit
Pssword limit
host checker resutls

Last is you can apply restrictions based on the host check results
so if they did not pass they only get a limited ROLE>