Deploying VMware NSX in your Home Wokstation

NOTE: You need a PC running with atleast 32GB of RAM which can be divided into following

Things required are
1.VMware Workstation 15.0 or above.
2.Windows server 2012 R2 used as DNS and AD server in it (2GB RAM enough)
3.vCenter Server installed in Vmware workstation directly with minimum 10GB RAM, Total Processors cores=2
4.ESXi Host1 installed in VMware Workstation directly with 16GB RAM and total Processors cores=12
5.ESXi Host2  installed in VMware Workstation directly with 6GB RAM and total Processors cores=2
6.NSX Manager will be installed in ESXi Host 1 with 4GB RAM while deploying .ova.
7.NSX Controller will also be installed in ESXi Host1 with 2.5GB RAM.
8.For testing purposes you can install Windows O.S or  Linux O.S in both ESXi Host1 and Host2

Once above servers are installed then its time to install NSX Manager and NSX Controller.
Deploy VMware-NSX-Manager-6.4.5-13282012.ova in ESXi Host1. After which install NSX controller.
If you have license you can download directly from VMware site.

++Windows 2012 R2 is used as a storage device. Create a storage space of 100GB in the server. Create a iSCSI interface at ESXI Host1 and ESXi Host2 , copy paste iqn name in both server and ESXi host, make sure there is connectivity between Windows server 2012 R2 and ESXi hosts.
This Storage is mainly used because we are both ESXi Hosts in a Cluster.

++Login to NSX Manager and Provide vSphere Server Address, make sure the hostname is resolvable.
In our Next document we will see how to install NSX Edge  and deploying Logical switches with communication between two different Layer 3 subnets.






F5-LTM useful CLI commands to Troubleshoot

We will be working with shell mode, for shell mode type “tmsh” and hit enter. You will go to BIG IP shell mode.

Below are few cli commands used to perform basic troubleshooting in LTM to check Client-Server Connections.

Step1:
root@rajiv(Active)(/Common)(tmos)#ping <Server ip address>  -I <source_self_IP>

Step2:
root@rajiv(Active)(/Common)(tmos)#telnet <Server ip address>  <portnumber>

Step3:
Try to access server directly from your local PC  using direct server/Node ip address, this is just to check if there is any issue with the server or not.

Step4:
Test access to servers from LTM CLI, do 'quit' to exit from tmos shell mode
[root@rajiv:Active:Standalone] log #curl -v http://<Virtual Server IP>
[root@rajiv:Active:Standalone] log #curl -v https://<Virtual Server IP>

Step5:
check the list of Active connections, if require you can also delete Existing/old connections using below commands.
root@rajiv(Active)(/Common)(tmos)# show /sys connection cs-server-addr <VIRTUAL-SERVER-IP-ADDRESS>
root@rajiv(Active)(/Common)(tmos)# delete /sys connection cs-server-addr <VIRTUAL-SERVER-IP-ADDRESS>
root@rajiv(Active)(/Common)(tmos)#show /sys connection cs-client-addr <CLIENT-IP-ADDRESS>
tmsh show /sys connection ss-server-addr <NODE-IP-ADDRESS> ss-server-port <NODE-PORT-NUMBER>

for Example:
client--->VIP(LTM)Selfip--------->SERVER

cs-client-addr----->client pc ip address
cs-server-addr----->LTM Virtual Server IP address
ss-client-addr------>LTM Self IP
ss-server-addr------>Server IP address
cs-client-port---->Clinet source port number
cs-server-port----->Client Destination port number
ss-client-port----->LTM source port
ss-server-port----->LTM destination port


Step6:
root@rajiv(Active)(/Common)(tmos)#tcpdump -i <vlanname> host <ipaddress> and port <portnumber> -w /var/tmp/capture1.pcap
OR
root@rajiv(Active)(/Common)(tmos)#tcpdump src host <ipaddress> and dst host <ipaddress>  and dst port <portnumber>

Optional:-
-i <interface number> --->Interface such as 1:1 ,2:1
-i <vlan name>
-i 0.0 ---->captures on all interfaces.
-ni ---->disables name resolution
-w <capture1.pcap>----->captures the traffic to a file.


