<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Henry&#039;s Points &#187; Networks</title>
	<atom:link href="http://henrydu.com/blog/category/networks/feed" rel="self" type="application/rss+xml" />
	<link>http://henrydu.com/blog</link>
	<description>Think analog, act digital</description>
	<lastBuildDate>Mon, 14 Nov 2011 18:32:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>router-traffic for CBAC</title>
		<link>http://henrydu.com/blog/networks/router-traffic-for-cbac-376.html</link>
		<comments>http://henrydu.com/blog/networks/router-traffic-for-cbac-376.html#comments</comments>
		<pubDate>Tue, 07 Dec 2010 21:40:33 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=376</guid>
		<description><![CDATA[CBAC is the upgrade version of flexible access control. Since access list is not stateful control, which means, if very strict access list applied in Outside interface for inbound traffic, most of traffic initialized from Inside subnet will be blocked. CBAC help us to inspect specified outgress traffic and put state in the state table. [...]]]></description>
			<content:encoded><![CDATA[<p>CBAC is the upgrade version of flexible access control. Since access list is not stateful control, which means, if very strict access list applied in Outside interface for inbound traffic, most of traffic initialized from Inside subnet will be blocked. CBAC help us to inspect specified outgress traffic and put state in the state table. When the traffic comes back, the Outside interface won&#8217;t block them out.</p>
<p>However, the interesting problem is, if the traffic initilized from local router, the inspection won&#8217;t take effect. Like we want to capture transit package by issue &#8220;no ip route-cache&#8221;, we need to add &#8220;router-traffic&#8221; option when define CBAC.</p>
<blockquote><p>ip inspect name INSIDE_OUT tcp router-traffic</p></blockquote>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/router-traffic-for-cbac-376.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/router-traffic-for-cbac-376.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPSec over GRE and IPSec VTI</title>
		<link>http://henrydu.com/blog/networks/vpn/ipsec-over-gre-and-ipsec-vti-368.html</link>
		<comments>http://henrydu.com/blog/networks/vpn/ipsec-over-gre-and-ipsec-vti-368.html#comments</comments>
		<pubDate>Wed, 03 Nov 2010 01:07:35 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=368</guid>
		<description><![CDATA[When reviewing the topic of IPSEC over GRE Tunnel, I have observed that we have several ways to implement it. However, some posts are confusing people. For example, this post is named IPSEC over GRE Tunnel, the actual configuration is IPSec static VTI (Virtual Tunnel Interface), because the configuration under tunnel interface has one line, [...]]]></description>
			<content:encoded><![CDATA[<p>When reviewing the topic of IPSEC over GRE Tunnel, I have observed that we have several ways to implement it. However, some posts are confusing people. For example, <a title="IPSec over GRE" href="https://learningnetwork.cisco.com/docs/DOC-2457" target="_blank">this post</a> is named IPSEC over GRE Tunnel, the actual configuration is IPSec static VTI (Virtual Tunnel Interface), because the configuration under tunnel interface has one line, which indicated that the tunnel mode is changed.</p>
<blockquote><p>tunnel mode ipsec ipv4</p></blockquote>
<p>So, in this post, I would like to clarify some misunderstanding.</p>
<h2>GRE as IPSec interested traffic</h2>
<p>This is the first, and probably less-used solution for IPSec over GRE. We setup Lan-to-Lan IPSec between two physical interface of two routers. Under the crypto map, we set the interested traffic as</p>
<blockquote><p>access-list 105 permit gre &lt;tunnel_source_ip&gt; &lt;tunnel_source_mask&gt; &lt;tunnel_des_ip&gt; &lt;tunnel_des_mask&gt;</p></blockquote>
<p>After ping traffic between each end of the tunnel, the IPSec tunnel is setup. The following are the basic configuration of two routers.</p>
<p>R1</p>
<blockquote><p>!<br />
crypto isakmp policy 10<br />
encr 3des<br />
hash md5<br />
authentication pre-share<br />
group 5<br />
crypto isakmp key CISCO address 150.1.12.2<br />
!<br />
!<br />
crypto ipsec transform-set R1_TO_R2 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R1_TO_R2<br />
!<br />
!<br />
crypto map CRYPTO_MAP 10 ipsec-isakmp<br />
set peer 150.1.12.2<br />
set transform-set R1_TO_R2<br />
match address 105<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.1 255.255.255.0<br />
tunnel source 150.1.12.1<br />
tunnel destination 150.1.12.2<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.1 255.255.255.0<br />
crypto map CRYPTO_MAP<br />
!<br />
access-list 105 permit gre 150.1.12.0 0.0.0.255 150.1.12.0 0.0.0.255<br />
!</p></blockquote>
<p>R2</p>
<blockquote><p>!<br />
crypto isakmp policy 10<br />
encr 3des<br />
hash md5<br />
authentication pre-share<br />
group 5<br />
crypto isakmp key CISCO address 150.1.12.1<br />
!<br />
!<br />
crypto ipsec transform-set R2_TO_R1 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R2_TO_R1<br />
!<br />
!<br />
crypto map CRYPTO_MAP 10 ipsec-isakmp<br />
set peer 150.1.12.1<br />
set transform-set R2_TO_R1<br />
match address 105<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.2 255.255.255.0<br />
tunnel source 150.1.12.2<br />
tunnel destination 150.1.12.1<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.2 255.255.255.0<br />
crypto map CRYPTO_MAP<br />
!<br />
access-list 105 permit gre 150.1.12.0 0.0.0.255 150.1.12.0 0.0.0.255<br />
!</p></blockquote>
<h2>GRE Tunnel Protection</h2>
<p>Since we use <strong>tunnel protection</strong> command under tunnel interface, we don&#8217;t need to define <strong>crypto map</strong>, instead, we need to define ipsec profile. Then, we need apply ipsec protection profile to the tunnel interface. The following are the basic configuration. Please note that, there is no &#8220;<strong>tunnel mode ipsec ipv4</strong>&#8221; command, which means, the tunnel mode is still GRE.</p>
<p>R1</p>
<blockquote><p>!<br />
crypto ipsec transform-set R1_TO_R2 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R1_TO_R2<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.1 255.255.255.0<br />
tunnel source 150.1.12.1<br />
tunnel destination 150.1.12.2<br />
tunnel protection ipsec profile TEST<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.1 255.255.255.0<br />
!</p></blockquote>
<p>R2</p>
<blockquote><p>!<br />
crypto ipsec transform-set R2_TO_R1 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R2_TO_R1<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.2 255.255.255.0<br />
tunnel source 150.1.12.2<br />
tunnel destination 150.1.12.1<br />
tunnel protection ipsec profile TEST<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.2 255.255.255.0<br />
!</p></blockquote>
<h2>Removing 4-Bytes GRE header ???</h2>
<p>Cisco brought us <a title="IPSec VTI" href="http://www.cisco.com/en/US/docs/ios/12_3t/12_3t14/feature/guide/gtIPSctm.html" target="_blank">IPSec VTI</a> (virtual tunnel interface) in IOS 12.3T. The purpose of that is to have a new tunnel mode to reduce 4 bytes GRE header in the traffic. However, different tunnel mode can apply different application. Here are some considerations for IPSec VTI. The IPsec VTI is limited to IP unicast and multicast traffic only, as opposed to GRE tunnels, which have a wider application for IPsec implementation. Thus, for some non-IP traffic, we still need IPSec over GRE.</p>
<p>R1</p>
<blockquote><p>!<br />
crypto ipsec transform-set R1_TO_R2 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R1_TO_R2<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.1 255.255.255.0<br />
tunnel source 150.1.12.1<br />
tunnel destination 150.1.12.2<br />
tunnel protection ipsec profile TEST<br />
tunnel mode ipsec ipv4<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.1 255.255.255.0<br />
!</p></blockquote>
<p>R2</p>
<blockquote><p>!<br />
crypto ipsec transform-set R2_TO_R1 esp-aes 192 esp-sha-hmac<br />
!<br />
crypto ipsec profile TEST<br />
set transform-set R2_TO_R1<br />
!<br />
interface Tunnel0<br />
ip address 150.1.121.2 255.255.255.0<br />
tunnel source 150.1.12.2<br />
tunnel destination 150.1.12.1<br />
tunnel protection ipsec profile TEST<br />
tunnel mode ipsec ipv4<br />
!<br />
interface Serial1/0<br />
ip address 150.1.12.2 255.255.255.0<br />
!</p></blockquote>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/vpn/ipsec-over-gre-and-ipsec-vti-368.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/vpn/ipsec-over-gre-and-ipsec-vti-368.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ASA Static NAT 0 0</title>
		<link>http://henrydu.com/blog/networks/asa/asa-static-nat-0-0-365.html</link>
		<comments>http://henrydu.com/blog/networks/asa/asa-static-nat-0-0-365.html#comments</comments>
		<pubDate>Tue, 19 Oct 2010 18:50:12 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[ASA]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=365</guid>
		<description><![CDATA[When configure static NAT on ASA, normally we will put 0 0 at the end of line static (inside, outside) 10.1.1.1 192.168.1.1 netmask 255.255.255.255 0 0 When we type question mark (?) for the options, it always shows The maximum number of simultaneous tcp connections the local IP hosts are to allow, default is 0 [...]]]></description>
			<content:encoded><![CDATA[<p>When configure static NAT on ASA, normally we will put 0 0 at the end of line</p>
<blockquote><p>static (inside, outside) 10.1.1.1 192.168.1.1 netmask 255.255.255.255 0 0</p></blockquote>
<p>When we type question mark (?) for the options, it always shows</p>
<blockquote><p>The maximum number of simultaneous tcp connections the local IP<br />
hosts are to allow, default is 0 which means unlimited<br />
connections. Idle connections are closed after the time<br />
specified by the timeout conn command</p></blockquote>
<p>I did Google it though, then I found out the real meaning of these two zeros.</p>
<p>The 0, 0 portions of the command means {Max Connections &amp; Emb Limit}. When it is set to 0&#8242;s it means unlimited.</p>
<p>The Max Connections is for TCP connection. the Embryonic Limit means the number of connections that are not completely open. i.e. have not gone through the full 3 way handshake. Its to try and stop a DDoS attack. The security appliance uses the embryonic limit to trigger TCP Intercept, which protects inside systems from a DoS attack perpetrated by flooding an interface with TCP SYN packets. An embryonic connection is a connection request that has not finished the necessary handshake between source and destination.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/asa/asa-static-nat-0-0-365.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/asa/asa-static-nat-0-0-365.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gratuitous ARP</title>
		<link>http://henrydu.com/blog/networks/switching/gratuitous-arp-360.html</link>
		<comments>http://henrydu.com/blog/networks/switching/gratuitous-arp-360.html#comments</comments>
		<pubDate>Wed, 13 Oct 2010 18:56:22 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=360</guid>
		<description><![CDATA[Gratuitous ARP could mean both gratuitous ARP request or gratuitous ARP reply. Gratuitous in this case means a request/reply that is not normally needed according to the ARP specification (RFC 826) but could be used in some cases. A gratuitous ARP request is an AddressResolutionProtocol request packet where the source and destination IP are both [...]]]></description>
			<content:encoded><![CDATA[<p>Gratuitous ARP could mean both gratuitous ARP request or gratuitous ARP reply. Gratuitous in this case means a request/reply that is not normally needed according to the ARP specification (RFC 826) but could be used in some cases. A gratuitous ARP request is an AddressResolutionProtocol request packet where the source and destination IP are both set to the IP of the machine issuing the packet and the destination MAC is the broadcast address ff:ff:ff:ff:ff:ff. Ordinarily, no reply packet will occur. A gratuitous ARP reply is a reply to which no request has been made.</p>
<p>Gratuitous ARPs are useful for four reasons:</p>
<ul>
<li>They can help detect IP conflicts. When a machine receives an ARP request containing a source IP that matches its own, then it knows there is an IP conflict.</li>
<li>They assist in the updating of other machines&#8217; ARP tables. Clustering solutions utilize this when they move an IP from one NIC to another, or from one machine to another.</li>
<li>They inform switches of the MAC address of the machine on a given switch port, so that the switch knows that it should transmit packets sent to that MAC address on that switch port.</li>
<li>Every time an IP interface or link goes up, the driver for that interface will typically send a gratuitous ARP to preload the ARP tables of all other local hosts.</li>
</ul>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/switching/gratuitous-arp-360.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/switching/gratuitous-arp-360.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding Cisco IDS Signature Series</title>
		<link>http://henrydu.com/blog/networks/security/understanding-cisco-ids-signature-series-355.html</link>
		<comments>http://henrydu.com/blog/networks/security/understanding-cisco-ids-signature-series-355.html#comments</comments>
		<pubDate>Tue, 12 Oct 2010 21:45:12 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=355</guid>
		<description><![CDATA[It is important to understand what a signature is, and what exactly a signature does. A signature is a known type of activity. It has already been detected in the wild and someone has captured the personality or traffic pattern of the attack or intrusive activity and documented it. In many ways, the signature is [...]]]></description>
			<content:encoded><![CDATA[<p>It is important to understand what a signature is, and what exactly a signature does. A signature is a known type of activity. It has already been detected in the wild and someone has captured the personality or traffic pattern of the attack or intrusive activity and documented it. In many ways, the signature is something akin to a fingerprint. The fingerprint is unique to a person just like the signature is unique to a certain attack or type of activity. A Cisco IDS sensor then compares traffic against the signatures it has configured and will match up this activity when it appears on your network. The parameters you set for the signature will tell the sensor how to respond to the threat. The sensor can send an alarm to your IDS management device, log the event, send e-mail alerts, or even block the suspect traffic at the router, switch, or firewall. Now we are going to discuss each of the signatures. I have taken the time to separate them into the numbered series. The signatures range from 1000 all the way into the 11000s. Besides numerically grouping signatures, the series number represents another type of grouping. They help the administrator narrow down what type of attack is generating the alarms. Are they atomic? Is the attack a string, sweep, or web site exploit? Although the numbers do cover multiple signature types, they help the administrator narrow down his search.</p>
<p>The following list gives a brief description of each signature series.</p>
<ul>
<li>The 1000 series covers the signatures that analyze the content of IP headers.</li>
<li>The 2000 series focuses on ICMP signatures.</li>
<li>The 3000 series is all about TCP-based signatures.</li>
<li>The 4000 series is all about UPD connections and ports on the network.</li>
<li>The 5000 series is probably the largest. It covers web (HTTP) traffic.</li>
<li>The 6000 series focuses on multiprotocol signatures.</li>
<li>The 7000 series has the ARP signatures.</li>
<li>The 8000 series is string-matching signatures.</li>
<li>The 9000 series covers Back Doors.</li>
<li>The 10000 series has signatures that focus on policy enforcement.</li>
</ul>
<p>The detailed article is in <a title="Understanding IDS Signatures" href="http://www.ciscoarticles.com/Intrusion-Detection-System/Understanding-Cisco-IDS-Signatures.html" target="_blank">here</a>.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/security/understanding-cisco-ids-signature-series-355.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/security/understanding-cisco-ids-signature-series-355.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ezRemeber ezVPN Configuration</title>
		<link>http://henrydu.com/blog/networks/vpn/ezremeber-ezvpn-configuration-353.html</link>
		<comments>http://henrydu.com/blog/networks/vpn/ezremeber-ezvpn-configuration-353.html#comments</comments>
		<pubDate>Mon, 27 Sep 2010 23:09:24 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=353</guid>
		<description><![CDATA[When playing around Easy VPN server configuration, I felt it&#8217;s not straight forward to remember, especially from Cisco configuration guide. Later, I figured it out the way to remember those complicated configuration and very glad to share in here. Basically, the configuration is divided to 6 parts. Phase 1 Phase 1.5 Phase 2 Dynamic-mapping Crypto-mapping [...]]]></description>
			<content:encoded><![CDATA[<p>When playing around Easy VPN server configuration, I felt it&#8217;s not straight forward to remember, especially from Cisco configuration guide. Later, I figured it out the way to remember those complicated configuration and very glad to share in here. Basically, the configuration is divided to 6 parts.</p>
<ol>
<li>Phase 1</li>
<li> Phase 1.5</li>
<li> Phase 2</li>
<li> Dynamic-mapping</li>
<li> Crypto-mapping</li>
<li> Apply to the interface</li>
</ol>
<h3>Phase 1</h3>
<p>IPSec <em><strong>Phase I</strong></em> configuration is the same as Lan to Lan (L2L) IPSec configuration. We need to define four basic parameters for crypto isakmp policy.</p>
<blockquote><p>crypto isakmp policy 10<br />
encr 3des<br />
hash md5<br />
authentication pre-share<br />
group 2</p></blockquote>
<p>Compared to LAN to LAN IPSec, the ezVPN pre-shared key is defined in easy VPN group. The group name is ID and the pre-shared key is configured under the group settings using the command <strong>key &lt;STRING&gt;</strong>.</p>
<blockquote><p>!<br />
crypto isakmp client configuration group EZVPN<br />
key CISCO<br />
pool EZVPN<br />
acl SPLIT_TUNNEL<br />
!</p></blockquote>
<p>However, I prefer to configure ezVPN group on Phase 1.5.</p>
<h3>Phase 1.5</h3>
<p>This so called phase 1.5 implements the special ISAKMP which allows the VPN client requests certain attribute values. Unlike L2L IPSec, which peers are specifically defined, the ezVPN client needs ezVPN Server to tell the attributes that clients request, such as IP address (pool), DNS Server, Split Tunnel and pre-shared key.</p>
<blockquote><p>!<br />
ip local pool EZVPN 172.22.0.1 172.22.0.254<br />
!<br />
ip access-list extended SPLIT_TUNNEL<br />
permit ip 172.17.94.0 0.0.0.255 any<br />
!<br />
crypto isakmp client configuration address-pool local EZVPN<br />
crypto isakmp client configuration group EZVPN<br />
key CISCO<br />
pool EZVPN<br />
acl SPLIT_TUNNEL</p></blockquote>
<p>Note that the per-shared key is only for Phase 1 authentication. Phase 1.5 still need authentication. ISAKMP configuration mode allows for Extended Authentication (Xauth) after the ISAKMP SA has been established. The Xauth is basically refer to AAA list in IOS.</p>
<blockquote><p>aaa new-model<br />
!<br />
!<br />
aaa authentication login CONSOLE none<br />
aaa authentication login EZVPN local<br />
aaa authorization network EZVPN local<br />
!<br />
username CISCO password 0 CISCO<br />
!<br />
crypto map VPN client authentication list EZVPN<br />
crypto map VPN isakmp authorization list EZVPN</p></blockquote>
<p>It&#8217;s interesting for me that the client authentication and isakmp authorization are actually happened on Phase 1.5, but the configuration is on the final crypto mapping.</p>
<h3>Phase 2</h3>
<p>The configuration is the same as L2L IPSec.</p>
<blockquote><p>!<br />
crypto ipsec transform-set 3DES_MD5 esp-3des esp-md5-hmac</p></blockquote>
<h3>Dynamic Mapping</h3>
<p>Before mapping crypto to isakmp-ipsec, we should create a dyanmic mapping to accept connections from any remote peer. This part is different with L2L IPSec which specify the peer address by match address &lt;PEER ADDRESS&gt;.</p>
<blockquote><p>!<br />
crypto dynamic-map DYNAMIC 10<br />
set transform-set 3DES_MD5<br />
reverse-route</p></blockquote>
<p>To let router has knowledge of the remote end-point, it must has a route on the routing table for the end-point. After issuing reverse-route command, when ezVPN session is up, there is a static route stored in the routing table. To let the other routers has knowledge of ezVPN client, we can simply redistribute static to some dynamic routing protocal such as EIGRP or OSPF.</p>
<h3>CRYPTO Mapping</h3>
<p>We have defined two lines crypto mapping for authorization and authentication. We need finalize all crypto mappings. Let me summarize what crypto mapping does:</p>
<ol>
<li>client authentication and isakmp authorization.</li>
<li> client address response.</li>
<li> ipsec-isakmp dynamic mapping.</li>
</ol>
<blockquote><p>!<br />
crypto map VPN client configuration address respond<br />
crypto map VPN 10 ipsec-isakmp dynamic DYNAMIC</p></blockquote>
<h3>Apply to the Interface</h3>
<blockquote><p>!<br />
interface FastEthernet0/0<br />
crypto map VPN</p></blockquote>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/vpn/ezremeber-ezvpn-configuration-353.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/vpn/ezremeber-ezvpn-configuration-353.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASA Static NAT Interface</title>
		<link>http://henrydu.com/blog/networks/asa/asa-static-nat-interface-349.html</link>
		<comments>http://henrydu.com/blog/networks/asa/asa-static-nat-interface-349.html#comments</comments>
		<pubDate>Mon, 20 Sep 2010 18:44:29 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[ASA]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=349</guid>
		<description><![CDATA[When I am dealing with ASA Static NAT interface, I am wondering what&#8217;s the order of the interfaces in the bracket. For example, one scenario is to access inside server from global accessible IP address, then we have the following configuration: static (inside, outside) 150.1.136.100 10.0.0.1 Another scenarios is to let inside desktop to access [...]]]></description>
			<content:encoded><![CDATA[<p>When I am dealing with ASA Static NAT interface, I am wondering what&#8217;s the order of the interfaces in the bracket. For example, one scenario is to access inside server from global accessible IP address, then we have the following configuration:</p>
<blockquote><p>static (inside, outside) 150.1.136.100 10.0.0.1</p></blockquote>
<p>Another scenarios is to let inside desktop to access outside DNS server as inside accessible IP address, then, the interfaces in the bracket are swapped.</p>
<blockquote><p>static (outside, inside) 10.0.0.100 150.1.136.200</p></blockquote>
<p>I actually try to figure out why Cisco developer made that syntax, which is not intuitive. Anyway, after take a look Cisco reference, the better explaination is like this:</p>
<blockquote><p>static (real_interface, mapped_interface) mapped_ip real_ip</p></blockquote>
<p>So, based on that, the static NAT is much more clearly understanding.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/asa/asa-static-nat-interface-349.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/asa/asa-static-nat-interface-349.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vulnerability Management Axioms</title>
		<link>http://henrydu.com/blog/networks/vulnerability-management-axioms-347.html</link>
		<comments>http://henrydu.com/blog/networks/vulnerability-management-axioms-347.html#comments</comments>
		<pubDate>Thu, 09 Sep 2010 22:34:44 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=347</guid>
		<description><![CDATA[The article is coming from here. I quoted part of it because it&#8217;s useful when we design vulnerability management tools. To get anywhere with vulnerability management, Northcutt said there are five things to consider first: Vulnerabilities are the gateways through which threats are manifested. Vulnerability scans without remediation have little value. A little scanning and [...]]]></description>
			<content:encoded><![CDATA[<p>The article is coming from <a title="Vulnerability management: The basics " href="http://www.networkworld.com/news/2010/090910-vulnerability-management-the.html?page=1" target="_blank">here</a>. I quoted part of it because it&#8217;s useful when we design vulnerability management tools.</p>
<p>To get anywhere with vulnerability management, Northcutt said there are five things to consider first:</p>
<ol>
<li>Vulnerabilities are the gateways through which threats are manifested.</li>
<li>Vulnerability scans without remediation have little value.</li>
<li>A little scanning and remediation is better than a lot of scanning and less remediation.</li>
<li>Vulnerabilities in need of fixing must be prioritized based on which ones post the most immediate risk to the network.</li>
<li>Security practitioners need a process that will allow them to stay on the trail of vulnerabilities so the fixes can be more frequent and effective.</li>
</ol>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/vulnerability-management-axioms-347.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/vulnerability-management-axioms-347.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Vista Firewall Turn On/Off</title>
		<link>http://henrydu.com/blog/how-to/windows-vista-firewall-turn-onoff-339.html</link>
		<comments>http://henrydu.com/blog/how-to/windows-vista-firewall-turn-onoff-339.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 00:11:19 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=339</guid>
		<description><![CDATA[Windows Vista has three level of firewall profile: Domain Profile, Private Profile and Public Profile. All firewall is on by default. If we want to turn off firewall for our own user, we may go to Windows Vista System Administraion -&#62; Firewall and Advanced Security Center. We see the configuration is complicated. There are tons [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Vista has three level of firewall profile: Domain Profile, Private Profile and Public Profile. All firewall is on by default. If we want to turn off firewall for our own user, we may go to Windows Vista System Administraion -&gt; Firewall and Advanced Security Center. We see the configuration is complicated. There are tons of rules and policies for inbound and outbound traffic. Is there any simple way to turn on or turn off the firewall for our own user? Of course, the default firewall is turn on. The answer is YES.</p>
<p>We can go to Control Panel -&gt; User Account. We need to click on &#8220;Turn User Account Control on or off&#8221;.</p>
<p><a href="http://henrydu.com/blog/wp-content/uploads/2010/02/howto-turn-off-vista-firewall-1.png"><img class="aligncenter size-medium wp-image-340" title="howto-turn-off-vista-firewall-1" src="http://henrydu.com/blog/wp-content/uploads/2010/02/howto-turn-off-vista-firewall-1-300x225.png" alt="" width="320" height="269" /></a></p>
<p>Then, we can enable/disable User Account Control. System asks to restart. After restart, we can see the firewall policy is applied or disabled.</p>
<p><a href="http://henrydu.com/blog/wp-content/uploads/2010/02/howto-turn-off-vista-firewall-2.png"><img class="aligncenter size-medium wp-image-341" title="howto-turn-off-vista-firewall-2" src="http://henrydu.com/blog/wp-content/uploads/2010/02/howto-turn-off-vista-firewall-2-300x225.png" alt="" width="339" height="225" /></a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/how-to/windows-vista-firewall-turn-onoff-339.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/how-to/windows-vista-firewall-turn-onoff-339.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows TCP 139 and 445 Vulnerability</title>
		<link>http://henrydu.com/blog/networks/windows-tcp-139-and-445-vulnerability-335.html</link>
		<comments>http://henrydu.com/blog/networks/windows-tcp-139-and-445-vulnerability-335.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:01:26 +0000</pubDate>
		<dc:creator>hengdu</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://henrydu.com/blog/?p=335</guid>
		<description><![CDATA[Although those two ports are well known for security reason for a long time, we still hope to know something in details. As we know, NFS (Netwrok File Systems) is developed by Sun. It&#8217;s mainly for sharing directories and files between UNIX machines. Microsoft invented a protocol called SMB (Sever Message Blocks), by which, people [...]]]></description>
			<content:encoded><![CDATA[<p>Although those two ports are well known for security reason for a long time, we still hope to know something in details. As we know, NFS (Netwrok File Systems) is developed by Sun. It&#8217;s mainly for sharing directories and files between UNIX machines. Microsoft invented a protocol called SMB (Sever Message Blocks), by which, people can share directories and files with other Windows machines. Microsoft is trying to rename SMB-based networking to &#8220;Windows Networking&#8221; and the protocol to &#8220;CIFS&#8221;. When we try to mount SAMBA server directory to our Linux machine, we most likely do the following command.</p>
<blockquote><p>sudo mount -t cifs -o username=henrydu //172.17.93.105/Swap-1Day /mnt/Swap-1Day</p></blockquote>
<p>Microsoft open a security hole to many people who haven&#8217;t set up Administrator&#8217;s password. In the early time, people can easily share others <strong><em>C:\WINDOWS</em></strong> directory:</p>
<blockquote><p>\\172.17.93.105\ADMIN$</p></blockquote>
<p>Even with password, malicious people still can figure out by port 139 and 445. This article is not for how to hack others by port 139 and 445. We will see how SMB and NETBIOS work.</p>
<p>SMB is the most popular protocols for Windows PCs lets us share files, disks, directories, printers, and (in some cases) even COM ports across a network. SMB-based networks use a variety of underlying protocols, but the most popular are &#8220;NetBIOS over TCP/IP&#8221;.</p>
<p>Here is a solid example. SMB-client (Hacker) send TCP 445 SYN to SMB-server (Victim). Without waiting for SYN/ACK package, it sends TCP 139 SYN to SMB-server immediately. TCP 445 is to set up SMB session and TCP 139 is to set up NETBIOS session. SMB need NETBIOS protocol. We can see from screen shot that, after TCP 139 and TCP 445 session is up, SMB protocol start to run. From package hierarchy we can see, SMB is over NETBIOS protocol.<br />
<a href="http://henrydu.com/blog/wp-content/uploads/2010/02/wireshark-graph.jpg"><img class="aligncenter size-full wp-image-337" title="wireshark-graph" src="http://henrydu.com/blog/wp-content/uploads/2010/02/wireshark-graph.jpg" alt="" width="599" height="479" /></a></p>
<p>After Microsoft noticed this security issue, TCP 139 and 445 is blocked by default. Thus, SMB-server never reply SYN package if the firewall is on. We can use NMAP to do a test.</p>
<p>Firewall is off.</p>
<blockquote><p>nmap -PN -p139,445 -n -v 172.17.93.105<br />
&#8230;..<br />
PORT    STATE SERVICE<br />
139/tcp open  netbios-ssn<br />
445/tcp open  microsoft-ds</p></blockquote>
<p>Firewall is on</p>
<blockquote><p>PORT    STATE    SERVICE<br />
139/tcp filtered netbios-ssn<br />
445/tcp filtered microsoft-ds</p></blockquote>
<p>Therefore, please make sure these two ports are protected by firewall.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://henrydu.com/blog/networks/windows-tcp-139-and-445-vulnerability-335.html" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://henrydu.com/blog/networks/windows-tcp-139-and-445-vulnerability-335.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

