<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9086005356100413193</id><updated>2012-01-06T09:11:53.310+02:00</updated><category term='linux'/><category term='active directory'/><category term='dhcp relay'/><category term='news'/><category term='security'/><category term='vmware'/><category term='ssh'/><category term='storage'/><category term='squid'/><category term='dell'/><category term='rancid'/><category term='ccna'/><category term='cisco'/><category term='mrtg'/><category term='vsphere'/><category term='windows 2003'/><category term='debian'/><category term='dhcp snooping'/><category term='windows'/><category term='vpn'/><category term='catalyst'/><category term='ccnp'/><category term='esx'/><category term='firewall'/><category term='pix'/><category term='asa'/><category term='radius'/><category term='aaa'/><title type='text'>Networking</title><subtitle type='html'>Cisco, Linux, networks, virtualization</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-7224773347134385968</id><published>2011-04-19T11:46:00.004+03:00</published><updated>2011-04-19T12:06:47.980+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>SSH key error on Cisco devices</title><content type='html'>I'm using Rancid's clogin in a script to periodically retrieve the configs from Cisco switches/firewalls. On one of the switches I have a problem connecting with clogin via ssh. Even though I generated a key larger than 768 bits when I try to connect it gives this error: &lt;br /&gt;&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ssh -c 3des -x -l user 192.168.1.1&lt;br /&gt;ssh_rsa_verify: RSA modulus too small: 512 &amp;lt; minimum 768 bits&lt;br /&gt;key_verify failed for server_host_key&lt;/blockquote&gt;&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Error: Couldn't login: 192.168.1.1&lt;/blockquote&gt;Normally this would mean that the key on the device is smaller that 768 bits. To generate a key on an IOS (in this case a Catalyst switch) you would use:&lt;br /&gt;&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;crypto key generate rsa general-keys modulus 1024&lt;/blockquote&gt;Like I said, even though I have a 1024-bit key, openssh was unable to connect, giving the error above. One solution which seems to solve this problem would be to force SSH globally on the system to use version 1 for the specific host with the problem. To do this, create a &lt;i&gt;~/.ssh/config&lt;/i&gt; file:&lt;br /&gt;&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Host 192.168.1.1&lt;br /&gt;Protocol 1&lt;/blockquote&gt;Also, clogin gives you the possibility to replace the ssh command using a statement in ~/.cloginrc:&lt;br /&gt;&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;add sshcmd * /path/ssh_replacement&lt;/div&gt;&lt;/blockquote&gt;You could put in this ssh_replacement something like (-1 to use SSH v1):&lt;br /&gt;&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ssh -1 $1 $2 $3 $4 $5 $6&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-7224773347134385968?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/7224773347134385968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=7224773347134385968' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/7224773347134385968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/7224773347134385968'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2011/04/ssh-key-error-on-cisco-devices.html' title='SSH key error on Cisco devices'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-884720686177225285</id><published>2010-11-30T11:48:00.007+02:00</published><updated>2010-12-13T10:10:19.587+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='esx'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>ESXi 4.1 and PS/2 keyboards</title><content type='html'>I've recently upgraded/migrated our ESX 4.0 servers to ESXi 4.1, as VMware stated that 4.1 will be the last ESX release and recommended the migration to ESXi.&lt;br /&gt;The migration itself didn't pose any problem as there isn't a migration process per se. You just have to migrate your VMs to another host and install the ESXi hypervisor. All went well until I had to press 'Enter' to install. It just didn't work.&lt;br /&gt;It seems that ESXi 4.1 has a problem with (some?) PS/2 keyboards on (some?) servers. I tried the install CD on 3 different models of Fujitsu-Siemens servers and it didn't work on eighter one of them.&lt;br /&gt;The solution was to use an USB keyboard for the install. It still remains an inconvenience as we have all the 30-40 servers (still, only 3 ESX :)&amp;nbsp;connected through KVMs with PS/2 keyboard connectors.&lt;br /&gt;&lt;br /&gt;LATER EDIT:&lt;br /&gt;Thanks to Valentin Hristev (see comment below), there is solution to use the PS/2 keyboard:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;, &amp;quot;serif&amp;quot;; font-size: 12pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"&gt;When you boot your ESXi 4.1 and see blue screen fast press TAB to edit boot options &lt;br /&gt;then edit with "acpi=off" it should look like this:&lt;br /&gt;mboot.c32 vmkboot.gz acpi=off --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-884720686177225285?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/884720686177225285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=884720686177225285' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/884720686177225285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/884720686177225285'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2010/11/esxi-41-and-ps2-keyboards.html' title='ESXi 4.1 and PS/2 keyboards'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-1805858162391555517</id><published>2010-11-24T09:13:00.008+02:00</published><updated>2011-06-23T13:14:26.318+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dell'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='storage'/><title type='text'>Dell MD3000i slow write speed - cache deactivated</title><content type='html'>(credits for this article to &lt;a href="http://vmtoday.com/"&gt;vmtoday.com&lt;/a&gt;, for an article about a similar IBM array, with slightly different commands)&lt;br /&gt;I stumbled across a problem earlier this year with PowerVault MD3000i SAN array and didn't find a specific resolution for this storage, so I though I write about it here so you can solve it easier.&lt;br /&gt;When you buy the MD3000i with only one controller, it deactivates the write cache, becouse the write mirroring feature is enabled (which requires two controllers). The result is that the writing speed is very low and the latency is high.&lt;br /&gt;To activate the cache you need to use the CLI tool provided with the Modular Disk Storage Manager software, which you can find here: C:\Program Files\Dell\MD Storage Manager\client\SMcli.exe. You can first locate the virtual disks that have the cache suspended (Array0 is the name of my array, you should change it to whatever yours is named)&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family: courier new;"&gt;smcli.exe -n Array0 -c "show allVirtualDisks;"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;... Write cache: Enabled (currently suspended)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;... Write cache with mirroring: Enabled&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: Georgia;"&gt;To disable the mirroring feature and enable caching:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;smcli.exe -n Array0 -c "set allVirtualDisks mirrorEnabled=false;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;smcli.exe -n Array0 -c "set allVirtualDisks writeCacheEnabled=true;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;Later edit:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: courier new;"&gt;smcli.exe -n Array0 -c "set allVirtualDisks cacheWithoutBatteryEnabled=true;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-1805858162391555517?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/1805858162391555517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=1805858162391555517' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1805858162391555517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1805858162391555517'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2010/11/dell-md3000i-slow-write-speed-cache.html' title='Dell MD3000i slow write speed - cache deactivated'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-8043509535580296797</id><published>2010-03-12T12:32:00.006+02:00</published><updated>2011-03-04T10:57:37.460+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vsphere'/><category scheme='http://www.blogger.com/atom/ns#' term='esx'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>vSphere - Sluggish mouse on Windows 7 and 2008 Server</title><content type='html'>I had this issue after installing Windows 2008 R2 on VMWare ESX 4.0 (208111). Even though I installed VMWare tools, the mouse was still acting as if the driver wasn't installed - the mouse is jumpy and is not leaving the console after the "real" mouse is exiting the screen.&lt;br /&gt;It seems that VMWare is aware of this issue and will solve it eventually.&lt;br /&gt;Anyway, this is the quick fix:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;install VMWare Tools in your machine, reboot;&lt;/li&gt;&lt;li&gt;VMWare tools has created the folder: C:\Program Files\Common Files\VMware\Drivers\wddm_video;&lt;/li&gt;&lt;li&gt;go to Device Manager, to your video adapter and select "Update driver";&lt;/li&gt;&lt;li&gt;when asked for the files, browse to the folder above;&lt;/li&gt;&lt;li&gt;reboot;&lt;/li&gt;&lt;li&gt;problem fixed!&lt;/li&gt;&lt;/ul&gt;LE: after every VMWare tools update you need to redo these steps.&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-8043509535580296797?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/8043509535580296797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=8043509535580296797' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8043509535580296797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8043509535580296797'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2010/03/vsphere-sluggish-mouse-on-windows-7-and.html' title='vSphere - Sluggish mouse on Windows 7 and 2008 Server'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-154787661519614650</id><published>2010-03-09T03:12:00.010+02:00</published><updated>2010-03-09T12:55:55.088+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vsphere'/><category scheme='http://www.blogger.com/atom/ns#' term='esx'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>Integrating VMWare ESX into your enterprise network with VLANs, trunking, load balancing</title><content type='html'>VMWare ESX 3 and VSphere can fit nicely into your enterprise network, adding unprecedented flexibility and functionality; after you've got the taste you'll be hooked on it. Virtual machines can be moved from one VLAN to another with a few cliks.&lt;br /&gt;First of all, about load balancing... If you have VSphere installed on an enterprise server then you most likely have 2 gigabit network interfaces at your disposal. These NICs can be "teamed" for load balancing and failover purposes. As you will see further in the article, load balancing will work even if the swith doesn't support load balancing, but it will only work for outgoing traffic. To make the most of load balancing you need to use a switch that supports etherchannel; in this way the switch will send traffic to the server on both ports, based on the load balancing scheme we configure. In this example we'll be using the Cisco Catalyst 2960G switch.&lt;br /&gt;You can find network configuration of the ESX host on tab Configuration - section Hardware - Networking. You'll probably use vSwitch0 to configure your network interfaces and VLANs. At first you'll have only one NIC added to the vSwitch. You need to add the second interface. Go to the properties of vSwitch0, go to Network Adapters and click on Add to add the other interface; this is how vSwtich0 will look like aftewards:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YUe4yGU2I/AAAAAAAAAMY/aOa7s89bEm0/s1600-h/vswitchnics.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 233px;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YUe4yGU2I/AAAAAAAAAMY/aOa7s89bEm0/s320/vswitchnics.png" alt="" id="BLOGGER_PHOTO_ID_5446563320222339938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Go back to Ports on the tab above to configure load balancing. Edit the vSwitch device and go to NIC teaming. In this example we'll be using load balancing based on IP hash. So configure "Route based on ip hash" in the Load balancing section:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YV5G4Bv9I/AAAAAAAAAMg/HY9qKSXsG4I/s1600-h/loadbal.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 259px; height: 320px;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YV5G4Bv9I/AAAAAAAAAMg/HY9qKSXsG4I/s320/loadbal.png" alt="" id="BLOGGER_PHOTO_ID_5446564870193528786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Next step is to configure the switch. In this first phase we assume that you're running the ESX server in access mode (no VLAN trunking), in VLAN10. Identify the ports in the switch that belong to the ESX server and configure the port channel (we'll assume that you don't have any other port channels configured):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sw(config)#interface range g0/1 - 2&lt;br /&gt;sw(config-if-range)#switchport mode access&lt;br /&gt;sw(config-if-range)#switchport access vlan 10&lt;br /&gt;sw(config-if-range)#channel-group 1 mode on&lt;br /&gt;&lt;/blockquote&gt;Now the communication with the ESX should work; if not, take the ports out of the port channel and fix your configuration.&lt;br /&gt;If everything is ok now, we can prepare the ESX server for VLAN trunking. We need to put the Service Console interface on the desired VLAN - for example, VLAN 10: go to the properties of vSwitch0 and edit the Service Console; click on "Continue modifying the connection" to pass that warning; type your VLAN ID in the next window:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_t9hXgL98RHk/S5Yg29hBT8I/AAAAAAAAAMo/4cf573Bybp4/s1600-h/vlan.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 259px; height: 320px;" src="http://1.bp.blogspot.com/_t9hXgL98RHk/S5Yg29hBT8I/AAAAAAAAAMo/4cf573Bybp4/s320/vlan.png" alt="" id="BLOGGER_PHOTO_ID_5446576927949279170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;At this point you will lose connectivity to the ESX server. To restore it, configure VLAN trunking on the switch:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sw(config)#interface port-channel 1&lt;br /&gt;sw(config-if)#switchport mode trunk&lt;br /&gt;sw(config)#interface range g0/1 - 2&lt;br /&gt;sw(config-if-range)#switchport mode trunk&lt;/blockquote&gt;If you have VMotion or iSCSI or NFS volumes configured, then you need to configure also the VMkernel VLAN, in the same way you configured the Service Console.&lt;br /&gt;In case something goes wrong and you need to troubleshoot you configuration:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; you can check the etherchannel load balancing on the switch:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style="font-family: courier new;"&gt;sw#show etherchannel load-balance&lt;br /&gt;EtherChannel Load-Balancing Configuration:&lt;br /&gt;    src-dst-ip&lt;br /&gt;&lt;br /&gt;EtherChannel Load-Balancing Addresses Used Per-Protocol:&lt;br /&gt;Non-IP: Source XOR Destination MAC addressIPv4: Source XOR Destination IP address&lt;br /&gt;IPv6: Source XOR Destination IP address&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;you can log in to the ESX server console and, for example, configure the VLAN ID of the service console:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style="font-family: courier new;"&gt;[root@server root]# esxcfg-vswitch -v &lt;vlan&gt; -p “Service Console” vSwitch0&lt;/vlan&gt;&lt;/blockquote&gt;To add a VLAN for your virtual machines go to vSwtich0 properties and "Add...", choose connection type "Virtual machine", type your VLAN name for easy identification and the VLAN ID:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YoSnUTzhI/AAAAAAAAAMw/PaPXt6vsQ_M/s1600-h/vlanadd.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 234px;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/S5YoSnUTzhI/AAAAAAAAAMw/PaPXt6vsQ_M/s320/vlanadd.png" alt="" id="BLOGGER_PHOTO_ID_5446585099608116754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Then, moving the virtual machines from one VLAN to another is simple: edit settings on the desired virtual machine and select the network adapter; on the network label drop-down list you will get the VLAN you configured.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-154787661519614650?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/154787661519614650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=154787661519614650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/154787661519614650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/154787661519614650'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2010/03/integrating-esx-into-your-enterprise.html' title='Integrating VMWare ESX into your enterprise network with VLANs, trunking, load balancing'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_t9hXgL98RHk/S5YUe4yGU2I/AAAAAAAAAMY/aOa7s89bEm0/s72-c/vswitchnics.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-4065413817908991492</id><published>2009-03-26T12:40:00.001+02:00</published><updated>2009-03-26T12:48:37.182+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Adding space to ext3/LVM partitions without losing data</title><content type='html'>I've recently ran out of space on a server and decided to write a tutorial about this. There are some resources out there but this is a more complete guide of doing this. Mostly I wrote it for me to have a procedure in the future.&lt;br /&gt;Let's assume we add a new disk on the system and we want to increase the space on the existing partitions without having to delete and recreate them. This would be a nighmare when you have partitions streching on 2-3 1TB disks - lost time and also you need to have the space on some other disk to copy the files.&lt;br /&gt;First of all, add the new disk on the machine. Best would be to boot a live CD (e.g. Knoppix) so that we can make the lvm operations "offline". Create a new partition on the disk using fdisk of type "8e" - Linux LVM.&lt;br /&gt;Next, create the physical volume within the new partition. We'll take as example partition /dev/sde1:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;# pvcreate /dev/sde1&lt;/blockquote&gt;Extend the existing volume with the newly created physical volume:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;# vgextend VolGroup00 /dev/sde1&lt;/blockquote&gt;Next, extend the logical volume to use the space made available by extending the volume group:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;# lvextend -L 1000G /dev/VolGroup00/LogVol00&lt;/blockquote&gt;The final step is to enlarge the ext3 partition to fill up the free space. First you'll have to run a check on the filesyste. These operations will take some time, proportional with the size of the partition:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;# e2fsck -f /dev/VolGroup00/LogVol00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# resize2fs /dev/VolGroup00/LogVol00&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-4065413817908991492?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/4065413817908991492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=4065413817908991492' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4065413817908991492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4065413817908991492'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2009/03/adding-space-to-ext3lvm-partitions.html' title='Adding space to ext3/LVM partitions without losing data'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-3204631794003949260</id><published>2008-11-27T10:29:00.006+02:00</published><updated>2008-11-28T18:40:23.143+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><category scheme='http://www.blogger.com/atom/ns#' term='pix'/><title type='text'>Routing subnets on PIX/ASA interface</title><content type='html'>Generally is not a good ideea to have your firewall do the job of other devices like routers. However there are situations where is not feasible to invest in a router only to do a small task.&lt;br /&gt;The PIX/ASA does not support the secondary ip address on their interfaces. There is a workaround:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;add a static ARP entry so that your firewall replies to ARP requests; use the MAC of the respective interface: &lt;blockquote  style="font-family:courier new;"&gt;arp &lt;span style="FONT-STYLE: italic"&gt;interface&lt;/span&gt; 192.168.2.1 1234.5678.90ab alias&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;add a route to your network (in this example 192.168.1.1 is the IP of the interface): &lt;blockquote  style="font-family:courier new;"&gt;route &lt;span style="FONT-STYLE: italic"&gt;interface&lt;/span&gt; 192.168.2.0 255.255.255.0 192.168.1.1&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-3204631794003949260?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/3204631794003949260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=3204631794003949260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/3204631794003949260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/3204631794003949260'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/11/routing-subnets-on-pixasa-interface.html' title='Routing subnets on PIX/ASA interface'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-6237188718597475678</id><published>2008-11-05T08:39:00.030+02:00</published><updated>2010-03-17T09:50:49.593+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Securing Cisco LANs</title><content type='html'>Security at Layer 2 is often neglected. Yet, having an open data link layer is like sending an invitation to everybody to hack into your network. Here are some simple "best practice" measures (also some not related to Layer 2) you can take so that attacks don't do damage to your network.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Disable Telnet and enable SSH; secure the management protocol&lt;/span&gt;&lt;br /&gt;Telnet is a management protocol that should never be used on production environments. It's main weakness is that it's not encrypted. Someone sniffing your traffic could gain knowledge about your credentials and network configuration.&lt;br /&gt;Example for doing this on a Catalyst switch running IOS:&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;router(config)# hostname router&lt;br /&gt;router(config)# ip domain-name domain&lt;br /&gt;router(config)# aaa new-model&lt;br /&gt;router(config)# username cisco password cisco&lt;br /&gt;router(config)# crypto key generate rsa&lt;br /&gt;router(config)# access-list 10 permit 192.168.23.45 # the IP of your management console&lt;br /&gt;router(config)# line vty 0 4&lt;br /&gt;router(config-line)# transport input ssh&lt;br /&gt;router(config-line)# access-class 10 in&lt;/span&gt;&lt;/blockquote&gt;This also permits only your management station to login to the switch (access-list 10).&lt;br /&gt;Don't use other unencrypted protocols eighter, like SNMP v1 or v2, FTP of TFTP.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software updates&lt;/span&gt;&lt;br /&gt;Keep your switch/router/firewall software updated. In every update security holes are resolved. IOS images or ASA/PIX software can be found in &lt;a href="http://www.cisco.com/kobayashi/sw-center/index.shtml"&gt;http://www.cisco.com/kobayashi/sw-center/index.shtml&lt;/a&gt;. You need a CCO account though; this isn't a problem if your organisation is a Cisco customer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Don't use VLAN 1 for any purpose&lt;/span&gt;&lt;br /&gt;VLAN 1 is the VLAN where switch ports are asigned by default, protocols like CDP, VTP and PAgP where designed to communicate. That's why sometimes VLAN 1 spans across the whole network if not carefully pruned. A few recommendations:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;don't use VLAN for regular traffic. Prune VLAN 1 (including shutdown and not connected ports):&lt;blockquote  style="font-family:courier new;"&gt;&lt;span class="content"&gt;&lt;p class="pB1_Body1"&gt; &lt;span class="cCN_CmdName"&gt;switchport trunk pruning vlan &lt;/span&gt;{&lt;span class="cCN_CmdName"&gt;add&lt;/span&gt; | &lt;span class="cCN_CmdName"&gt;except&lt;/span&gt; | &lt;span class="cCN_CmdName"&gt;none&lt;/span&gt; | &lt;span class="cCN_CmdName"&gt;remove&lt;/span&gt;} &lt;em class="cCi_CmdItalic"&gt;vlan-list &lt;/em&gt;&lt;span class="cCp_CmdPlain"&gt;[&lt;/span&gt;&lt;em class="cCi_CmdItalic"&gt;,vlan&lt;/em&gt;&lt;span class="cCp_CmdPlain"&gt;[&lt;/span&gt;&lt;em class="cCi_CmdItalic"&gt;,vlan&lt;/em&gt;&lt;span class="cCp_CmdPlain"&gt;[&lt;/span&gt;&lt;em class="cCi_CmdItalic"&gt;,,,&lt;/em&gt;&lt;span class="cCp_CmdPlain"&gt;]]&lt;/span&gt; &lt;/p&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;don't use VLAN for inband management; dedicate another VLAN for management. Apply ACLs to this VLAN to allow SSH traffic only from the administrator's management systems;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;don't configure the management VLAN on ports that don't require it;&lt;/li&gt;&lt;li&gt;the most secure, yet expensive, is out-of-band management. Deploy it where it's worth;&lt;/li&gt;&lt;li&gt;use a VLAN other than VLAN 1 as native vlan. Set all your trunk ports to this native VLAN. This also mitigates VLAN hopping attacks:&lt;span class="content"&gt;&lt;p class="pB1_Body1"&gt; &lt;b class="cBold"&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span class="cBold"&gt;switchport trunk native vlan&lt;/span&gt; &lt;em class="cCi_CmdItalic"&gt;vlan-id&lt;/em&gt;&lt;/blockquote&gt;&lt;em class="cCi_CmdItalic"&gt;&lt;/em&gt; &lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Disable unused services that can favour attacks&lt;/span&gt;&lt;br /&gt;Disable Dynamic Trunking Protocol (DTP). If enabled can permit VLAN hopping attacks:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;switch(config-if)# switchport nonegotiate&lt;/blockquote&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;Disable Cisco Discovery Protocol (CDP).  Besides the information this could give to an attacker there were some IOS versions that had a vulnerability that allowed Cisco devices to run out of memory or even crash. Here's how to disable it:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config-if)# no cdp enable&lt;/span&gt;&lt;/blockquote&gt;Turn off VLAN Trunking Protocol (VTP) if not used. If you must use it use MD5 authentication to protect the message exchange between switches. To turn it off put it in transparent mode on all switches:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config)# vtp mode transparent&lt;/span&gt;&lt;/blockquote&gt;To set the VTP password:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config)# vtp password your_password&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Use port security&lt;/span&gt;&lt;br /&gt;In ARP attacks the intruder obtains IP addresses and other information and then uses it to issue the attack. Using port security you are able to specify the number of MAC addresses or the specific MAC address allowed to connect through the port. Enabling port security and example:&lt;br /&gt;&lt;span class="a3"  style="font-family:courier new;"&gt;&lt;blockquote&gt;switch(config)# set port security &lt;span style="font-style: italic;"&gt;port&lt;/span&gt; enable&lt;br /&gt;&lt;span&gt;&lt;span class="a3"  style="font-family:courier new;"&gt;switch(config)# &lt;/span&gt;&lt;/span&gt;switchport port-security maximum 5&lt;br /&gt;&lt;span&gt;&lt;span class="a3"  style="font-family:courier new;"&gt;switch(config)# &lt;/span&gt;&lt;/span&gt;switchport port-security aging time 2&lt;br /&gt;&lt;span&gt;&lt;span class="a3"  style="font-family:courier new;"&gt;switch(config)# &lt;/span&gt;&lt;/span&gt;switchport port-security aging type inactivity&lt;br /&gt;&lt;/blockquote&gt;&lt;/span&gt;This prenvents also CAM table attacks.&lt;br /&gt;As the functionality/security ratio drops significantly you may want to use this only on server ports&lt;span style="font-style: italic;"&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Use DHCP snooping&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;The easiest way of doing a Denial Of Service attack on a LAN is to activate a DHCP server that intercepts legitimate user's DHCP requests. In most cases though this happens when an inocent user mistakingly activates the DHCP server on his host. DHCP snooping is a feature that filters untrusted DHCP messages and builds a DHCP snooping binding table.&lt;br /&gt;You can find out how to configure it here: &lt;a href="http://crazyvlan.blogspot.com/2008/03/protecting-your-network-against-rogue.html"&gt;http://crazyvlan.blogspot.com/2008/03/protecting-your-network-against-rogue.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Dynamic ARP inspection&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;A client is allowed to send an unsolicited ARP reply thus poisoning the ARP tables of the routers. The information is stored by other hosts in the subnet. An attacker could use this behaviour to "hijack" the traffic.  The countermeasure to this attack is to use dynamic ARP inspection.&lt;br /&gt;Dynamic ARP inspection uses the DHCP snooping binding table to allow only those IP-MAC pairs found in the table. Of course you must configure first DHCP snooping otherwise there would be no binding table to use.&lt;br /&gt;To enable ARP inspection:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config)# ip arp inspection vlan vlan-range&lt;/span&gt;&lt;/blockquote&gt;Trust interfaces connected to other switches:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config)# ip arp inspection trust&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Mitigate spoofing attacks - IP source guard&lt;/span&gt;&lt;br /&gt;If IP source guard is activated the switch doesn't learn the MAC address from the device, but from the DHCP snooping binding table. It operates like dynamic ARP inspection but it looks at every packet not just ARP packets.&lt;br /&gt;To activate IP source guard with source IP address filtering:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config-if)# &lt;/span&gt;&lt;span class="content"  style="font-family:courier new;"&gt;&lt;span class="cBold"&gt;ip verify source&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="content"  style="font-family:courier new;"&gt;&lt;span class="cBold"&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;strong&gt;&lt;/strong&gt;To activate IP source guard with source IP and MAC filtering:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config-if)# &lt;/span&gt;&lt;span class="content"  style="font-family:courier new;"&gt;&lt;span class="cBold"&gt;ip verify source port-security&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;STP attack mitigation - BPDU Guard, Root Guard&lt;/span&gt;&lt;br /&gt;BPDU guard - disables ports using portfast upon detection of a BPDU message on the port:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;switch(config-if)# spanning-tree bpduguard enable&lt;/blockquote&gt;Root guard - disables ports who would become the root bridge due to their BPDU&lt;br /&gt;advertisement&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config-if)# spanning-tree guard root&lt;/span&gt;&lt;/blockquote&gt;BPDU filter - ports configured with BPDU filter will not send BPDUs and drop all received BDPUs:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;switch(config-if)# spanning-tree bpdufilter enable&lt;/blockquote&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Preventing broadcast storms&lt;/span&gt;&lt;br /&gt;A broadcast storm occurs when broadcast or multicast packets flood a subnet degrading network performance. Enabling broadcast supression:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;switch(config-if)# broadcast suppression threshold&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Implement 802.1x&lt;/span&gt;&lt;br /&gt;802.1x provides an authentication system for devices wishing to attach to a LAN port. Basically only authenticated systems can access the network; the authentication could be even Windows domain credentials. I won't detail it here; this would be the subject of a later article.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Filtering routing protocol updates&lt;/span&gt;&lt;br /&gt;Routing protocol updates towards the LAN make no sense as you don't have any routers requiring them. Only hackers could make use of them gaining knowledge of your network. This can be activated on all interfaces by default and disabled only on those interfaces that need it. Here's an example of OSPF:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;router(config-router)#passive-interface default&lt;br /&gt;router(config-router)#no passive-interface fastEthernet 0/2&lt;/blockquote&gt;With this only interface f0/2 will exchange routing updates.&lt;br /&gt;&lt;br /&gt;If you think of other attacks and measures to mitigate them please post it and I can update the article with new stuff.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-6237188718597475678?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/6237188718597475678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=6237188718597475678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6237188718597475678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6237188718597475678'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/11/securing-cisco-lans.html' title='Securing Cisco LANs'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-6636701458631476277</id><published>2008-11-01T16:29:00.015+02:00</published><updated>2008-11-11T18:09:25.282+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><title type='text'>Multiple-IP static NAT/port mapping  with PIX/ASA</title><content type='html'>This is the scenario:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/SQxrsMHnBJI/AAAAAAAAAGc/5rWSHtkqHgI/s1600-h/static.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 101px;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/SQxrsMHnBJI/AAAAAAAAAGc/5rWSHtkqHgI/s320/static.png" alt="" id="BLOGGER_PHOTO_ID_5263700471400826002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;When there is a need of mapping an inside IP address to an outside IP we can do static NAT; you can also do only a port redirection. Here's how it's done in ASDM:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/SQxqMV2SN-I/AAAAAAAAAGU/XxsbpdmXjFQ/s1600-h/static.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 200px;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/SQxqMV2SN-I/AAAAAAAAAGU/XxsbpdmXjFQ/s320/static.png" alt="" id="BLOGGER_PHOTO_ID_5263698824745072610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;But what there is to be done when you have multiple inside IP's that need to be mapped to multiple addresses on the outside? Sure, you can choose a port forward for every inside host, but sometimes this is not enough - the hosts need to have outside "correspondents". ASA/PIX doesn't support adding multiple IPs on the interfaces ("secondary", like you would do on a router). A solution to this is to add a static ARP entry:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_t9hXgL98RHk/SQxsOUe8iCI/AAAAAAAAAGk/w0AZXgsZcVg/s1600-h/arp.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 215px;" src="http://4.bp.blogspot.com/_t9hXgL98RHk/SQxsOUe8iCI/AAAAAAAAAGk/w0AZXgsZcVg/s320/arp.png" alt="" id="BLOGGER_PHOTO_ID_5263701057761740834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now you can add your new IP for static NAT:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_t9hXgL98RHk/SQxtDwKb_7I/AAAAAAAAAGs/AwBdtL8qnYk/s1600-h/static_different_ip.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 203px;" src="http://1.bp.blogspot.com/_t9hXgL98RHk/SQxtDwKb_7I/AAAAAAAAAGs/AwBdtL8qnYk/s320/static_different_ip.png" alt="" id="BLOGGER_PHOTO_ID_5263701975724982194" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-6636701458631476277?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/6636701458631476277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=6636701458631476277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6636701458631476277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6636701458631476277'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/11/multiple-ip-static-natport-mapping-with.html' title='Multiple-IP static NAT/port mapping  with PIX/ASA'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_t9hXgL98RHk/SQxrsMHnBJI/AAAAAAAAAGc/5rWSHtkqHgI/s72-c/static.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-7950554082144833551</id><published>2008-10-31T10:36:00.006+02:00</published><updated>2008-11-17T15:23:31.679+02:00</updated><title type='text'>Speedy sh run</title><content type='html'>Did you ever had to wait 10 seconds until your router config shows up after "show running-config"? Cisco enhaced your routing configuration experience by introducing a command that caches the configuration in memory:&lt;br /&gt;&lt;span class="content"&gt;&lt;/span&gt;&lt;blockquote  style="font-family:courier new;"&gt;&lt;span class="content"&gt;Router(config)# parser config cache interface &lt;/span&gt;&lt;/blockquote&gt;After issuing this you have to do a "sh run" to cache the config.&lt;br /&gt;This works on devices with the 12.2 and 12.3 release.&lt;br /&gt;&lt;br /&gt;More info:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtinvgen.html"&gt;http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtinvgen.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-7950554082144833551?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/7950554082144833551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=7950554082144833551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/7950554082144833551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/7950554082144833551'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/10/speedy-sh-run.html' title='Speedy sh run'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-6050082087341254156</id><published>2008-10-30T14:45:00.005+02:00</published><updated>2008-11-11T18:10:32.652+02:00</updated><title type='text'>QoS on PIX/ASA - policing, traffic shaping, priority queuing</title><content type='html'>I'll try not to make a habit by posting someone else's articles but this is really intreresting and useful:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.internetworkexpert.com/2008/09/12/qos-on-the-pixasa-part-1what-tools-are-available/"&gt;QoS on the PIX/ASA - Part 1:What Tools are Available?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.internetworkexpert.com/2008/09/15/qos-on-the-pixasa-%E2%80%93-part-2the-modular-policy-framework/"&gt;QoS on the PIX/ASA – Part 2:The Modular Policy Framework&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.internetworkexpert.com/2008/09/16/qos-on-the-pixasa-%e2%80%93-part-3priority-queuing/"&gt;QoS on the PIX/ASA – Part 3:Priority Queuing&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.internetworkexpert.com/2008/09/20/qos-on-the-pixasa-%e2%80%93-part-4traffic-shaping-and-traffic-policing/"&gt;QoS on the PIX/ASA – Part 4:Traffic Shaping and Traffic Policing&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-6050082087341254156?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/6050082087341254156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=6050082087341254156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6050082087341254156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6050082087341254156'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/10/qos-on-pixasa-policing-traffic-shaping.html' title='QoS on PIX/ASA - policing, traffic shaping, priority queuing'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-4745017468246730838</id><published>2008-10-18T13:18:00.008+03:00</published><updated>2008-11-11T18:11:11.986+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='catalyst'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><category scheme='http://www.blogger.com/atom/ns#' term='dhcp snooping'/><category scheme='http://www.blogger.com/atom/ns#' term='dhcp relay'/><title type='text'>DHCP relay on ASA and DHCP snooping on Catalyst problem</title><content type='html'>I ran into a problem that took me 2 hours to figure out and thought I'd share it :)&lt;br /&gt;I'm running DHCP snooping on my network with Catalyst 2950/2960 switches and routed all VLANs through a 3550.  My DHCP server is a Windows 2003.&lt;br /&gt;For objective reasons I decided to route a VLAN through the firewall (ASA 5510). The problem occured while trying to obtain an IP from the DHCP for a device in that VLAN. All I got debugging ASA was (123.456.789.123 is my DHCP server):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;dhcpd_forward_request: request from abcd.acbd.dabc forwarded to 123.456.789.123.&lt;br /&gt;DHCPD: setting giaddr to 192.168.0.1.&lt;/blockquote&gt;When debugging DHCP snooping on one of the switches my eye cought this:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;31w1d: DHCP_SNOOPING_SW: Encoding opt82 CID in vlan-mod-port format&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;31w1d: DHCP_SNOOPING_SW: Encoding opt82 RID in MAC address format&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;I disabled option 82 on the switch as I didn't need it anyway...&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;no ip dhcp snooping information option&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;...and bingo:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;dhcpd_forward_request: request from abcd.acbd.dabc forwarded to 123.456.789.123.&lt;br /&gt;dhcp_l3_punt_cb: pkt src 123.456.789.123/17152, dest 192.168.0.1/17152&lt;br /&gt;DHCPD/RA: Punt 123.456.789.123/17152 --&gt; 192.168.0.1/17152 to CP&lt;br /&gt;DHCPRA: Received a BOOTREPLY from interface 1&lt;br /&gt;DHCPRA: relay binding found for client abcd.acbd.dabc.&lt;br /&gt;DHCPRA: Adding rule to allow client to respond using offered address 192.168.0.53&lt;br /&gt;DHCPRA: forwarding reply to client abcd.acbd.dabc.&lt;br /&gt;DHCPRA: relay binding found for client abcd.acbd.dabc.&lt;/blockquote&gt;Maybe I'll edit later the article including the explanation but I can't do it now as I have a lot of work ahead of me today.&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-4745017468246730838?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/4745017468246730838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=4745017468246730838' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4745017468246730838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4745017468246730838'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/10/dhcp-relay-in-asa-and-dhcp-snooping-on.html' title='DHCP relay on ASA and DHCP snooping on Catalyst problem'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-2071849473506337304</id><published>2008-05-05T17:16:00.003+03:00</published><updated>2008-11-11T18:11:33.233+02:00</updated><title type='text'>Rate My Network Diagram</title><content type='html'>This is a very interesting site, not so much for admiring other people's network diagram for their "beauty" but for learning how other people think, design and document their networks:&lt;br /&gt;&lt;a href="http://www.ratemynetworkdiagram.com"&gt;http://www.ratemynetworkdiagram.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-2071849473506337304?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/2071849473506337304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=2071849473506337304' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/2071849473506337304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/2071849473506337304'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/05/rate-my-network-diagram.html' title='Rate My Network Diagram'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-936789255984998692</id><published>2008-03-19T16:26:00.006+02:00</published><updated>2008-11-11T18:11:54.586+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Obtaining list of IP addresses from a subnet</title><content type='html'>&lt;div style="text-align: left;"&gt;I made a script today and I needed to get a list of IP addresses from some subnets. The solution to do this is nmap:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;blockquote&gt;nmap -sL -n $subnet &lt;/blockquote&gt;&lt;/span&gt;gives you a lists all the IPs contained by the $subnet subnet.&lt;br /&gt;To actually get a list you can parse the output:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;nmap -sL -n 10.1.1.0/29 | grep "not scanned" | column -t | cut -d ' ' -f 3&lt;br /&gt;&lt;br /&gt;10.1.1.0&lt;br /&gt;10.1.1.1&lt;br /&gt;10.1.1.2&lt;br /&gt;10.1.1.3&lt;br /&gt;10.1.1.4&lt;br /&gt;10.1.1.5&lt;br /&gt;10.1.1.6&lt;br /&gt;10.1.1.7&lt;br /&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-936789255984998692?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/936789255984998692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=936789255984998692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/936789255984998692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/936789255984998692'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/obtaining-list-of-ip-addresses-from.html' title='Obtaining list of IP addresses from a subnet'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-8879430618591606728</id><published>2008-03-18T09:40:00.005+02:00</published><updated>2008-11-11T18:12:14.932+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='ccna'/><category scheme='http://www.blogger.com/atom/ns#' term='ccnp'/><title type='text'>GNS3 - Graphical frontend for Cisco emulation</title><content type='html'>&lt;a href="http://www.gns3.net/"&gt;http://www.gns3.net&lt;/a&gt;&lt;br /&gt;This is a frontend for dynamips and dynagen. It makes life much easier as it allows graphical design and simulation of your network. It's a very good tool when you study for CCNA or CCNP - routing mainly. The developers say they will incorporate PIX support in future releases.&lt;br /&gt;Watch out for high CPU loads. There's a tutorial about how to configure it so that the CPU levels stay at a reasonable level - in the documentation PDF.&lt;br /&gt;Although current release is pretty buggy it's much easier than working with dynagen's config files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-8879430618591606728?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/8879430618591606728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=8879430618591606728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8879430618591606728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8879430618591606728'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/gns3-graphical-frontend-for-cisco.html' title='GNS3 - Graphical frontend for Cisco emulation'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-6027498641885183452</id><published>2008-03-14T14:10:00.007+02:00</published><updated>2008-11-11T18:13:11.546+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Live monitoring of your network with syslog and email</title><content type='html'>If you're a control freak (like I am) here's a little tip for having live monitoring of what's happening on your network: have your switches/routers send syslog messages to a Linux box, filter those messages that don't interest you then send it to yourself via email. Here's how it's done...&lt;br /&gt;First, point the device to the desired syslog server and make sure that you also use a ntp server to provide the correct time:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;logging trap debugging&lt;br /&gt;logging 10.0.0.1&lt;br /&gt;&lt;/blockquote&gt;Next, on the Linux box enable syslogd to accept remote logging: open the file /etc/init.d/sysklogd and make the change:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;SYSLOGD="-r"&lt;/blockquote&gt;Restart sysklogd:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;/etc/init.d/sysklogd restart&lt;/blockquote&gt;Add the following to /etc/syslog.conf:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;local7.debug                    /var/log/network.log&lt;/blockquote&gt;If you're you're using iptables-based firewall add the following line to you firewall script to open port 514/UDP:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;$ipt -A INPUT -p udp --dport 514 -j ACCEPT&lt;/blockquote&gt;Next test the config so far by watching the /var/log/network.log file for incoming messages (make sure there are any - log on to the device, make some config changes, save etc.):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;tail -f /var/log/network.log&lt;/blockquote&gt;Next we need to do a script that parses this config. For example:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;MAILPL=/usr/local/sysm/mail_syslog.sh&lt;br /&gt;TEMPF=/usr/local/sysm/out_syslog&lt;br /&gt;EMAILS_SYSLOG=/usr/local/sysm/emails_syslog&lt;br /&gt;&lt;br /&gt;pastminute=`date --date "1 minute ago" +%b' '%e' '%H:%M`&lt;br /&gt;cat /var/log/network.log | grep "$pastminute" &gt; $TEMPF&lt;br /&gt;while read line&lt;br /&gt;do&lt;br /&gt;if echo $line | grep LINK-3-UPDOWN || echo $line | grep LINEPROTO-5-UPDOWN&lt;br /&gt;then&lt;br /&gt;else&lt;br /&gt;for email in $( cat $EMAILS_SYSLOG )&lt;br /&gt;do&lt;br /&gt; $MAILPL $email "$line"&lt;br /&gt;done&lt;br /&gt;fi&lt;br /&gt;done &lt; $TEMPF &lt;/blockquote&gt;File TEMPF file contains the syslog lines from previous minute and it's generated at each execution. You should have a file, &lt;span style="font-family:courier new;"&gt;emails_syslog&lt;/span&gt;, containing the email addresses to which you want to send the emails.&lt;br /&gt;The above script executes another script, &lt;span style="font-family:courier new;"&gt;mail_syslog.sh&lt;/span&gt; which sends the emails using msmtp (available on Debian: &lt;span style="font-family:courier new;"&gt;apt-get install msmtp&lt;/span&gt;):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;email=$1&lt;br /&gt;text=$2&lt;br /&gt;textfile="/usr/local/sysm/text"&lt;br /&gt;date=`date`&lt;br /&gt;&lt;br /&gt;echo "From: me@mycompany.com" &gt; $textfile&lt;br /&gt;echo "To: $email" &gt;&gt; $textfile&lt;br /&gt;echo "Subject: syslog is saying" &gt;&gt; $textfile&lt;br /&gt;echo "Priority: Urgent" &gt;&gt; $textfile&lt;br /&gt;echo "Importance: high" &gt;&gt; $textfile&lt;br /&gt;echo "" &gt;&gt; $textfile&lt;br /&gt;echo $text &gt;&gt; $textfile&lt;br /&gt;echo "" &gt;&gt; $textfile&lt;br /&gt;echo "" &gt;&gt; $textfile&lt;br /&gt;echo "--" &gt;&gt; $textfile&lt;br /&gt;echo "Report generated at $date" &gt;&gt; $textfile&lt;br /&gt;&lt;br /&gt;cat $textfile | msmtp --host smtp.mycompany.com $email -f me@mycompany.com&lt;br /&gt;&lt;/blockquote&gt;I know, the scripts aren't exactly top of the line but they do the job :)&lt;br /&gt;Needless to day that you need to have your time correct on the syslog server if want to use the syslog data later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-6027498641885183452?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/6027498641885183452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=6027498641885183452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6027498641885183452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/6027498641885183452'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/live-monitoring-of-your-network-with.html' title='Live monitoring of your network with syslog and email'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-2727431740402256958</id><published>2008-03-13T11:34:00.006+02:00</published><updated>2008-11-11T18:13:19.379+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='catalyst'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Protecting your network against rogue DHCP servers</title><content type='html'>If you haven't done it yet you have a ticking bomb on your network. Possible "attackers" are: an unknowing user playing with "test" installation of some freeware software that bundles generously a DHCP server, a bug in a program (no offence to the developers, but I had this problem several times with VMWare which gave IP addresses in the "real" LAN in certain configurations) or even an attacker trying to bring down your network at least for a while or, worse, do a man-in-the-middle attack substituting the real default gateway with its own, eavesdropping on your traffic.&lt;br /&gt;The Cisco solution to this is called DHCP snooping. This feature filters untrusted DHCP traffic and also builds a DHCP snooping binding table.&lt;br /&gt;To use DHCP snooping on the Catalyst switch you must enable it globally:&lt;br /&gt;&lt;blockquote style="font-family: courier new;" face="courier new"&gt;ip dhcp snooping&lt;/blockquote&gt;To enable DHCP snooping on your VLANs:&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;ip dhcp snooping vlan &lt;span style="font-style: italic;"&gt;number&lt;/span&gt;&lt;/blockquote&gt;From the DHCP snooping point of view there are 2 kinds of ports: trusted and untrusted. Trusted ports are the ones that should permit DHCP messages to pass. These are ports that are connected to legitimate DHCP servers and -very important - trunk ports, becouse they should carry DHCP traffic to DHCPD servers and clients. Untrusted ports are the rest of the ports, normal clients that act as DHCP clients.&lt;br /&gt;Trusted ports should have:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ip dhcp snooping trust&lt;/blockquote&gt;Untrusted ports don't need any config option.&lt;br /&gt;Additional, you can configure a limit on the DHCP messages rate (per second) that can be sent on the port - usually untrusted ports. It's not recommended to configure a limit higher that 100 on untrusted ports:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ip dhcp snooping limit rate 100&lt;/blockquote&gt;To enable insertion of DHCP Option 82:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ip dhcp snooping information option &lt;/blockquote&gt;A common caveat in configuring DHCP snooping is the situation when you have multiple VLANs and one DHCP server and you use &lt;span style="font-family:courier new;"&gt;ip helper-address&lt;/span&gt;. To pass trusted DHCP messages you must configure on the routed interface (e.g. VLAN interface):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ip dhcp relay information trusted&lt;/blockquote&gt;To see the DHCP snooping binding table (the connection between MAC addresses, IPs, lease time and port) you can issue:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;sh ip dhcp snooping binding&lt;/blockquote&gt;Another security use for DHCP snooping (if it's activated) is to do Dynamic ARP Inspection which is using the DHCP snooping binding table to discard ARP packets with invalid IP to MAC bindings in an attempt to stop man-in-the-middle attacks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-2727431740402256958?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/2727431740402256958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=2727431740402256958' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/2727431740402256958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/2727431740402256958'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/protecting-your-network-against-rogue.html' title='Protecting your network against rogue DHCP servers'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-4437887888320508458</id><published>2008-03-10T16:17:00.009+02:00</published><updated>2008-11-11T18:13:29.585+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>NEWS - Adventnet Firewall Analyzer update - SP5</title><content type='html'>I would like to take this opportunity to introduce to you (if you didn't knew it already) Firewall Analyzer from Adventnet. It's log analysis software that collects syslog messages and makes reports from firewalls, VPN concentrators IDS and proxy servers.&lt;br /&gt;I use it monitoring ASA firewalls. It can create detailed reports about bandwidth usage, protocol or IP usage, it can send configurable alerts about events on the firewall, reports about network security incidents.&lt;br /&gt;One of the nicest features that comes with this update is the possibility to search in raw logs. Here are the rest of the new features:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;New devices supported&lt;/span&gt;&lt;br /&gt;3Com&lt;br /&gt;Juniper IDP&lt;br /&gt;Cisco IOS&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;New log formats supported&lt;/span&gt;&lt;br /&gt;i-Filter&lt;br /&gt;Free BSD&lt;br /&gt;Bluecoat Proxy&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;New reports supported for the following devices&lt;/span&gt;&lt;br /&gt;Unused rules report for Cisco, Fortigate, and Netscreen devices.&lt;br /&gt;Remote Client VPN support for Netscreen device.&lt;br /&gt;Admin Reports support for Checkpoint device.&lt;br /&gt;Live Reports support for Cisco IOS device.&lt;br /&gt;VPN Live Reports for all VPN devices.&lt;br /&gt;VPN Trend Reports for all VPN devices.&lt;br /&gt;OpManager integration with Firewall Analyzer.&lt;br /&gt;Configuring Data retention policies for database and archived logs.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Alert administration&lt;/span&gt;&lt;br /&gt;Assign owner&lt;br /&gt;Add/View Note options for Alerts&lt;br /&gt;Alert History view&lt;br /&gt;Delete alert&lt;br /&gt;Script/Batch file or Command execution on triggering of Alert.&lt;br /&gt;Triggering alert for Firewall non-availability.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Imported Log Files enhancements&lt;/span&gt;&lt;br /&gt;Bulk deletion&lt;br /&gt;Sorting log files&lt;br /&gt;Bulk deletion of archieved files.&lt;br /&gt;Raw log search in Advanced Search option.&lt;br /&gt;Searching Archieve log data.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SysLog Viewer enhancements&lt;/span&gt;&lt;br /&gt;Search facility&lt;br /&gt;Configuring display columns&lt;br /&gt;Security reports drill down to the depth of raw SysLog view.&lt;br /&gt;View SysLog available in Security tab.&lt;br /&gt;Provision to drop only the log data and retain the cinfiguration data in the database.&lt;br /&gt;Dynamic file name support for log file import through FTP.&lt;br /&gt;Provision for automatic DNS resolution.&lt;br /&gt;Localization supported for reports exported to PDF format.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Bug Fixes&lt;/span&gt;&lt;br /&gt;Delete and readd Report Profile with the same name.&lt;br /&gt;Disabled Simulate feature for Operator and Guest users.&lt;br /&gt;Notifying last data availability date in the home page.&lt;br /&gt;Exporting only the selected report to PDF format instead of all the reports of a resource.&lt;br /&gt;Creation of archive directory with DNS name instead of IP address.&lt;br /&gt;Archieving structure divided into Hot, Warm, and Cold, to keep with the industry requirements.&lt;br /&gt;Resolve DNS is slow and not resolving all IP Addresses issue has been fixed.&lt;br /&gt;Disabled scheduled FTP import tasks are started after restarting the FWA issue has been fixed.&lt;br /&gt;PDF Generation issues for Custom Reports with 3, 4, and 5 columns.&lt;br /&gt;A number of bug fixes for perfomance enhancement.&lt;/span&gt;&lt;/blockquote&gt;&lt;a href="http://manageengine.adventnet.com/products/firewall/"&gt;http://manageengine.adventnet.com/products/firewall&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-4437887888320508458?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/4437887888320508458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=4437887888320508458' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4437887888320508458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/4437887888320508458'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/news-adventnet-firewall-analyzer-update.html' title='NEWS - Adventnet Firewall Analyzer update - SP5'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-740391925551575954</id><published>2008-03-10T14:10:00.007+02:00</published><updated>2008-12-12T07:58:09.681+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><title type='text'>Using ASA/PIX with policy NAT to map an inside host</title><content type='html'>Possible scenarios when using policy NAT would be:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;a LAN has private IP addresses that connect to the Internet using NAT overload; one host from this LAN needs to be accessed from outside with a public IP address only from certain hosts&lt;/li&gt;&lt;li&gt;a branch of an organization has a testbed with IP addresses that are routed only in the local network. In order to give access from other hosts in the intranet to a host in the testbed a PIX/ASA firewall is used to map the private IP address of the testbed host to a enterprise-wide routed IP that will be accessed only from authorised IPs.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;We'll be tackling the latter situation. Here's the network diagram of our example:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/R9UmJv6wWZI/AAAAAAAAAD4/KjrwJSJ6naA/s1600-h/policynat.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/R9UmJv6wWZI/AAAAAAAAAD4/KjrwJSJ6naA/s320/policynat.png" alt="" id="BLOGGER_PHOTO_ID_5176085295655836050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Networks behind R are: a enterprise-routed VLAN (10.100.1.0/24) and a testbed VLAN (192.168.0.0/24) which only has static routes on R and FW. The desire is that host H2 could be accessed from the outside of the FW, only from 10.200.1.2. The IP address that will be mapped on the FW should be from the 10.100.1.0/24 subnet.&lt;br /&gt;This can be accomplished using policy NATting on the FW firewall. In order to do this we need to create an ACL that will filter only specified IP pairs that will trigger NAT. The translation policy should look like this:&lt;br /&gt;&lt;blockquote  style="font-family:courier new;"&gt;access-list &lt;span style="font-style: italic;"&gt;acl_name&lt;/span&gt; permit ip &lt;span style="font-style: italic;"&gt;real_ip real_mask foreign_ip foreign_mask&lt;/span&gt;&lt;/blockquote&gt;To keep the ACL manageable we'll use on object-group that contains the &lt;span style="font-style: italic;font-family:courier new;" &gt;foreign_ip&lt;/span&gt;:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;object-group network mapping&lt;br /&gt;description List of IPs that can do policy NAT&lt;br /&gt;network-object host 10.200.1.2&lt;/blockquote&gt;The ACL in our case is:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;access-list policynat extended permit ip host 192.168.0.2 object-group mapping&lt;/blockquote&gt;&lt;/span&gt;Finally, to do the mapping we'll use a static translation:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;static (inside,outside) 10.100.1.3 access-list policynat&lt;/blockquote&gt;10.100.1.3 is the mapped IP address. To test the configuration ping 10.100.1.3 from 10.200.1.2. The result is that FW will translate 10.100.1.3 to 192.168.0.2 which takes the route through R and then H2.&lt;br /&gt;To troubleshoot:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ciscoasa# sh nat&lt;br /&gt;&lt;br /&gt;NAT policies on Interface inside:&lt;br /&gt;match ip inside host 192.168.0.2 outside host 10.200.1.2&lt;br /&gt;  static translation to 10.100.1.3&lt;br /&gt;  translate_hits = 10, untranslate_hits = 3&lt;/blockquote&gt;&lt;span style="font-family:courier new;"&gt;untranslate_hits&lt;/span&gt; are traffic from IPs other than 10.200.1.2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-740391925551575954?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/740391925551575954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=740391925551575954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/740391925551575954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/740391925551575954'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/using-asapix-with-policy-nat-to-map.html' title='Using ASA/PIX with policy NAT to map an inside host'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_t9hXgL98RHk/R9UmJv6wWZI/AAAAAAAAAD4/KjrwJSJ6naA/s72-c/policynat.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-304598892010600597</id><published>2008-03-05T16:03:00.011+02:00</published><updated>2008-11-11T18:13:51.435+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Debian mirror through HTTP proxy</title><content type='html'>Ever wanted to put together a Linux Debian mirror in an intranet with no direct access to Internet? The classical solution is, of course, rsync but what do you do when you can't access the source directly and your only way out is a HTTP proxy? The solution is &lt;span style="font-weight: bold;"&gt;debmirror&lt;/span&gt;. To install it: apt-get install debmirror.&lt;br /&gt;First make sure that you exported your proxy server:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;export http_proxy=http://proxy.localnet:port&lt;/blockquote&gt;Then set up a script that runs periodically (daily, for example):&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;debmirror -a i386 -m -h ftp.de.debian.org -e http -d stable -d testing -d unstable --root /debian --getcontents --progress -v /mirror/debian&lt;br /&gt;&lt;/blockquote&gt;This is pulling the stable, testing and unstable from ftp.de.debian.org - of course you should choose whatever mirror is closer to you. If you're having problems with the PGP signatures you can add &lt;span style="font-family:courier new;"&gt;--ignore-release-gpg&lt;/span&gt;.&lt;br /&gt;You can log the operation by adding:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;1&gt; /log/mirror-debian-repository.out.log 2&gt; /log/mirror-debian-repository.err.log&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-304598892010600597?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/304598892010600597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=304598892010600597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/304598892010600597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/304598892010600597'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/http-debian-mirror-through.html' title='Debian mirror through HTTP proxy'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-5190803546933824664</id><published>2008-03-03T21:18:00.007+02:00</published><updated>2008-11-11T18:14:06.562+02:00</updated><title type='text'>Cisco-centric Open Source Exchange Community - COSI</title><content type='html'>&lt;a href="http://cosi-nms.sourceforge.net/"&gt;http://cosi-nms.sourceforge.net/&lt;/a&gt;&lt;br /&gt;I stumbled across this site many times but since I'm posting on this blog since last week I thought I should mention it now.&lt;br /&gt;The site is a community that develops open source software for managing Cisco equipment. It collects links to many Cisco-related open source projects. This is a very useful resource as "real" tools come with a high price and actually you can't buy many of them.&lt;br /&gt;I use myself VMPS-SRV, a web interface for managing VMPS. This tool (well, slightly modified) can be used in conjunction with an open-source VMPS server (which actually isn't listed in this site :). Maybe this will make the subject of another article, in spite of the fact that the current trend is to use 802.1x.  However, if anyone is still interested in using VMPS please let me know - add a comment. In some environments maybe it's still the good choice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-5190803546933824664?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/5190803546933824664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=5190803546933824664' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/5190803546933824664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/5190803546933824664'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/cisco-centric-open-source-exchange.html' title='Cisco-centric Open Source Exchange Community - COSI'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-623253615243665814</id><published>2008-03-03T16:50:00.007+02:00</published><updated>2008-12-12T07:58:09.970+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='asa'/><title type='text'>Time-based ACL on ASA firewall</title><content type='html'>I had a request to limit the bandwidth of some hosts in a LAN only on the business hours. Not knowing that time-based ACLs are supported I decided to do that without the time component on the local ASA 5510 firewall located at the border of the network. After doing that something caught my eye browsing trough the ASDM:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_t9hXgL98RHk/R8wTCUdAxJI/AAAAAAAAAC8/BO0HZtJA4H4/s1600-h/timeacl.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_t9hXgL98RHk/R8wTCUdAxJI/AAAAAAAAAC8/BO0HZtJA4H4/s320/timeacl.png" alt="" id="BLOGGER_PHOTO_ID_5173531002512917650" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The "Time ranges" object. This has a very flexible definition: it has 2 layers; the first layer defines the start time and the end time (for example: the time range of the second layer will begin on 03.03.2008, 2100 hours and end on 05.03.2008, 0800 hours); the second second layer is weekly-based - eighter select the days of the week with a hourly interval or select a weekly interval when this range will be active.&lt;br /&gt;For example, if you want to define the range of working hours (9:00 to 17:00) you can do it like this:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;time-range working_hours&lt;br /&gt;periodic weekdays 9:00 to 17:00&lt;/blockquote&gt;Now back to the starting case, limiting some hosts during business hours:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;define the time range - done above;&lt;/li&gt;&lt;li&gt;define a ACL with the IPs of the hosts, for example:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style="font-family: courier new;"&gt;access-list limit extended permit ip host 10.0.0.1 any time-range working_hours&lt;br /&gt;access-list limit extended permit ip any host 10.0.0.1 time-range working_hours&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;make a class-map:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style="font-family: courier new;"&gt;class-map class&lt;br /&gt;match access-list limit&lt;br /&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;write a policy-map for policing at 2Mbps (in this example):&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style="font-family: courier new;"&gt;policy-map outside-policy&lt;br /&gt;class class&lt;br /&gt; police input 2000000 16000&lt;br /&gt; police output 2000000 16000&lt;br /&gt;service-policy outside-policy interface outside&lt;br /&gt;&lt;/blockquote&gt;Or you can do it with ASDM :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-623253615243665814?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/623253615243665814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=623253615243665814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/623253615243665814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/623253615243665814'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/03/time-based-acl-on-asa-firewall.html' title='Time-based ACL on ASA firewall'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_t9hXgL98RHk/R8wTCUdAxJI/AAAAAAAAAC8/BO0HZtJA4H4/s72-c/timeacl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-1477935468469187950</id><published>2008-02-29T17:14:00.007+02:00</published><updated>2008-12-12T07:58:10.210+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mrtg'/><title type='text'>Monitoring IP segment usage with MRTG</title><content type='html'>Here's a little ready-made script for graphing the usage of a subnet or a VLAN with multiple subnets.&lt;br /&gt;We'll be using nmap for quickly surveying the subnets and MRTG for creating graphs like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_t9hXgL98RHk/R8g0AkdAxCI/AAAAAAAAABM/7KKs7PMgOaY/s1600-h/usage.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_t9hXgL98RHk/R8g0AkdAxCI/AAAAAAAAABM/7KKs7PMgOaY/s320/usage.png" alt="" id="BLOGGER_PHOTO_ID_5172441356425020450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;First, the script:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;nets="192.168.200.128/25 192.168.200.0/26"&lt;br /&gt;nrips=188&lt;br /&gt;&lt;br /&gt;for net in $nets&lt;br /&gt;do&lt;br /&gt;nrup=`nmap -sP $net | grep "Nmap finished" | column -t | cut -d ' ' -f 11 | cut -d '(' -f 2`&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;nrtot=$nrup&lt;br /&gt;&lt;br /&gt;proc=`echo "scale=2; $nrtot/$nrips*100" | bc -l | cut -d '.' -f 1`&lt;br /&gt;echo $proc&lt;br /&gt;echo 0&lt;/blockquote&gt;The script doesn't calculate the number of total IPs, so you must do it yourself, in $nrips.&lt;br /&gt;It returns the usage percent and 0 (to suit MRTG).&lt;br /&gt;&lt;br /&gt;The MRTG config:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;Target[xyz]: `/etc/mrtg/the_script`&lt;br /&gt;MaxBytes[xyz]: 100&lt;br /&gt;Options[xyz]: growright,gauge,noinfo,nopercent&lt;br /&gt;ShortLegend[xyz]: %&lt;br /&gt;Title[xyz]: % IP usage&lt;br /&gt;YLegend[xyz]: Percent&lt;br /&gt;...&lt;/blockquote&gt;And don't forget to schedule the script every 5 minutes in /etc/crontab:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/ip_usage &gt;/dev/null 2&gt;&amp;amp;1&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-1477935468469187950?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/1477935468469187950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=1477935468469187950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1477935468469187950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1477935468469187950'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/02/monitoring-ip-segment-usage-with-mrtg_29.html' title='Monitoring IP segment usage with MRTG'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_t9hXgL98RHk/R8g0AkdAxCI/AAAAAAAAABM/7KKs7PMgOaY/s72-c/usage.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-8127858304715010345</id><published>2008-02-29T13:57:00.010+02:00</published><updated>2008-11-11T18:14:54.781+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='active directory'/><category scheme='http://www.blogger.com/atom/ns#' term='radius'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='squid'/><title type='text'>Squid RADIUS authentication</title><content type='html'>If you use a RADIUS server for other authentication needs in your organisation why not use it for proxy access? One possible scenario is giving access to web services only to users in specific Active Directory groups.&lt;br /&gt;As a RADIUS server you can use &lt;a href="http://www.freeradius.org/"&gt;freeRADIUS&lt;/a&gt; or Microsoft's IAS server. If you're using the latter you can find info and basic configuration for the IAS server in the first part of &lt;a href="http://crazyvlan.blogspot.com/2008/02/vpn-and-radius-with-cisco-asa-and.html"&gt;this article&lt;/a&gt;. Basically you have to declare the client and set up a remote access policy (set Service-Type = Login) and a connection request policy. You also need a security group that will be allowed to validate the remote access policy (you can't specify single users).&lt;br /&gt;I won't describe the installation of Squid, it's not this article's topic.&lt;br /&gt;The authenticating module I used is squid_radius_ath. You can find it &lt;a href="http://www.squid-cache.org/contrib/squid_radius_auth/"&gt;here&lt;/a&gt;. Download it, unpack it and compile it. You will get a squid_radius_auth executable that you can move to a safe place. It needs a config file, squid_radius_auth that should contain the name of the RADIUS server and the secret:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;server radius_server&lt;br /&gt;secret secret_phrase&lt;/blockquote&gt;You need to point Squid to the authenticator so place something like this in squid.conf:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;auth_param basic program /path_to_auth/squid_radius_auth&lt;br /&gt;auth_param basic children 5&lt;br /&gt;auth_param basic realm Please enter your domain credentials&lt;br /&gt;auth_param basic credentialsttl 8 hours&lt;/blockquote&gt;Next you have to condition Squid to allow only authenticated users. In the following example users that are in the local LAN are allowed without logging in but users that don't show up in the local users file (localusers) are asked to login:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;acl passwd proxy_auth&lt;br /&gt;acl localusers src "/etc/squid/localusers"&lt;br /&gt;&lt;br /&gt;http_access allow localusers&lt;br /&gt;http_access allow all passwd&lt;br /&gt;http_access allow all&lt;/blockquote&gt;You'll also have a log of who and when logged on to use the web services on the RADIUS server's logs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-8127858304715010345?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/8127858304715010345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=8127858304715010345' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8127858304715010345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8127858304715010345'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/02/squid-radius-authentication.html' title='Squid RADIUS authentication'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-3792990360872290276</id><published>2008-02-29T11:24:00.006+02:00</published><updated>2008-11-11T18:15:03.085+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>PuTTY Connection Manager</title><content type='html'>I discovered a very useful new toy: PuTTY Connection Manager.&lt;br /&gt;It simply provides a tabbing interface with PuTTY consoles.&lt;br /&gt;&lt;br /&gt;You still have to use the classic PuTTY for this to work. They recommend the latest - 0.60.&lt;br /&gt;&lt;br /&gt;PuTTY Connection Manager - &lt;a href="http://puttycm.free.fr/"&gt;http://puttycm.free.fr/&lt;/a&gt;&lt;br /&gt;PuTTY - google it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-3792990360872290276?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/3792990360872290276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=3792990360872290276' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/3792990360872290276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/3792990360872290276'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/02/putty-connection-manager_5851.html' title='PuTTY Connection Manager'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-8303485814684204060</id><published>2008-02-27T14:50:00.008+02:00</published><updated>2008-11-11T18:15:16.547+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rancid'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>Automating SSH and telnet tasks</title><content type='html'>&lt;blockquote&gt;&lt;/blockquote&gt;This is a short tutorial about automating those annoying tasks that need to be done on a (large) number of routers of switches with the same commands.&lt;br /&gt;I used rancid (&lt;a href="http://www.shrubbery.net/rancid/"&gt;http://www.shrubbery.net/rancid&lt;/a&gt;) for that purpose. It supports Linux among other operating systems. Those of you that use Debian will have it installed with a simple apt-get install rancid-core.&lt;br /&gt;The tool we'll be using, clogin, is located in /usr/lib/rancid/bin/. It needs a bit of configuration that can be stored in a ~/.cloginrc file. The file should look like this:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;add user * {user}&lt;br /&gt;add password * {password} {enable_password}&lt;br /&gt;add method * {ssh}&lt;/blockquote&gt;The method can be ssh or telnet. After this, clogin can be called like: clogin -c "commands" IP.&lt;br /&gt;Here is a simple example script for sending the same commands to a list of Cisco routers/switches:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;clogin=/usr/lib/rancid/bin/clogin&lt;br /&gt;switch="192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4"&lt;br /&gt;&lt;br /&gt;$clogin -c "conf t\ncommand1\ncommand2\nend\nwr mem\n\n\n" $switch &gt; logs/log_`date`&lt;br /&gt;&lt;/blockquote&gt;That's all there is to it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-8303485814684204060?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/8303485814684204060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=8303485814684204060' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8303485814684204060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/8303485814684204060'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/02/automating-ssh-and-telnet-tasks.html' title='Automating SSH and telnet tasks'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9086005356100413193.post-1247218210093228139</id><published>2008-02-26T10:02:00.023+02:00</published><updated>2008-12-12T07:58:10.944+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='aaa'/><category scheme='http://www.blogger.com/atom/ns#' term='radius'/><category scheme='http://www.blogger.com/atom/ns#' term='windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='vpn'/><title type='text'>VPN and Radius with Cisco ASA and Windows 2003 Server</title><content type='html'>Here's an article about integrating the Cisco ASA firewall/VPN concentrator 5500 family with Windows 2003 Server's RADIUS server, called Internet Authentication Server - AIS. What I will describe is setting up a ASA 5500 appliance to do Remote Access VPNs authenticating against a MS IAS RADIUS server; the twist to this setup is differentiating between multiple Windows user groups - linking a Windows AD group to a specific tunnel-group.&lt;br /&gt;I decided to write this article becouse I had to search for too much how to do some of the things described below.&lt;br /&gt;&lt;br /&gt;In the first part we'll take care of setting up the 2003 Server.&lt;br /&gt;&lt;br /&gt;First of all make sure that if you're deploying RADIUS for a large organization you're using the Enterprise flavor of Windows 2003 Server. It has more extensive capabilities than the Standard edition - see &lt;a href="http://www.winsupersite.com/showcase/winserver2003_editions.asp"&gt;http://www.winsupersite.com/showcase/winserver2003_editions.asp&lt;/a&gt; for example.&lt;br /&gt;&lt;br /&gt;Second, install IAS on the 2003 Server - it doesn't come installed by default:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_t9hXgL98RHk/SB8T55goEOI/AAAAAAAAAEA/LmnlpL2Yifo/s1600-h/install.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_t9hXgL98RHk/SB8T55goEOI/AAAAAAAAAEA/LmnlpL2Yifo/s320/install.png" alt="" id="BLOGGER_PHOTO_ID_5196894380419977442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In order to use the IAS with a client (in our case, the ASA device) you have to declare the client to IAS, otherwise the server will not answer the queries: enter the IAS management console, right click on the "RADIUS Clients" on the left &gt; New RADIUS Client. Here choose a name for the ASA device; this will be unique and you'll be using it later. Next, as Client-Vendor choose RADIUS standard, and as secret - a phrase that you'll use later in your ASA config to pair with the IAS server.&lt;br /&gt;Next, the server needs a Connection request policy to allow the client to connect: Connection Request Processing &gt; Connection Request Policies &gt; New... Here make a custom policy and as Policy Condition you can use for example "Client-Friendly-Name" and specify the name you chose in the previous step when you declared the client:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_t9hXgL98RHk/SB8ULZgoEPI/AAAAAAAAAEI/kQc0wVpGtok/s1600-h/connreq.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_t9hXgL98RHk/SB8ULZgoEPI/AAAAAAAAAEI/kQc0wVpGtok/s320/connreq.png" alt="" id="BLOGGER_PHOTO_ID_5196894681067688178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The next thing to do is to create a Remote Access Policy, again a custom one.&lt;br /&gt;For this you have to have prepared one or more Windows groups (local or better - AD groups) in which you include the users that can access the VPN.&lt;br /&gt;So, in policy conditions add the Client Friendly name (for example) and the Windows-Groups attribute; here you'll be asked for the group. Next, "Grant remote access permision" and edit the profile. In the Authentication tab choose only "Unencrypted authentication" and in the Encryption tab choose only "No encryption". We'll handle the Advanced tab later.&lt;br /&gt;&lt;br /&gt;Now the ASA appliance.&lt;br /&gt;I won't describe in detail how to set up a Remote Access VPN, there are plenty of tutorials and guides for doing this. One would be &lt;a href="http://www.cisco.com/warp/public/110/asa-remotevpn-asdm.pdf"&gt;http://www.cisco.com/warp/public/110/asa-remotevpn-asdm.pdf&lt;/a&gt;.&lt;br /&gt;Here's a sample setup of doing this:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;aaa-server group1 protocol radius aaa-server group1 host 192.168.1.2  key secret&lt;/blockquote&gt;group1 will be used to authenticate the VPN users against the 192.168.1.2 server (this is the IP of the 2003 Server box with IAS). Before continuing with the setup let's test the RADIUS communication:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ASA# test aaa-server authentication group1 username user password passwd&lt;br /&gt;Server IP Address or name: 192.168.1.2&lt;br /&gt;INFO: Attempting Authentication test to IP address &lt;192.168.1.2&gt; (timeout: 12 seconds)&lt;br /&gt;INFO: Authentication Successful&lt;/blockquote&gt;If the authentication was successful you will get the above message. If not, you need to debug it. On the IAS server side you can check the Event Log in the System category. Every attempt of authentication is logged there is successful or not. Typical pitfalls are misconfigured Remote Access Policies of Connection Request Policies.  You will get a "Reason" for the failure.&lt;br /&gt;If you don't even get a Event Log message then you need to check your security device configuration or IP connectivity.&lt;br /&gt;The rest of the configuration:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;ip local pool vpn-pool 10.0.1.2 - 10.0.1.255&lt;br /&gt;group-policy testvpn internal&lt;br /&gt;group-policy testvpn attributes&lt;br /&gt;dns-server value 192.168.1.3&lt;br /&gt;vpn-tunnel-protocol IPSec&lt;br /&gt;default-domain value test.local&lt;br /&gt;crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac&lt;br /&gt;crypto dynamic-map outside_dyn_map 10 set transform-set ESP-3DES-SHA&lt;br /&gt;crypto dynamic-map outside_dyn_map 10 set security-association lifetime seconds 288000&lt;br /&gt;crypto map Outside_map 10 ipsec-isakmp dynamic outside_dyn_map&lt;br /&gt;crypto map Outside_map interface outside&lt;br /&gt;crypto isakmp enable outside&lt;br /&gt;crypto isakmp policy 10&lt;br /&gt;authentication pre-share&lt;br /&gt;encryption 3des&lt;br /&gt;hash sha&lt;br /&gt;group 2&lt;br /&gt;lifetime 86400&lt;br /&gt;crypto isakmp nat-traversal  20&lt;br /&gt;tunnel-group testvpn-group type ipsec-ra&lt;br /&gt;tunnel-group testvpn-group general-attributes&lt;br /&gt;address-pool vpn-pool&lt;br /&gt;authentication-server-group group1&lt;br /&gt;default-group-policy testvpn&lt;br /&gt;tunnel-group testvpn-group ipsec-attributes&lt;br /&gt;pre-shared-key *&lt;/blockquote&gt;Please note that is only an example config and your needs may require some other config options.&lt;br /&gt;To complicate matters, if you have multiple VPN tunnel groups then you need to differentiate between users that are allowed to access each tunnel then you need to add a special attribute in the Remote Access Policy: go to the Remote Access Policy you're editing and in the Advanced tab add a Class attribute with a string value of OU=value. The value must match the name of the tunnel group:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_t9hXgL98RHk/SB8U0JgoEQI/AAAAAAAAAEQ/hDA3CA_Sjgg/s1600-h/grouplock.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_t9hXgL98RHk/SB8U0JgoEQI/AAAAAAAAAEQ/hDA3CA_Sjgg/s320/grouplock.png" alt="" id="BLOGGER_PHOTO_ID_5196895381147357442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;On the ASA:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;group-policy testvpn attributes&lt;br /&gt;group-lock value testvpn-group&lt;/blockquote&gt;What I couldn't figure out is how to differentiate the VPN users from the management users (console, ASDM etc). If anybody knows please let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9086005356100413193-1247218210093228139?l=crazyvlan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://crazyvlan.blogspot.com/feeds/1247218210093228139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9086005356100413193&amp;postID=1247218210093228139' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1247218210093228139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9086005356100413193/posts/default/1247218210093228139'/><link rel='alternate' type='text/html' href='http://crazyvlan.blogspot.com/2008/02/vpn-and-radius-with-cisco-asa-and.html' title='VPN and Radius with Cisco ASA and Windows 2003 Server'/><author><name>Gabriel Gearip</name><uri>http://www.blogger.com/profile/05724866087792588534</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_t9hXgL98RHk/SB8T55goEOI/AAAAAAAAAEA/LmnlpL2Yifo/s72-c/install.png' height='72' width='72'/><thr:total>24</thr:total></entry></feed>