Step7:
Check LTM logs you can find it in System››Logs : Local Traffic or
[root@rajiv:Active:Standalone] log #cd /var/log/
[root@rajiv:Active:Standalone] log #cat ltm
or
root@rajiv(Active)(/Common)(tmos)#show /sys log ltm
or
root@rajiv(Active)(/Common)(tmos)#show /sys log <log> range <date range>
For example, to view ltm logs from three days ago until now, type the following command:
root@rajiv(Active)(/Common)(tmos)#show /sys log ltm range now-3d

For example, to view all ltm logs from 2019-03-05, type the following command:
root@rajiv(Active)(/Common)(tmos)#show /sys log ltm range 2019-03-05

For example, to view ltm logs from two to four days ago, type the following command:
root@rajiv(Active)(/Common)(tmos)#show /sys log ltm range now-2d--now-4d

For example, to view ltm logs from 2019-03-02 through 2019-03-05, type the following command:
root@rajiv(Active)(/Common)(tmos)#show /sys log ltm range 2019-03-02--2019-03-05

Virtual Switching System - VSS



Few Points to remember:

  • In Simple terms, VSS is to combine multiple Cisco Catalyst switches into one virtual Switch.
  • The data plane of both clustered switches is active at the same time in both chassis.
  • For Control plane only one switch will be active and other will be standby.
  • In VSS, If one Chassis fails, the other one will take overwithout any downtime.
  • It eliminates STP.
  • This is supported both in Catalyst 6500 and 4500 series switches.
  • Need to make sure that peer VSS switch needs to be same hardware and software version..


Click here to know the Hardware requirements

Below Diagram shows the traditional method (Without VSS):
Here we are running PVSTP and HSRP on both the Layer3 switches, where traffic is load balanced.
Example: Vlan10, Switch1 is Root bridge and all traffic is sent to switch1.
after which Switch1 is Active for HSRP vlan:10, it will route accordingly









We use VSL(dedicated 10Gig links)  is an Ether Channel interface which connects between the chassis.
This will transfer both data and control traffic.
This Link is responsible for Statefull switchover without any downtime.


Switch-1 Virtual Domain and Port Channel Configuration:

Switch-1(config)#switch virtual domain 100 --->The switch virtual domain number should be unique 
Switch-1(config-vs-domain)#switch 1
Switch-1(config-vs-domain)#exit
Switch-1(config)#interface port-channel 10
Switch-1(config-if)#switchport
Switch-1(config-if)#switch virtual link 1
Switch-1(config-if)#no shutdown
Switch-1(config-if)#exit
Configure Virtual Switch Link:
Switch-1(config)#interface range tenGigabitEthernet 1/1-2 ------>these links connects to Switch2
Switch-1(config-if)#channel-group 10 mode on
Switch-1(config-if)#no shutdown
Switch-1(config-if)#channel-group 10 mode on
WARNING: Interface TenGigabitEthernet1/1,2 placed in restricted config mode. All extraneous configs removed!
Switch-1(config)#exit
Switch-1#switch convert mode virtual ---->Execute the command, but do not reload until VSS configuration is completed on Switch 2

Switch 2 Virtual Domain and Port Channel Configuration:

Switch-2(config)#switch virtual domain 100
Switch-2(config-vs-domain)#switch 2
Switch-2(config-vs-domain)#exit
Switch-2(config)#interface port-channel 20
Switch-2(config-if)#switchport
Switch-2(config-if)#switch virtual link 2
Switch-2(config-if)#no shutdown
Switch-2(config-if)#exit
Configure Virtual Switch Link:
Switch-2(config)#interface range tenGigabitEthernet 1/1-2
Switch-2(config-if)#channel-group 20 mode on
Switch-2(config-if)#no shutdown
Switch-2(config-if)#channel-group 20 mode on
WARNING: Interface TenGigabitEthernet1/1,2 placed in restricted config mode. All extraneous configs removed!
Switch-2(config)#exit
Switch-2#switch convert mode virtual

At this point, console into Switch-1 . You will be prompted to save the work and confirm the switch reboot. Do the same for Switch-2.

After the reboot, verify the VSS configuration:


After the VSS configuration and restart, both switches start to function as one. One switch is designated as the Active and the other as the Standby switch

Switch-1#sh switch virtual

