<?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>the new cube 2.0 &#187; Firewall</title>
	<atom:link href="http://jiehong.org/blog/category/technical/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://jiehong.org/blog</link>
	<description>the new cube 2.0</description>
	<lastBuildDate>Sat, 21 Jan 2012 17:43:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JanusVM &#8211; The Internet Privacy Appliance</title>
		<link>http://jiehong.org/blog/2007/10/08/janusvm-the-internet-privacy-appliance/</link>
		<comments>http://jiehong.org/blog/2007/10/08/janusvm-the-internet-privacy-appliance/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 14:49:51 +0000</pubDate>
		<dc:creator>jiehong</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[janusvm]]></category>
		<category><![CDATA[privoxy]]></category>
		<category><![CDATA[tor]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jiehong.org/blog/2007/10/08/janusvm-the-internet-privacy-appliance/</guid>
		<description><![CDATA[I was trying out JanusVM in my VMware server. It&#8217;s a linux based OS with this few key components, openVPN, Squid, privoxy and Tor, packaged neatly into a VMware &#8220;appliance&#8221;. Basically it provides a layer of security and privacy for most TCP based applications, like IM, web browsing, etc, even DNS requests are passed through [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying out <a href="http://janusvm.peertech.org/" target="_blank">JanusVM</a> in my VMware server.  It&#8217;s a linux based OS with this few key components, <a href="http://openvpn.net/" target="_blank">openVPN</a>, <a href="http://www.squid-cache.org/" target="_blank">Squid</a>, <a href="http://www.privoxy.org/" target="_blank">privoxy</a> and <a href="http://tor.eff.org/">Tor</a>, packaged neatly into a VMware &#8220;appliance&#8221;.</p>
<p>Basically it provides a layer of security and privacy for most TCP based applications, like IM, web browsing, etc, even DNS requests are passed through Tor. Most importantly, it provides you with access to sites that are filtered off by your ISP transparent proxies.</p>
<p><span id="more-80"></span></p>
<p><a href="http://tor.eff.org/" target="_blank">Tor</a> allows your traffic to be re-route all around the internet anonymously via a complex network of virtual tunnels. An overview of Tor can be found <a href="http://tor.eff.org/overview.html.en" target="_blank">here</a> and a detailed FAQ on Onion Routers <a href="http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ" target="_blank">here</a>.</p>
<p>My blog entry today is: how to enable your JanusVM to work in a corporate network whereby your firewall blocks most of the outgoing ports except http and https.</p>
<p>You can tell Tor to only use the ports that your firewall permits by adding the following to your torrc configuration file.</p>
<blockquote><p>FascistFirewall 1</p>
<p>ReachableDirAddresses *:80<br />
ReachableORAddresses *:443</p></blockquote>
<p>Update:</p>
<p>The latest beta version of Tor uses the following instead of the above</p>
<p>ReachableAddresses *:80</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehong.org/blog/2007/10/08/janusvm-the-internet-privacy-appliance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ASA IPSec VPN</title>
		<link>http://jiehong.org/blog/2005/11/09/cisco-asa/</link>
		<comments>http://jiehong.org/blog/2005/11/09/cisco-asa/#comments</comments>
		<pubDate>Tue, 08 Nov 2005 16:00:45 +0000</pubDate>
		<dc:creator>jiehong</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://jiehong.org/blog/2005/11/09/cisco-asa/</guid>
		<description><![CDATA[Here I go again with my constant Cisco rant or rather rating on my incompetence.. LOL&#8230; I was configuring a Lan-to-Lan VPN between 2 Cisco ASA5510. After going through the wizard, I actually changed the Group Tunnel Name to a more meaningful name rather than just ip address. Didn&#8217;t realise the impact till I can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Here I go again with my constant Cisco rant or rather rating on my incompetence.. LOL&#8230;</p>
<p>I was configuring a Lan-to-Lan VPN between 2 Cisco ASA5510. After going through the wizard, I actually changed the Group Tunnel Name to a more meaningful name rather than just ip address. Didn&#8217;t realise the impact till I can&#8217;t get the stupid tunnel up.</p>
<p>I did a debug crypto isakmp 255 and it starts throws out every damn low level stuff at me after i entered &#8220;terminal monitor&#8221;&#8230;<br />
After going through the debug logs, I realised that isakmp fails as the group name is invalid. On that actual debug statement, it stated the group name is the ip address of my vpn peer.</p>
<p>Now that&#8217;s weird. I remembered in PIX 6.0, the syntax for creating the tunnel is crypto map tunnel-name, where the name doesn&#8217;t *MATTERS*. So I checked the configuration guide for ASA 7.0.</p>
<p>&#8220;Tunnel group name: Both remote access and LAN-to-LAN clients select a tunnel group by its<br />
name, as follows:<br />
- For IPSec clients that use preshared keys to authenticate, the tunnel group name is the same as<br />
the group name that the IPSec client passes to the security appliance.&#8221;</p>
<p>So I configured tunnel-group  type ipsec-l2l.</p>
<p>Viola&#8230; a wasted morning.</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehong.org/blog/2005/11/09/cisco-asa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PIX 7.0 VPN users accessing DMZ Servers with IP Static NAT to Inside</title>
		<link>http://jiehong.org/blog/2005/10/14/pix-70-vpn-users-accessing-dmz-servers-with-ip-static-nat-to-inside/</link>
		<comments>http://jiehong.org/blog/2005/10/14/pix-70-vpn-users-accessing-dmz-servers-with-ip-static-nat-to-inside/#comments</comments>
		<pubDate>Fri, 14 Oct 2005 01:50:14 +0000</pubDate>
		<dc:creator>jiehong</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://jiehong.org/blog/2005/10/14/pix-70-vpn-users-accessing-dmz-servers-with-ip-static-nat-to-inside/</guid>
		<description><![CDATA[Another issue I have with Cisco PIX 7.0. I have a server connecting to the PIX DMZ interface with the IP of 172.17.1.1. This server is translated to an Inside IP 10.1.1.1 and to an Outside internet routable IP. When VPN users connect from outside, they want to access the DMZ server via the 10.1.1.1 [...]]]></description>
			<content:encoded><![CDATA[<p>Another issue I have with Cisco PIX 7.0.</p>
<p>I have a server connecting to the PIX DMZ interface with the IP of 172.17.1.1. This server is translated to an Inside IP 10.1.1.1 and to an Outside internet routable IP.</p>
<p>When VPN users connect from outside, they want to access the DMZ server via the 10.1.1.1 IP not the 172 IP.</p>
<p>They are able to connect to any host on the inside but unable to connect to the translated IP.</p>
<p>This is the static statement.<br />
static (dmz,inside) 10.1.1.1 172.17.1.1 netmask 255.255.255.255</p>
<p>My Networks<br />
Inside : 10.1.1.0/24<br />
DMZ : 172.17.1.0/24<br />
VPN Pool : 192.168.0.0/24</p>
<p>I posted this question at <a href="http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&#038;forum=Security&#038;topic=Firewalling&#038;CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1dd96104">Cisco NetPro forum</a>, and I got this reply,</p>
<p><span id="more-7"></span></p>
<p>&#8220;static (dmz,inside) 10.1.1.1 172.17.1.1 netmask 255.255.255.255</p>
<p>as the command sugguested, the translation is between the dmz and the inside interfaces. it only works when the packet originated from the inside, not the vpn clinet from the outside.&#8221;</p>
<p>So I concluded that the VPN clients are connecting from the outside interface and the static command i used is only for host on the inside interface.</p>
<p>I still wondering is there a way of writing my ACL, traffic from outside to dmz have a different translation but I have already translated dmz to outside with another static command. So&#8230; help?</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehong.org/blog/2005/10/14/pix-70-vpn-users-accessing-dmz-servers-with-ip-static-nat-to-inside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Use of ACL for PDM</title>
		<link>http://jiehong.org/blog/2005/10/14/multiple-use-of-acl-for-pdm/</link>
		<comments>http://jiehong.org/blog/2005/10/14/multiple-use-of-acl-for-pdm/#comments</comments>
		<pubDate>Thu, 13 Oct 2005 16:00:28 +0000</pubDate>
		<dc:creator>jiehong</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://jiehong.org/blog/2005/10/14/multiple-use-of-acl-for-pdm/</guid>
		<description><![CDATA[access-list 90 permit ip host 203.X.X.X host 202.X.X.X1 access-list 90 permit ip host 203.X.X.X host 202.X.X.X2 nat (inside) 0 access-list 90 crypto dynamic-map dyna 20 match address 90 Guess what.. PDM won&#8217;t work with the above commands. The error I got was: &#8220;PDM do not support multiple uses of access list&#8221; oohh.. man. I created [...]]]></description>
			<content:encoded><![CDATA[<p>access-list 90 permit ip host 203.X.X.X host 202.X.X.X1<br />
access-list 90 permit ip host 203.X.X.X host 202.X.X.X2<br />
nat (inside) 0 access-list 90<br />
crypto dynamic-map dyna 20 match address 90</p>
<p>Guess what.. PDM won&#8217;t work with the above commands. The error I got was: &#8220;PDM do not support multiple uses of access list&#8221;</p>
<p>oohh.. man. I created the same ACL again but with another name and use it for the crypto.</p>
]]></content:encoded>
			<wfw:commentRss>http://jiehong.org/blog/2005/10/14/multiple-use-of-acl-for-pdm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>L2TP over IPsec</title>
		<link>http://jiehong.org/blog/2005/10/09/l2tp-over-ipsec/</link>
		<comments>http://jiehong.org/blog/2005/10/09/l2tp-over-ipsec/#comments</comments>
		<pubDate>Sat, 08 Oct 2005 16:00:14 +0000</pubDate>
		<dc:creator>jiehong</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://jiehong.org/blog/2005/10/09/l2tp-over-ipsec/</guid>
		<description><![CDATA[Configuring L2TP over IPSec for both Cisco PIX and Cisco Router on the Customer side. Tricky things uncovered. According to the documentation provided on how the L2TP is to be configured: vpdn enable ! vpdn-group 1 accept-dialin protocol l2tp virtual-template 1 terminate-from hostname BB-GGSN1 local name CPE-L2TP-Router l2tp tunnel password 0 secret ! interface Virtual-Template1 [...]]]></description>
			<content:encoded><![CDATA[<p>Configuring L2TP over IPSec for both Cisco PIX and Cisco Router on the Customer side.</p>
<p>Tricky things uncovered.<br />
According to the documentation provided on how the L2TP is to be configured:</p>
<p>vpdn enable</p>
<p>!</p>
<p>vpdn-group 1<br />
accept-dialin<br />
protocol l2tp<br />
virtual-template 1<br />
terminate-from hostname BB-GGSN1<br />
local name CPE-L2TP-Router<br />
l2tp tunnel password 0 secret<br />
!</p>
<p>interface Virtual-Template1<br />
ip unnumbered FastEthernet0<br />
peer default ip address pool l2tp-pool01<br />
ppp authentication pap<br />
!</p>
<p>ip local pool l2tp-pool01 10.9.2.201 10.9.2.220</p>
<p>For the curious souls like me, how the hell the router knows who&#8217;s BB-GGSN1.. so I added:</p>
<p><span id="more-5"></span></p>
<p>ip host BB-GGSN2 202.x.x.x2<br />
ip host BB-GGSN1 202.x.x.x1</p>
<p>So the router is done but I still wondering, who&#8217;s going to auth all PAP request ?</p>
<p>PIX as follows:</p>
<p>access-list 90 permit ip host 203.x.x.x host 202.x.x.x6<br />
nat (inside) 0 access-list 90<br />
sysopt connection permit-ipsec<br />
sysopt connection permit-l2tp<br />
crypto ipsec transform-set transformset-strong esp-3des esp-sha-hmac<br />
crypto ipsec transform-set transformset-strong mode transport<br />
crypto dynamic-map dyna 20 match address 90<br />
crypto dynamic-map dyna 20 set transform-set transformset-strong<br />
crypto map site-map 10 ipsec-isakmp dynamic dyna<br />
crypto map site-map interface outside<br />
isakmp enable outside<br />
isakmp key ******** address 202.x.x.x6 netmask 255.255.255.255<br />
isakmp identity address<br />
isakmp policy 10 authentication pre-share<br />
isakmp policy 10 encryption 3des<br />
isakmp policy 10 hash sha<br />
isakmp policy 10 group 2<br />
isakmp policy 10 lifetime 86400</p>
<p>The tunnel just don&#8217;t get up.</p>
<p>I did a debug.<br />
debug crypto ipsec<br />
debug crypto isakmp</p>
<p>The debug shows proxy identities mis-matched, the error code is IKMP_ERR_NO_RETRANS<br />
I poke around with the error and change my access-list address. So I realised I had a typo and it causes the SA negotiation to fail.</p>
<p>access-list 90 permit ip host 203.X.X.X host 202.X.X.X1<br />
access-list 90 permit ip host 203.X.X.X host 202.X.X.X2</p>
<p>This ACL not only tells what traffic needed to be protected by IPSec but somehow it identify the peers on both side of the tunnel&#8217;s end point. I have to read up on this as this is kind of new to me. Usually site to site configuration always have both network address for the ACL.</p>
<p>So far, the tunnel seems to be up. I have yet to test the VPN tunnels as the user can&#8217;t seems to access the provider&#8217;s network at this moment.</p>
<p>Both the show statement shows positive results.<br />
show crypto ipsec sa<br />
show crypto isakmp sa</p>
<p>I&#8217;m still curious, I didn&#8217;t configured any radius server to auth the PAP users.</p>
<p>This is my first post for documentation.<br />
Lengthy.</p>
<p>Useful Links<br />
<a href="http://www.cisco.com/warp/public/cc/pd/iosw/tech/l2pro_tc.htm">Cisco Explaination on L2TP</a></p>
<p><a href="http://www.cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a00800ef796.shtml">Cisco Guide to Configuring Site to Site IPSec for PIX</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jiehong.org/blog/2005/10/09/l2tp-over-ipsec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

