Archives

Cisco ASA 5505 Basic Configuration – Step by Step Guide for Dummies

 

Basic Configuration of Cisco ASA (5505)

In this article, I will guide you to basic configuration of Cisco ASA 5505.

Cisco ASA 5505 Firewall

Cisco ASA 5505 Adaptive Security Device

http://www.o2.co.uk/broadband/

  • Open Cisco ASA 5505  from packing box, attach power cord and console cable.
  • Access ASA 5505 console through hyper terminal / putty program and you will see below interface:
ode:
Type help or ‘?’ for a list of available commands.
ciscoasa>

 

  • Type the command “enable” to get in enabled mode.
Code:
Type help or ‘?’ for a list of available commands.
ciscoasa> enable
Password:
ciscoasa#

 

You may see password prompt, just pres “Enter” key as there is no password configured with new appliance. 

  • The 1st thing you want to do is type the command “write erase”. This will delete all the default configuration set by Cisco. You might wonder why but there is a lot of stuff in that configuration that you may not require and you may face some network issues if you connected your ASA 5505 security appliance with your your DHCP enabled network.

 

Code:
ciscoasa# write erase
Erase configuration in flash memory? [confirm]
[OK]
ciscoasa#

 

  • You will be prompted to confirm that you want to erase the default configuration. Press enter to proceed to erase content.
  • Once you erase your startup configuration you are required to reload the ASA to load clean configuration. Type “reload” command to load clean configurations.
Code:
ciscoasa# reload
Proceed with reload? [confirm]
ci
scoasa#

***

*** — START GRACEFUL SHUTDOWN —

Shutting down isakmp

Shutting down File system

***

— SHUTDOWN NOW —–

  • After ASA 5505 reload you will see below prompt to setup firewall through wizard, type “no” to setup ASA 5505 security appliance yourself manually.
Code:
 Pre-configure Firewall now through interactive prompts [yes]?

 

  • Now enter enabled mode (look up if you forgot how to) and issue the command “show running-config”.
 Code:
ciscoasa# show running-config
  •  Looks nice and clean right?
  • Now we can start manual configuration of ASA security appliance. 
  • Load configuration mode. You can do this by issuing the command “configure terminal” 
Code:
ciscoasa# configure terminal
ciscoasa(config)#


  • Notice the (config) behind the device hostname. This means you’re in configuration mode. 
  • Change Cisco ASA hostname. 

 

Code:
ciscoasa(config)# hostname MyASA
MyASA(config)#

 

You can see the hostname changes immediately. 

  • Set a username and password to manage the ASA from your desk with SSH/Telnet/ASDM.
Code:
MyASA(config)# username example password example privilege 15
MyASA(config)#

Setting your privilege to 15 is very important if you’re the one that is going to manage the ASA. Privilege 15 is the highest of the privileges and gives you full control over the device.

  • Configure the inside (LAN) address of the ASA 5505 security appliance.

With the ASA 5505 you work with VLANs instead of assigning IP addresses to actual interfaces. We will use VLAN 1 as our inside VLAN.

Code:
MyASA(config)# interface vlan 1
MyASA(config-if)# ip address 192.168.1.1 255.255.255.0
MyASA(config-if)# nameif inside
INFO: Security level for “inside” set to 100 by default.

All the ASA devices work with security levels that you apply to VLANs/interfaces. With security levels you can always go from high (100) to low (0) but never the other way around unless configured otherwise. This means that no one from the outside can start a session to the inside. 

For the inside VLAN:

  • Configure outside (WAN) interface.

Depending on the provider you might have to do this a little bit different but we are configuring with a static IP address.

 

Code:
MyASA(config)# interface vlan 2
MyASA(config-if)# ip address 212.115.192.193 255.255.255.248
MyASA(config-if)# nameif outside
INFO: Security level for “outside” set to 0 by default.
ExampleASA(config-if)# exit
ExampleASA(config)# route outside 0.0.0.0 0.0.0.0 212.115.192.192


As you can see the ASA sets the security level of the interface called outside to 0. 
You also need to make a static route if your provider supplied you with a static IP address. This is called the default gateway

If your provider gives you a IP address trough DHCP the configuration is a little easier.

ode:
MyASA(config)# interface vlan 2
MyASA(config-if)# ip address dhcp set route
MyASA(config-if)# nameif outside

With this command you’re not required to configure a default gateway as it will provided by ISP and configured automatically with ASA 5505 WAN interface.

Now we need to attach the outside VLAN to one of the interfaces of the ASA. 
By default all the interfaces are attached to VLAN 1 and by default all the interfaces are in the “shutdown” state. In this example I will attach the interface “Ethernet 0″ to the outside VLAN (VLAN 2) and make the port operational.