Executing the command on VSS member switch role = VSS Active, id = 1

Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 1
Local switch operational role: Virtual Switch Active
Peer switch number : 2
Peer switch operational role : Virtual Switch Standby

Executing the command on VSS member switch role = VSS Standby, id = 2

Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 2
Local switch operational role: Virtual Switch Standby
Peer switch number : 1
Peer switch operational role : Virtual Switch Active
Switch-1#

Commands:
redundancy reload shelf  --->to reload the switch after enter it asks whether switch 1 or switch 2 to be reloaded.
redundancy force-switchover ----->switchover from active to passove viceversa.
show run switch 1---> will show the part of the config that is specific to switch 1.
show run switch 2---> will show the part of the config that is specific to switch 2.
show switch virtual--->to verify status of VSS
mac-address-table synchronize--->this is by default turned on. else enable it
show redundancy---->to see redundancy
redundancy, mode sso--->make sure redundancy mode is SSO
If we need standby console then issue below command from active switch
SwitchVSS#(config)#redundancy
SwitchVSS#(config-red)#main-cpu
SwitchVSS#(config-r-mc)#standby console enable

F5 BIGIP Loadbalance Internet traffic


Use F5:BIGIP to Loadbalance Internet traffic:

Topology diagram:


In this example, We have Two different ISP's with public IP as follows:
ISP1: 50.1.1.1
ISP2: 100.1.1.1

In F5 BIGIP: we create two VIP's for both ISP's
VIP1 for ISP1:50.1.1.20
VIP2 for ISP2: 100.1.1.20

1.Configure ISP Vlan as shown:



2.Create Self IP's for two ISP's as shown:


3.Create Gateway pool by keeping both ISP in it member list.
under health monitors use gateway_icmp


4.Now create a default route pointing towards both the ISP's with next-hop as gateway pool



5.Create a Virtual server list with source address: <any or LAN subnets>
destination address: <any or 0.0.0.0> and apply the Pool to it.





Testing:-








F5-BIGIP-LTM(Local Traffic Manager)


Load Balance F5 BigIP :-

Topology Diagram:


R1,R2,R3 configuration:
              R1:10.1.0.11/24
              R2:10.1.0.12/24
              R3:10.1.0.13/24
              ip http server


BIG-IP Configuration:
1.Create Self-IP


2.Create Member Pool for R1,R2 and R3
Name:LAN_POOL
use Health monitors: TCP_HTTP(port:80)



STATIC
Round Robin - Evenly distributes requests to all available pool members.
Ratio - Ratio allows each server to be assigned a ratio value. This is useful for pool members that have greater or lower computing resources then others. Example : Ratio 3:2:1:1. Based upon 8 requests, 3 requests would go to 1, 2 to 2 then 1 to 1.

