<?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>Random notes &#38; other stuff... &#187; network</title>
	<atom:link href="http://leucos.lstilde.org/wp/category/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://leucos.lstilde.org/wp</link>
	<description>...about Linux, electronics, digital photography, whatever...</description>
	<lastBuildDate>Wed, 16 Dec 2009 00:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuration ADSL pour Free sur Cisco 1841</title>
		<link>http://leucos.lstilde.org/wp/2009/12/configuration-adsl-pour-free-sur-cisco-1841/</link>
		<comments>http://leucos.lstilde.org/wp/2009/12/configuration-adsl-pour-free-sur-cisco-1841/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 06:14:37 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[PPPoA]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=532</guid>
		<description><![CDATA[(an english translation for this article is here)
Les clients de Free sont généralement contents&#8230; jusqu&#8217;a ce qu&#8217;ils aient besoin de support. C&#8217;est un problème avec tous les providers, mais chez Free en général, c&#8217;est gratiné.
Quand vous vous abonez chez Free, vous recevez une belle Freebox : un equipement faisant office de modem DSL, routeur, de [...]]]></description>
			<content:encoded><![CDATA[<p><em>(an english translation for this article is <a href="http://leucos.lstilde.org/wp/2009/05/cisco-1841-adsl-configuration-for-free-telecom/">here</a>)</em></p>
<p>Les clients de Free sont généralement contents&#8230; jusqu&#8217;a ce qu&#8217;ils aient besoin de support. C&#8217;est un problème avec tous les providers, mais chez Free en général, c&#8217;est gratiné.</p>
<p>Quand vous vous abonez chez Free, vous recevez une belle Freebox : un equipement faisant office de modem DSL, routeur, de FXS pour brancher le téléphone et parfois plus si vous avez la chance d&#8217;avoir la TV et d&#8217;autres services.services.</p>
<p>Mais quand vous ne voulez pas utiliser la FreeBox, ou qu&#8217;elle est morte, il y a des moyens alternatifs pour se connecter. Le plus simple c&#8217;est de trouver un modem DSL (un speedtouch par exemple), et d&#8217;utiliser un routeur pouvant faire du PPPoE (un Linksys WRT54GL + <a title="tomato firmware" href="http://www.polarcloud.com/tomato">firmware tomato</a> par exemple).</p>
<p>Vous pouvez aussi faire du PPPoA si vous avez un routeur avec une interface ATM. La configuration ci dessous peut être utilisée sur un routeur Cisco 1841 avec une carte ATM pour se connceter chez Free. La conf est facilement adaptable à d&#8217;autre modèles, le changements se limitant souvent aux noms d&#8217;interfaces.</p>
<p>Vous pouvez debugguer la connexion en tapant :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">debug ppp neg<br />
debug ppp auth</div></div>
<p>Bonne chance.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">!<br />
version 12.4<br />
no service pad<br />
service timestamps debug datetime msec<br />
service timestamps log datetime msec<br />
service password-encryption<br />
!<br />
hostname c1841-pppoa<br />
!<br />
boot-start-marker<br />
boot-end-marker<br />
!<br />
enable secret 0 CHANGE_YOUR_ENABLE_PASSWORD<br />
!<br />
no aaa new-model<br />
!<br />
resource policy<br />
!<br />
memory-size iomem 5<br />
mmi polling-interval 60<br />
!<br />
no mmi auto-configure<br />
no mmi pvc<br />
mmi snmp-timeout 180<br />
ip subnet-zero<br />
ip cef<br />
!<br />
!<br />
no ip dhcp use vrf connected<br />
!<br />
! Global pool for the LAN clients<br />
ip dhcp pool CLIENTS<br />
import all<br />
network 192.168.0.0 255.255.255.0<br />
default-router 192.168.0.254<br />
dns-server 192.168.0.254<br />
!<br />
! Static assignements for specific clients<br />
ip dhcp pool pc1<br />
import all<br />
host 192.168.0.2 255.255.255.0<br />
client-identifier 0013.8dd7.2ada<br />
!<br />
ip dhcp pool pc2<br />
import all<br />
host 192.168.0.3 255.255.255.0<br />
client-identifier 0018.f327.3137<br />
!<br />
ip domain name whatever.it.is<br />
!<br />
! Use ssh<br />
! You need to issue<br />
! crypto key generate rsa<br />
! first<br />
ip ssh time-out 60<br />
ip ssh authentication-retries 2<br />
!<br />
! Lets define some user<br />
username _CHANGE_USERNAME password à CHANGE_USERPASSWORD<br />
!<br />
!<br />
!<br />
interface Null0<br />
no ip unreachables<br />
!<br />
! This is LAN side<br />
interface FastEthernet0/0<br />
description LAN connection<br />
ip address 192.168.0.254 255.255.255.0<br />
ip nat inside<br />
ip virtual-reassembly<br />
duplex auto<br />
speed auto<br />
no cdp enable<br />
!<br />
interface FastEthernet0/1<br />
no ip address<br />
speed auto<br />
!<br />
! This is the ATM interface<br />
! We\'re doing PPPoA<br />
interface ATM0/0/0<br />
no ip address<br />
no atm ilmi-keepalive<br />
dsl operating-mode auto<br />
pvc 8/35<br />
ubr 160<br />
encapsulation aal5mux ppp dialer<br />
dialer pool-member 1<br />
!<br />
!<br />
interface BRI0/1/0<br />
no ip address<br />
shutdown<br />
!<br />
! Dialer interface for PPP negotiation<br />
interface Dialer0<br />
ip address negotiated<br />
ip nat outside<br />
ip virtual-reassembly<br />
encapsulation ppp<br />
no cdp enable<br />
ppp authentication chap pap callin<br />
ppp chap hostname 04XXXXXXXX@freeadsl<br />
ppp chap password 0 CHANGE_TO_YOUR_CHAP_PASS<br />
!<br />
ppp pap sent-username 04XXXXXXXX@freeadsl password 0 CHANGE_TO_YOUR_CHAP_PASS<br />
! Required to get DNS servers<br />
ppp ipcp dns request<br />
!<br />
ip classless<br />
ip route 0.0.0.0 0.0.0.0 Dialer0<br />
!<br />
! Required to act as a DNS server for the LAN clients<br />
ip dns server<br />
!<br />
! Oh please no !<br />
no ip http server<br />
no ip http secure-server<br />
!<br />
! Do some NAT for LAN clients<br />
ip nat inside source list 10 interface Dialer0 overload<br />
access-list 10 permit 192.168.0.0 0.0.0.255<br />
!<br />
control-plane<br />
!<br />
line con 0<br />
stopbits 1<br />
line aux 0<br />
line vty 0 4<br />
password 0 CHANGE_TO_SOME_PASS<br />
login local<br />
! We just want ssh, not telnet<br />
transport input ssh<br />
!<br />
end</div></div>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2009/12/configuration-adsl-pour-free-sur-cisco-1841/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco 1841 ADSL configuration for Free telecom</title>
		<link>http://leucos.lstilde.org/wp/2009/05/cisco-1841-adsl-configuration-for-free-telecom/</link>
		<comments>http://leucos.lstilde.org/wp/2009/05/cisco-1841-adsl-configuration-for-free-telecom/#comments</comments>
		<pubDate>Sun, 17 May 2009 09:47:35 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[PPPoA]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=207</guid>
		<description><![CDATA[Cisco 1841 IOS configuration for PPPoA connection to Free, french DSL provider. Pretty usefull when your Freebox is blown out (and you have a Cisco 1841...)]]></description>
			<content:encoded><![CDATA[<p><em>(a french translation for this article is <a href="http://leucos.lstilde.org/wp/2009/12/configuration-adsl-pour-free-sur-cisco-1841/">here</a>)</em></p>
<p>http://leucos.lstilde.org/wp/2009/05/cisco-1841-ads…r-free-telecom/</p>
<p>People connected via Free, a french internet provider are usually happy customers&#8230; until they need to get support. Well, this is a problem with most of providers out there.</p>
<p>When you subscribe to Free, they send you a Freebox : a combo containing a DSL modem, a router, an FXS to hook your telephone, and sometimes more if you&#8217;re lucky enough to have TV and other services.</p>
<p>But when you don&#8217;t want to use this box, or when it&#8217;s dead, you can use alternate ways to get connected. The easiest one if to get a DSL modem (a speedtouch for instance), and use a PPPoE capable routeur (like a Linksys WRT54GL + <a title="tomato firmware" href="http://www.polarcloud.com/tomato">tomato firmware</a>).</p>
<p>You can also do PPPoA if you have a router with an ATM interface. The configuration included below can be used on a Cisco 1841 routeur with ATM card to connect to Free. It probably can be adapted to other models  very easily by changing only interface names.</p>
<p>You can debug what happens by issuing :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">debug ppp neg<br />
debug ppp auth</div></div>
<p>Good luck.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">!<br />
version 12.4<br />
no service pad<br />
service timestamps debug datetime msec<br />
service timestamps log datetime msec<br />
service password-encryption<br />
!<br />
hostname c1841-pppoa<br />
!<br />
boot-start-marker<br />
boot-end-marker<br />
!<br />
enable secret 0 CHANGE_YOUR_ENABLE_PASSWORD<br />
!<br />
no aaa new-model<br />
!<br />
resource policy<br />
!<br />
memory-size iomem 5<br />
mmi polling-interval 60<br />
!<br />
no mmi auto-configure<br />
no mmi pvc<br />
mmi snmp-timeout 180<br />
ip subnet-zero<br />
ip cef<br />
!<br />
!<br />
no ip dhcp use vrf connected<br />
!<br />
! Global pool for the LAN clients<br />
ip dhcp pool CLIENTS<br />
import all<br />
network 192.168.0.0 255.255.255.0<br />
default-router 192.168.0.254<br />
dns-server 192.168.0.254<br />
!<br />
! Static assignements for specific clients<br />
ip dhcp pool pc1<br />
import all<br />
host 192.168.0.2 255.255.255.0<br />
client-identifier 0013.8dd7.2ada<br />
!<br />
ip dhcp pool pc2<br />
import all<br />
host 192.168.0.3 255.255.255.0<br />
client-identifier 0018.f327.3137<br />
!<br />
ip domain name whatever.it.is<br />
!<br />
! Use ssh<br />
! You need to issue<br />
! crypto key generate rsa<br />
! first<br />
ip ssh time-out 60<br />
ip ssh authentication-retries 2<br />
!<br />
! Lets define some user<br />
username _CHANGE_USERNAME password à CHANGE_USERPASSWORD<br />
!<br />
!<br />
!<br />
interface Null0<br />
no ip unreachables<br />
!<br />
! This is LAN side<br />
interface FastEthernet0/0<br />
description LAN connection<br />
ip address 192.168.0.254 255.255.255.0<br />
ip nat inside<br />
ip virtual-reassembly<br />
duplex auto<br />
speed auto<br />
no cdp enable<br />
!<br />
interface FastEthernet0/1<br />
no ip address<br />
speed auto<br />
!<br />
! This is the ATM interface<br />
! We\'re doing PPPoA<br />
interface ATM0/0/0<br />
no ip address<br />
no atm ilmi-keepalive<br />
dsl operating-mode auto<br />
pvc 8/35<br />
ubr 160<br />
encapsulation aal5mux ppp dialer<br />
dialer pool-member 1<br />
!<br />
!<br />
interface BRI0/1/0<br />
no ip address<br />
shutdown<br />
!<br />
! Dialer interface for PPP negotiation<br />
interface Dialer0<br />
ip address negotiated<br />
ip nat outside<br />
ip virtual-reassembly<br />
encapsulation ppp<br />
no cdp enable<br />
ppp authentication chap pap callin<br />
ppp chap hostname 04XXXXXXXX@freeadsl<br />
ppp chap password 0 CHANGE_TO_YOUR_CHAP_PASS<br />
!<br />
ppp pap sent-username 04XXXXXXXX@freeadsl password 0 CHANGE_TO_YOUR_CHAP_PASS<br />
! Required to get DNS servers<br />
ppp ipcp dns request<br />
!<br />
ip classless<br />
ip route 0.0.0.0 0.0.0.0 Dialer0<br />
!<br />
! Required to act as a DNS server for the LAN clients<br />
ip dns server<br />
!<br />
! Oh please no !<br />
no ip http server<br />
no ip http secure-server<br />
!<br />
! Do some NAT for LAN clients<br />
ip nat inside source list 10 interface Dialer0 overload<br />
access-list 10 permit 192.168.0.0 0.0.0.255<br />
!<br />
control-plane<br />
!<br />
line con 0<br />
stopbits 1<br />
line aux 0<br />
line vty 0 4<br />
password 0 CHANGE_TO_SOME_PASS<br />
login local<br />
! We just want ssh, not telnet<br />
transport input ssh<br />
!<br />
end</div></div>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2009/05/cisco-1841-adsl-configuration-for-free-telecom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing &#8216;IPSEC(initialize_sas): Invalid Proxy IDs&#8217; with dynamic VPNs</title>
		<link>http://leucos.lstilde.org/wp/2008/12/fixing-ipsecinitialize_sas-invalid-proxy-ids-with-dynamic-vpns/</link>
		<comments>http://leucos.lstilde.org/wp/2008/12/fixing-ipsecinitialize_sas-invalid-proxy-ids-with-dynamic-vpns/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 23:49:23 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[dynamic vpn]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=176</guid>
		<description><![CDATA[This IPSEC error reported by IOS is not very user friendly. And the error source is hard to spot. When you know what IOS wants to tell you, it gets much easier.]]></description>
			<content:encoded><![CDATA[<p>Dynamic VPNs is a Cisco feature that makes a central router accept VPN establishment without specifying a peer or an ACL for the SA.</p>
<p>The configuration is very simple (even simpler than normal, statically specified tunnels) so when the tunnel doesn&#8217;t come up, it is quite frustrating.</p>
<p>And when you get &#8216;IPSEC(initialize_sas): Invalid Proxy IDs&#8217;, meaning SA ACL doesn&#8217;t match on both sides, you start to pull your hairs out : how can&#8217;t they match when they are not needer on the headend side ??</p>
<p>Well, it seems that the headend is checking the remote SA specification (Proxy ID) anyway, and bails out from isakmp when things go wrong.</p>
<p>Consider this log, saw on a router sitting at 172.22.1.130/27 with</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;debug crypto ipsec</div></div>
<p>and</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">debug crypto isakmp</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">*Mar  1 00:45:39.227: ISAKMP: set new node 909606036 to QM_IDLE<br />
*Mar  1 00:45:39.227: ISAKMP:(0:1:SW:1): processing HASH payload. message ID = 909606036<br />
*Mar  1 00:45:39.227: ISAKMP:(0:1:SW:1): processing SA payload. message ID = 909606036<br />
*Mar  1 00:45:39.231: ISAKMP:(0:1:SW:1):Checking IPSec proposal 1<br />
*Mar  1 00:45:39.231: ISAKMP: transform 1, ESP_3DES<br />
*Mar  1 00:45:39.231: ISAKMP:   attributes in transform:<br />
*Mar  1 00:45:39.231: ISAKMP:      encaps is 1 (Tunnel)<br />
*Mar  1 00:45:39.231: ISAKMP:      SA life type in seconds<br />
*Mar  1 00:45:39.231: ISAKMP:      SA life duration (basic) of 3600<br />
*Mar  1 00:45:39.231: ISAKMP:      SA life type in kilobytes<br />
*Mar  1 00:45:39.231: ISAKMP:      SA life duration (VPI) of  0x0 0x46 0x50 0x0<br />
*Mar  1 00:45:39.231: ISAKMP:      authenticator is HMAC-SHA<br />
*Mar  1 00:45:39.231: ISAKMP:(0:1:SW:1):atts are acceptable.<br />
*Mar  1 00:45:39.231: IPSEC(validate_proposal_request): proposal part #1,<br />
(key eng. msg.) INBOUND local= 172.22.1.130, remote= 172.22.80.129,<br />
local_proxy= 192.168.1.0/255.255.255.0/0/0 (type=4),<br />
remote_proxy= 172.22.80.128/255.255.255.193/0/0 (type=4),<br />
protocol= ESP, transform= esp-3des esp-sha-hmac  (Tunnel),<br />
lifedur= 0s and 0kb,<br />
spi= 0x0(0), conn_id= 0, keysize= 0, flags= 0x2<br />
*Mar  1 00:45:39.231: IPSEC(initialize_sas): invalid proxy IDs<br />
*Mar  1 00:45:39.231: ISAKMP:(0:1:SW:1): IPSec policy invalidated proposal<br />
*Mar  1 00:45:39.231: ISAKMP:(0:1:SW:1): phase 2 SA policy not acceptable! (local 172.22.1.130 remote 172.22.80.129)</div></div>
<p>See it ?</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">remote_proxy= 172.22.80.128/255.255.255.193/0/0 (type=4),</div></div>
<p>the subnet mask 255.255.255.193 comes from a wrong ACL specification :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">permit ip 172.22.80.128 0.0.0.62 192.168.1.0 0.0.0.255</div></div>
<p>instead of</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">permit ip 172.22.80.128 0.0.0.63 192.168.1.0 0.0.0.255</div></div>
<p>So 255.255.255.193 last byte yields a discontinuous mask (11000001) which is not so commonly used <img src='http://leucos.lstilde.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
That&#8217;s why the tunnel is not coming up, and how you lost the last hour.</p>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2008/12/fixing-ipsecinitialize_sas-invalid-proxy-ids-with-dynamic-vpns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