Code:
MyASA(config)# interface ethernet0/0
MyASA(config-if)# switchport access vlan 2
MyASA(config-if)# no shutdown

 

Now this interface is attached to VLAN 2 and operational. 
You need to make at least one other port operational for your inside network by typing the command “no shutdown”.

Code:
MyASA(config)# interface ethernet0/1
MyASA(config-if)# no shutdown

 

By default all the interfaces are attached to VLAN 1 so you don’t need to assign a VLAN to the interface.

  • Configure NAT to make internet work from your inside network.
  • For NAT fist step: you need to make a global interface to where all the addresses from the inside need to be translated to.
Code:
MyASA(config)# global (outside) 10 interface
INFO: outside interface address added to PAT pool

 

The number 10 in that line of configuration is a identifier. This way you can tell the NAT on the inside to wich outside IP address they should translate to. 
The interface part means that you use your interface IP address to translate to. In this case the outside interface.

  • For NAT second step we need to make a NAT rule for the inside network.
Code:
MyASA(config)# nat (inside) 10 192.168.1.0 255.255.255.0
MyASA(config)#

I use used the number 10 in this NAT rule. This links the inside network to the outside global. The subnet behind that states that the network 192.168.1.0/24 is allowed to be translated to the outside IP address.

Congratulations! You configured your ASA to allow internet for your internal LAN with 192.168.1.0 network.

If you want to manage the ASA security appliance remotely i.e without having access to console.

The ASA supports remote administration trough SSH and Telnet. The ASA also has a good graphical interface called the ASDM (Adaptive Security Device Manager). 
I will guide you  to configure the ASA so you should able to connect with the ASDM (graphical) and with SSH (CLI). 

  • Enable SSH on Cisco ASA 5505 security appliance. To enable SSH you will need to generate a key wich will encrypt the traffic between the user and the ASA.

 

Code:
MyASA(config)# crypto key generate rsa modulus 1024
INFO: The name for the keys will be: <Default-RSA-Key>
Keypair generation process begin. Please wait…
MyASA(config)#

 

  • Now we want to use the username we made earlier to connect to the ASA with SSH.
Code:
MyASA(config)# aaa authentication ssh console LOCAL



The LOCAL means that the ASA uses the local username database to authenticate users. 

  • Setup ACL (access control list) to access ASA with SSH. In this example we only allow users on the inside to access the ASA with SSH.
Code:
MyASA(config)# ssh 192.168.1.0 255.255.255.0 inside

 

Now your ASA is accessible with SSH from any computer from inside network.

  • Enable ASDM GUI interface.  Use below command to enable ASDM on ASA.
Code:
MyASA(config)# http server enable
  • If you want to enable existing username we made earlier for SSH and setup ACL (access control list) to access ASA GUI (ASDM).
Code:
MyASA(config)# aaa authentication http console LOCAL
MyASA(config)# http 192.168.1.0 255.255.255.0 inside
  • Save all changes to make sure ASA 5505 load with new configurations.
Code:
MyASA(config)# write mem
Building configuration…
Cryptochecksum: e5fa3ae9 add2aae4 c0be8847 79cec1ba

2502 bytes copied in 1.190 secs (2502 bytes/sec)

[OK]

MyASA(config)#

Congratulations! You completed your Cisco ASA 5505 security appliance.

http://www.o2.co.uk/broadband/

3 Steps to Ensure Proper Patch Management

The popular English saying, prevention is better than cure, holds true when dealing with an organization’s network security.

An important part of ‘prevention’ is achieved through proper patch management – emphasis here on ‘proper’. There are certain procedures you have to follow before deploying patches, and after the patches have been installed. Cutting corners can cause those same issues you are trying to avoid. Here are the three main steps to take for proper patch management:

 

  1. The importance of pre-deployment testing:

First of all you need to set up a proper test environment to mitigate the risk of system instability. Without a proper test environment, you’d be unable to ensure that the patches you are about to deploy do not conflict with your setup. In some cases, this might even prevent the system from starting up, something you would want to avoid at all costs. This test environment should closely mirror the actual environment where you will deploy the patches.

 

  1. A patch in time…

Delaying patch deployment means that unpatched vulnerabilities can exploited by hackers until they are fixed. That said, one should not rush the deployment process – proper testing before deployment is crucial. It is also important to note that patches should be prioritized in terms of severity and applicability to your environment. Critical patches should be deployed as soon as possible; with the others following in batches until all systems are fully patched.

 

  1. Double-checking goes a long way:

Failing to verify whether patch deployment has been successful can leave you just as vulnerable as if you did no patching at all. Patch deployment can fail for several reasons. If you do not re-scan the system after deployment to ensure that patches are no longer required, you are assuming that everything is fine. Only by double-checking that patches are no longer needed can you be sure the job is done – until the next round.

 

What’s your Plan B?