DYNAMIC
Least Connections - Traffic is balanced to servers with the least total of current connections.
Fastest - Connections are distributed to pool members based upon server response time.
Observed - This method is the same as ratio but the ratio is assigned by BigIP. Each ratio is calculated based upon the total number of connections currently active on each pool member. A pool member with a lower then average connection count is assigned a ratio of 3. A pool member with a higher than average count is given ratio of 2.
Predictive - Predictive is similar to observed but ratio`s are assigned using much more aggressive ratio values. A pool member with a lower then average connection count is assigned a ratio of 4. A pool member with a higher then average count is given ratio of 1.


3.Create Virtual Server
Source Address: 0.0.0.0/0 (any)
Destination Address: VIP(10.2.0.100)






Testing:-

Since we are using Load balancing method as:Round Robin






R1#debug IP http logs
R1#
*Mar  1 01:01:36.515: Fri, 01 Mar 2002 01:01:36 GMT 10.1.0.100  ok
        Protocol = HTTP/1.1 Method = GET
*Mar  1 01:01:36.515:
*Mar  1 01:01:37.207: Fri, 01 Mar 2002 01:01:37 GMT 10.1.0.100  ok
        Protocol = HTTP/1.1 Method = GET
*Mar  1 01:01:37.207:
R1#


User and Machine Certificate Authentication using EAP-TLS


User and Machine Certificate Configuration in Cisco ISE:

Step1:
Create Certificate Authentication profile:
Under Identity Store use AD1 (Active directory) or Not Applicable
-Basic certificate checking does not require an Identity store
-When an AD1 is selected all subject names in a certificate can be used to lookup a user.

Use Identity From:
Certificate Attribute: select Common Name (CN)
-This Username will be used for AD lookup and also in ISE Logs.

Any other subject or Alternative Name Attribute:
-All other subject names and alternative names in a certificate will be tried when looking up a user.
The Active directory implicit UPN(User principle name) will be used as username for logs.
Note:it is only available if AD1 is selected as Identity store.


Match Client Certificate Against Certificate in Identity Store:
-For Binary Comparison of certificates (AD or LDAP) must be selected.
-If AD1 is selected then we can also use only to resolve ambiguity during lookup.



Machine Certificate Profile:
User Certificate Profile:

Step2:- Machine Certificate Policy Sets
Create Authentication and Authorization rules under > policy sets as shown below:
Create a condition If it matches Radius:User-Name STARTS WITH host/

Under Authentication Policy use the Certificate authentication Profile which was created in Step1 Machine Certificate Profile
In Authorization policy we are permitting all other traffic.

Step3: User certificate Policy Sets
Create Authentication and Authorization rules under > policy sets as shown below:
Create a condition If it matches All WLC's OR Radius:Called-Station-ID ENDS WITH <SSID NAME>

Under Authentication Policy use the Certificate authentication Profile which was created in Step1
User Certificate Profile.
In Authorization policy we are permitting all other traffic.

Step4:-
Under Administration>System>Certificates>system Certificates:
Make sure you have a certificate issued by any of your Internal Root CA, and select "EAP Authentication"
This Root CA has to be present in All Clients PC's>Trusted Root CA's.

Step5:-
Under Administration>System>Certificates>Trusted Certificates:
Import All Root and intermediate certificates over here and check following options
"Trust for client authentication and Syslog"
"Trust for authentication of Cisco Services"

Step6:-
PC wireless NIC card settings:







                                         For User Certificate use Below Settings:-




For Machine Certificate use Below Settings:




































Automated SMS for Guest Implementation:Self Registration using Cisco ISE-2.2 :-

Automated SMS for Guest Implementation:Self Registration using Cisco ISE-2.2 :- 

For more details about the guest configuration please check old post  Guest Implementation

This document explains automated SMS Gateway service for self-registration guest users.
Username and password will be directly sent to users Phone number.

I'm Using Telenor as SMS gateway Provider.

Step1:-


Here Telenor service provider is using port 44343, Make sure to allow port 44343 in firewall to external.

Step2:-
Import all Root Certificates for sms-pro-net into ISE server >trusted Certificates.

Step3:-
Under guest portal settings, Under self registration page settings check send credentials via sms.





TESTING:-


TACACS+ and ISE:2.x Recommended Configuration :-

TACACS+ and ISE:2.x Recommended Configuration :-


Layer-3 and Layer-2 switches: -
Define TACACS SERVER: -
aaa group server tacacs+ ISE-GROUP

 server-private <primary ISE server> key <plain key>
 server-private <secondary ISE Server> key <plain key>


AAA Login Commands: -
aaa new-model
aaa authentication login ISEauth group ISE-GROUP local

aaa authorization exec ISEauth group ISE-GROUP local if-authenticated

line vty 0 15
 login authentication ISEauth
 authorization exec ISEauth


AAA Command Authorization Config: -
you can monitor and restrict the commands that have been issued in the Switch.
aaa authorization commands 1 default group ISE-GROUP local if-authenticated
aaa authorization commands 15 default group ISE-GROUP local if-authenticated
aaa authorization config-commands
Login Accounting Logs sent to ISE server: -
"Exec accounting” will capture details about user accessing the shell prompt where you run all the commands & “command accounting” keep track of what commands users execute on a Cisco device.
aaa accounting exec default start-stop group ISE-GROUP
aaa accounting commands 1 default start-stop group ISE-GROUP
aaa accounting commands 15 default start-stop group ISE-GROUP





ASA Firewall Configuration: -
Define TACACS SERVER: -
·        max-failed-attempts: - To specify the maximum number of failures that will be allowed for any server in the group before that server is deactivated. The default value is three.
·        reactivation-mode: -There are two different AAA server reactivation modes in ASA:
timed mode and depletion mode. The command below is the timed mode.
1.      With the timed mode, it reactivates a failed server after 30 seconds of downtime. In my limited testing, it continuously tried to reactivate the server after 30 seconds when I bring the TACACS+ server down.
2.      With the depletion mode shown below, the failed TACACS+ server will stay down until all servers in the group are in the failed state. The default deadtime is 10 minutes.
                                                           
aaa-server TACACS protocol tacacs+
 aaa-server TACACS+ max-failed-attempts 3
 reactivation-mode timed
aaa-server TACACS (inside) host <primary ISE server>
 timeout 5
 key *****
aaa-server TACACS (inside) host <secondary ISE server>
 timeout 5
 key *****
AAA Login Commands: -
aaa authentication http console TACACS LOCAL
aaa authentication ssh console TACACS LOCAL
aaa authentication enable console TACACS LOCAL
aaa authentication telnet console TACACS LOCAL
aaa authentication serial console TACACS LOCAL
aaa authorization exec authentication-server




AAA Command Authorization Config: -
 you can monitor and restrict the commands that have been issued in the ASA.
aaa authorization command TACACS LOCAL
Login Accounting Logs sent to ISE server: -
aaa accounting telnet console TACACS
aaa accounting ssh console TACACS
aaa accounting command privilege 15 TACACS




ISE 2.x configuration:-

NOTE:- you need device admin License to configure tacacs+ in ISE2.x version and above.

Step1:- configure Shell profiles  having privilege 15 access


Step2:-
Configure READ WRITE command authorization or Command Sets



Step3:- 
Configure READ-ONLY access, by unchecking permit any commands and configure only specific commands, you can either permit or deny these specific commands as shown below



If you have any queries please comment below

Transparent Proxy vs Explicit mode Proxy


Transparent Proxy vs Explicit mode Proxy 

Explicit Mode Proxy :-
• Client requests a website
• Browser connects first to WSA
• WSA connects to website
• Firewall usually only allows web traffic for WSA
• DNS Resolution is done by WSA



Disadvantages of explicit proxy deployment includes Following: -
• A user's ability to alter an individual client configuration and bypass the proxy. To counter this, you can configure the firewall to allow client traffic to proceed only through the proxy. Note that this type of firewall blocking may result in some applications not working properly.
     (Example: - IKEAHOME etc...)
• To bypass any URL, every time you need to use a Group Policy object (GPO) setting to push the proxy exceptions as well as prevent users from changing proxy settings. This type of configuration can be difficult to maintain for a large user base because of the lack of centralized management.
• Few Non-browser client applications that cannot specify a proxy server may not work with explicit proxy deployment.
• Very important is HTTPS scanning is not enabled in this mode. This is a big security impact as WSA is not scanning/inspecting HTTPS traffic. User can easily download a Malicious or a Virus file on port 443 without being inspected by WSA.


Transparent Mode Proxy :-

Transparent Proxy works via WCCP (Web Cache Coordination
Protocol) on Cisco ASA. Wherein WCCP is a method by which the ASA
can redirect traffic to a WCCP caching engine through a generic
routing encapsulation (GRE) tunnel.

The flow of work for redirection has these steps:

• The host uses the default gateway of the ASA to open the HTTP connection.
• The ASA redirects the packet (encapsulated in GRE) to the WSA.
• The WSA verifies or updates the cache for the requested site.
• The WSA replies directly to the host.
• All outbound packets from the host are redirected from the ASA to the WSA.
• All inbound packets from the server to the host are directed from the WSA to the host.



• Client requests a website
• Browser tries to connect to Website
• ASA-Firewall redirects traffic to WSA using WCCP
• WSA proxies the request
• DNS Resolution is done by the Client


Advantages of Transparent proxy deployment includes Following: -
• All Internet traffic from a client goes through the proxy (not just traffic from Web browsers), including: HTTP and HTTPS applications, instant messaging clients, software updaters for Windows, Custom applications, etc.…

• Because traffic management is centralized, users cannot easily bypass the proxy.

• Can Bypass Proxy for any traffic based on Destination subnet or IP address on Firewall itself. If there are any URL's this can be bypassed on WSA.

• Enabling transparent proxy will also enable HTTPS scanning which inspects HTTPS port 443 traffic and will Block any Malicious or virus file if being accessed by User.


Configuration:-

• ASA allows only “redirect in “
  (a)Client’s and WSA must be on Inside interface of ASA
  (b)No DMZ Deployment possible.
• Inside ACL is checked before WCCP redirection
  (a)Destination Server must be allowed in ACL
• Redirection Method is GRE based
• Redirect ACL allows permit and deny


WCCP Config in ASA Firewall: -

(Service=90-97 is user configurable that support up to eight ports for each WCCP service.)

#wccp 90 redirect-list wccp_traffic group-list wccp-server
#wccp interface inside 90 redirect in


#access-list wccp_traffic extended permit tcp <LAN subnets> any eq www
#access-list wccp_traffic extended permit tcp <LAN subnets> any eq https
#access-list wccp_traffic extended deny ip any any

#access-list wccp-server extended permit ip host <WSA DATA PORT IP> any

#access-list acl-in extended permit tcp <LAN subnets> any eq www
#access-list acl-in extended permit tcp <LAN subnets> any eq https


WSA Config:-
Step1: -
 Configure Transparent Redirection in WSA on port 80 and 443



Step2: -
 Configure Web Proxy on port 80 for Transparent Proxy Mode.


Step3:-
 Configure HTTPS Proxy on port 443 for Transparent Proxy Mode.
Generate a CSR and sign it with Internal Root CA. Make sure this Root CA is pushed to all Client PC's through GPO etc..

If you need transparent proxym HTTPS proxy needs to be enabled. and make sure there is Decryption policy enabled for the same.

Verification:-

Router identifier is always selects Highest IP address. here my DMZ has 192.168.243.14 which is selected as router id.

ASA/pri/act# sh wccp 90

Global WCCP information:
    Router information:
        Router Identifier:                   192.168.243.14
        Protocol Version:                    2.0

    Service Identifier: 90
        Number of Cache Engines:             1
        Number of routers:                   1
        Total Packets Redirected:            687937782
        Redirect access-list:                wccp_traffic
        Total Connections Denied Redirect:   4544924
        Total Packets Unassigned:            24
        Group access-list:                   wccp-server
        Total Messages Denied to Group:      0
        Total Authentication failures:       0
        Total Bypassed Packets Received:     0

Web Cache ID is always Firewall Inteface IP where the WSA is connected to.
ASA/pri/act# sh wccp 90 detail

WCCP Cache-Engine information:
        Web Cache ID:          10.101.21.194
        Protocol Version:      2.0
        State:                 Usable
        Initial Hash Info:     00000000000000000000000000000000
                               00000000000000000000000000000000
        Assigned Hash Info:    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                               FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        Hash Allotment:        256 (100.00%)
        Packets Redirected:    687937833
        Connect Time:          15w3d



Authentication server type: - 
Currently we are using NTLMSSP or Basic Authentication
NTLMSSP: - enables the functionality for the client to send the credentials securely and transparently(SSO) to the web proxy.

NTLM Basic: - allows the client to send the username and password in plain text when prompted for the credentials.

NTLMSSP or Basic Authentication: - The client chooses the best available method when the Use Basic or NTLMSSP option is selected (recommended). If the client supports NTLMSSP, it will use this method, and all other browsers will use Basic. This allows for maximum compatibility.

If the client does not trust the WSA, it will not send its credentials transparently(SSO).

PC----- > ASA ------- >WSA

Step1: When PC tries to access any URL’s, or send any 80 or 443 traffic, then this packet is sent to ASA.
Step2: ASA redirects the same traffic to WSA using WCCP config.
Step3: NOW WSA directly sends GET request to client (HTTP 401 Authorization required) Where Source= WSA_IP, destination: PC_IP asking for credentials
Step4: Client sends its credentials automatically (SSO - Single Sign On), or prompts the end user to manually enter their credentials.
    (Below is the packet capture asking for Authorization)



SSO for Intranet sites: - 
By default, the client does not trust the authentication redirection URL's (transparent deployments only)
If client access ADFS URL which require authentication, then the client may not trust the redirected location i.e; (*.domain.com) 
The Workaround to make Internet Explorer trust is by adding the end URL in IE>Local Intranet Zone.


If you have any queries please comment!

Guest Implementation:Self Registration using Cisco ISE-2.2

Guest Implementation:Self Registration using Cisco ISE-2.2  

This Document explains the Design plan of Guest Wireless Implementation using automatic self-registration Portal.

This Guest SSID can be used for Both Guests and Internal Employees.
If the user is a Guest they will create self registration account, If the user is a internal Employee he/she can Enter their Active Directory Username/password to login.


Working: -
a) When a user connects to SSID: GUEST, User gets a Login Prompt,
1)If User is Internal employee, they can sign in with their username and password.
2) If User is a guest, they will create an account using the link provided in the same page.
All these traffic is sent to Anchor WLC through Mobility Tunnel.
b) In anchor WLC, default gateway is pointed to Local Firewall DMZ interface.
c)Now all Guest authentications are performed by Cisco ISE server. Once the user is authenticated then they will be accessed to internet.
d) Return traffic from Anchor WLC is send to Firewall, here we will give Access rules Blocking all RFC-1918 IP address (private IP access) and allowing remaining access.


Step1:- Create a HTML Self-registration portal which contains following
a)Login page
b)Self Registration Page
c)Registration Success Page
d)support Information.
You can use ISE2.2 pre-defined image or you can customize the HTML page.

Below are some sample which are created for same..

a)Login Page :-



b)Self-Registration Page:-




All the above fields are mandatory.
Email Address: it should be Guest email Address rajiv@gmail.com, rajiv@outlook.com etc..
Person Being Visited:- This is very Important Field, Here they have to enter any Employees Email id.
so that the approval/deny email will be sent to this person.



I'm using following Java script to make sure only email id ends with @rajcompany.com works. and all other email ids will be blocked as shown below.

<script>
     setTimeout(function(){
          $.validator.addMethod("customemailvalidator", function(value, element) {
       return (/@rajivcompany.com/).test( value );
     }, 'Invalid Email address format');
     jQuery("[name='guestUser.fieldValues.ui_person_visited']").rules("add",{customemailvalidator:true});
     }, 50);
</script>

Working:- when you enter your company email id to whom they are responsible for Approving/Denying Guest users.


No-working:-





Once the user clicks on REGISTER then a Automatic email will be sent to "Person Being visited" so that they can Appove or Deny the Guest user account.

It uses Following code in ISE2.2 to send automatic email which has Approval/Deny links:

$ui_self_reg_email_approve_link_start$ Approve $ui_self_reg_email_approve_link_end$
$ui_self_reg_email_deny_link_start$ Deny $ui_self_reg_email_deny_link_end$

Please approve (or deny) this self-registering guest by clicking in the link above.

The guest provided the following information:
Username: $ui_user_name$
First Name: $ui_first_name$
Last Name: $ui_last_name$
Password: $ui_password$
Phone Number:$ui_phone_number$
Valid From: $ui_start_date_time$
Valid To: $ui_end_date_time$

Person being visited: $ui_person_visited$





--------------------------------------------------------------------------------------------------------------------
This is an Automated Message: Please DO NOT Reply Directly to this email.
For support Please contact the help desk sriramoju@outlook.com 

Sample email:-


c)Guest Self Registration success Page:-




Once the Guest user is approved. they will get an automatic email to Guest email along with username and password as shown below.

Firewall Configuration:-

a)Create a sub-Interface and a separate vlan for Guest in Firewall.
b)Create Firewall Rules in such a way that it Blocks RFC-1918 and allows all other IP communication.
Source:Guest subnets, Destination: RFC-1918, protocol:IP==>action:  Block
Source:Guest subnets, Destination: any, protocol:IP==> action: Permit

WLC configuration:-

1)Both Foreign and anchor WLC should have similar WLAN configuration. where Interface config and DHCP server will configured in Anchor WLC. There is a mobility tunnel between Anchor and Foreign WLC.
2)Under AAA config configure ISE servers and enable ISE-NAC redirection under WLAN settings.
3)Configure Pre-Auth ACL or REDIRCT ACL in Anchor WLC, this ACL is used to redirect the guest user to ISE selfregistration portal.
ACL:- Permit DNS , Permit ISE servers, Deny all other traffic.
Now all traffic will be redirected from AP to Foreign WLC to Anchor WLC.


If you have any queries then please feel free to comment below.



Powered by Blogger