Failing to have a disaster recovery plan can prove to be a painful and costly oversight. No matter how many safety measures you take, you can never be sure that nothing will go wrong.

Even the most thoroughly tested patches can find an unexpected combination of software and hardware on the live network that causes the patch to fail, eventually taking the whole system down. It is essential that you are ready for such an eventuality. A disaster recovery plan will provide detailed instructions on what needs to be done in order to restore a system back to operational status as quickly as possible.

Proper patch management requires a bit of foresight and planning, but it’s definitely time invested sensibly. If all the right steps are followed, your patch management process will help you avoid many headaches and stress.

 

This guest post was provided by Emmanuel Carabott on behalf of GFI Software Ltd. GFI is a leading software developer that provides a single source for network administrators to address their network security, content security and messaging needs. Learn more about the right patch management solution.

All product and company names herein may be trademarks of their respective owners.

Health – Benefits of Drinking Water

 Health benefits of drinking water daily is important that every persons should know about. No matter everything we do,  how small and inconsequential an action it might be – is related to water. Studies have result varying recommendations over the years, your water needs depends on many factors i.e. your health, where you live and your physical activity. In this articles we will cover some great health benefits of drinking water.

. . . → Read More: Health – Benefits of Drinking Water

HTC One X review – eXtra special

A massive change of game plan sees HTC focus on a few special products instead of trying to create a smartphone for every taste. An outstanding result of this effort, the HTC One X brings many firsts for both company and industry, that a climb to the top of the food chain may be a walk in the park.

The 4-PLUS-1 Tegra 3 makes its smartphone debut here, the . . . → Read More: HTC One X review – eXtra special

Postfix – How to Fix Open Relay

An open relay is “a mail server that does not verify that it is authorised to send mail from the email address that a user is trying to send from. Therefore, users would be able to send email originating from any third-party email address they want.”

Using open relay Someone could use your domain name to send emails from dummy accounts. It is a method of sending spam while . . . → Read More: Postfix – How to Fix Open Relay

How to Change Your SSH Port on SELinux (RHEL 6)

In a previous post (How to Change Linux Server SSH Port), I write how to change the SSH port on Linux server from the standard port 22.   that work fine for most cases, however you may face below error if you apply changes on Red Hat Enterprise Linux 6:

sshd[82123]: error: Bind to port 2222 on 192.168.4.5 failed: Permission denied

If you face above error message, you most likely . . . → Read More: How to Change Your SSH Port on SELinux (RHEL 6)

How to Change Linux Server SSH Port

The Linux SSH server (OpenSSH) listens on port 22.  If you have security measures in your mind and willing to change default SSH port to custom follow the steps below in this article. 

To change your SSH port, as root, edit the sshd_config file in your /etc/ssh directory.

vim /etc/ssh/sshd_config

Search for a line as below:

Port 22

Change the number 22 to the port number of your choice. . . . → Read More: How to Change Linux Server SSH Port

How to Change the SMTP Port Number in Postfix

  The default network SMTP port for Postfix, Sendmail and most other mail servers is 25 that is used to send email, and most email clients use port 25 as default port for sending emails. Unfortunately internet service providers (ISP’s) have started to block port 25 to control high volume of spam sent through post 25 and they require their users to use the ISP’s SMTP server.

This is a . . . → Read More: How to Change the SMTP Port Number in Postfix

How to setup Multiple Filegroups for a SQL Server Database and Changing the Default Filegroup

SQL Server allow to create additional filegroups to spread storage of data and indexes to different disks to improve I/O performance.  The issue is that when creating new data storage objects we are required to explicitly point to the new filegroup. Is there any option to use the new filegroup by default without explicitly specifying the filegroup when creating new tables and indexes?

Let me explain some terminology:

Database . . . → Read More: How to setup Multiple Filegroups for a SQL Server Database and Changing the Default Filegroup

Optimize single blog post for SEO

The definition of term “SEO”, what is SEO? Well, it’s abbreviation of Search Engine Optimization, that refers to optimize  website or blog for search engines, to make websites and blogs compatible with search engines.

To compliant your blog post SEO friendly post, you need to optimize the important parts of your blog post. We can break a blog post in 6 parts which are mojor parts of a blog post in all blogging . . . → Read More: Optimize single blog post for SEO

Health – Tips to Control Blood Pressure

Lifestyle plays an important role in treating high blood pressure. Becoming an active participant in your health care management will help you maintain acceptable blood pressure readings. High blood pressure also referred as “silent killer”. If you don’t care your high blood pressure then it may cause serious health problems like kidney problems, hearts failure, blindness, and heart attacks.

You need to make sure your blood pressure is under 140/90 mm . . . → Read More: Health – Tips to Control Blood Pressure

Page 1 of 1112345678...Last »