<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ca.wiki.guifi.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>http://ca.wiki.guifi.net/w/index.php?action=history&amp;feed=atom&amp;title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_%28Debian%2Fdd-wrt%2FMikrotik%29</id>
		<title>Creació de túnels PPTP (Debian/dd-wrt/Mikrotik) - Historial de revisió</title>
		<link rel="self" type="application/atom+xml" href="http://ca.wiki.guifi.net/w/index.php?action=history&amp;feed=atom&amp;title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_%28Debian%2Fdd-wrt%2FMikrotik%29"/>
		<link rel="alternate" type="text/html" href="http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;action=history"/>
		<updated>2026-07-30T08:31:04Z</updated>
		<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
		<generator>MediaWiki 1.22.0</generator>

	<entry>
		<id>http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=3087&amp;oldid=prev</id>
		<title>Al: Creant enllaç intern</title>
		<link rel="alternate" type="text/html" href="http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=3087&amp;oldid=prev"/>
				<updated>2013-07-22T14:40:10Z</updated>
		
		<summary type="html">&lt;p&gt;Creant enllaç intern&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←Versió més antiga&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisió de 14:40, 22 jul 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creació d'un túnel PPTP entre un Server Debian/Ubuntu || dd-wrt i una &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;RB750 de &lt;/del&gt;Mikrotik (Client) o Debian/Ubuntu (Client).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creació d'un túnel PPTP entre un Server Debian/Ubuntu || dd-wrt i una &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;Mikrotik &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;RouterBoard 750]] &lt;/ins&gt;(Client) o Debian/Ubuntu (Client).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-Config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-Config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Al</name></author>	</entry>

	<entry>
		<id>http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2400&amp;oldid=prev</id>
		<title>Jfigueras: Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik</title>
		<link rel="alternate" type="text/html" href="http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2400&amp;oldid=prev"/>
				<updated>2012-03-13T18:29:11Z</updated>
		
		<summary type="html">&lt;p&gt;Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←Versió més antiga&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisió de 18:29, 13 març 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sigui reenviat a l'altre extrem del túnel:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sigui reenviat a l'altre extrem del túnel:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Configuració vàlida mentre no reiniciem el sistema&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;;&lt;/ins&gt;Configuració vàlida mentre no reiniciem el sistema&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Si volem que l'entrada de la taula d'enrutament sigui persistent, hem d'editar el fitxer /etc/network/interfaces&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Si volem que l'entrada de la taula d'enrutament sigui persistent, hem d'editar el fitxer /etc/network/interfaces&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gateway 172.25.2.1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gateway 172.25.2.1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;### &lt;/del&gt;ruta estatica VPN Suria &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;###&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ruta estatica VPN Suria&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;post-up route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;post-up route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pre-down route del -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pre-down route del -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 181:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 181:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Si volem que aquesta entrada sigui persistent, podem aconseguir-ho editant /etc/network/interfaces&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Si volem que aquesta entrada sigui persistent, podem aconseguir-ho editant /etc/network/interfaces&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(consultar la configuració explicada a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Config costat servidor (Debian/Ubuntu))&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(consultar la configuració explicada a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;;&lt;/ins&gt;Config costat servidor (Debian/Ubuntu))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Amb aquesta regla aconseguim que tot el tràfic destinat a la xarxa 172.25.2.0/24 (Solsona) sigui reenviat al gateway 172.30.0.1,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Amb aquesta regla aconseguim que tot el tràfic destinat a la xarxa 172.25.2.0/24 (Solsona) sigui reenviat al gateway 172.30.0.1,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jfigueras</name></author>	</entry>

	<entry>
		<id>http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2399&amp;oldid=prev</id>
		<title>Jfigueras: Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik</title>
		<link rel="alternate" type="text/html" href="http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2399&amp;oldid=prev"/>
				<updated>2012-03-13T18:28:27Z</updated>
		
		<summary type="html">&lt;p&gt;Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←Versió més antiga&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisió de 18:28, 13 març 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creació d'un túnel PPTP entre un Server Debian/Ubuntu || dd-wrt i una RB750 de Mikrotik (Client) o Debian/Ubuntu (Client).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Creació d'un túnel PPTP entre un Server Debian/Ubuntu || dd-wrt i una RB750 de Mikrotik (Client) o Debian/Ubuntu (Client).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#######################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;apt-get install pptpd&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;apt-get install pptpd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finalment només hem d'obrir els ports 1723 TCP i 47 UDP del router que utilitzarem per crear el túnel (172.25.2.201)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Finalment només hem d'obrir els ports 1723 TCP i 47 UDP del router que utilitzarem per crear el túnel (172.25.2.201)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Fi config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Fi config costat servidor (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;##########################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Config servidor dd-wrt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Config servidor dd-wrt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#######################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Services-&amp;gt; VPN-&amp;gt; PPTP Server&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Services-&amp;gt; VPN-&amp;gt; PPTP Server&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gateway: 172.25.2.250 (Direcció IP assignada al CLIENT PPTP connectat al túnel)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Gateway: 172.25.2.250 (Direcció IP assignada al CLIENT PPTP connectat al túnel)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Fi config servidor dd-wrt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Fi config servidor dd-wrt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;##########################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Config costat client (Mikrotik)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Config costat client (Mikrotik)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Configuració Client Mikrotik:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Configuració Client Mikrotik:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 150:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 145:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Comment: Actualitza la ip per connectar a la VPN de Solsona&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Comment: Actualitza la ip per connectar a la VPN de Solsona&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Fi config costat client (Mikrotik)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Fi config costat client (Mikrotik)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;###################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Config costat client (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Config costat client (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#####################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per connectar/desconnectar al/del servidor utilitzarem les comandes pon i poff respectivament.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per connectar/desconnectar al/del servidor utilitzarem les comandes pon i poff respectivament.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 196:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 189:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per desconnectar, amb un poff tallem la connexió.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Per desconnectar, amb un poff tallem la connexió.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#&lt;/del&gt;Fi config costat client (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/ins&gt;Fi config costat client (Debian/Ubuntu)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;########################################&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jfigueras</name></author>	</entry>

	<entry>
		<id>http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2398&amp;oldid=prev</id>
		<title>Jfigueras: Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik</title>
		<link rel="alternate" type="text/html" href="http://ca.wiki.guifi.net/w/index.php?title=Creaci%C3%B3_de_t%C3%BAnels_PPTP_(Debian/dd-wrt/Mikrotik)&amp;diff=2398&amp;oldid=prev"/>
				<updated>2012-03-13T18:26:18Z</updated>
		
		<summary type="html">&lt;p&gt;Configuració de túnels (Debian, Mikrotik, dd-wrt) + Script per actualitzar IP dinàmica sobre Mikrotik&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Creació d'un túnel PPTP entre un Server Debian/Ubuntu || dd-wrt i una RB750 de Mikrotik (Client) o Debian/Ubuntu (Client).&lt;br /&gt;
&lt;br /&gt;
#Config costat servidor (Debian/Ubuntu)&lt;br /&gt;
#######################################&lt;br /&gt;
&lt;br /&gt;
apt-get install pptpd&lt;br /&gt;
&lt;br /&gt;
Modifiquem el fitxer de configuració /etc/pptpd.conf:&lt;br /&gt;
localip 172.30.0.1&lt;br /&gt;
remoteip 172.30.0.2-4&lt;br /&gt;
&lt;br /&gt;
El rang d'IP's que utilitzem al punt anterior HA DE SER DIFERENT al rang configurat a les nostres xarxes.&lt;br /&gt;
localip és la direcció que tindrà el servidor pptp&lt;br /&gt;
remoteip són les direccions que s'assignaran als clients del túnel.&lt;br /&gt;
&lt;br /&gt;
Tot seguit modifiquem el fitxer d'opcions /etc/ppp/pptpd-options:&lt;br /&gt;
Modifiquem el nom del servidor pptp:&lt;br /&gt;
name pptp-solsona&lt;br /&gt;
&lt;br /&gt;
Configurem els servidors de DNS d'aquest fitxer pptpd-options:&lt;br /&gt;
ms-dns 8.8.8.8&lt;br /&gt;
ms-dns 80.58.61.250&lt;br /&gt;
&lt;br /&gt;
Tot seguit donem d'alta els clients (user+psw) al fitxer /etc/ppp/chap-secrets:&lt;br /&gt;
usuari nom_servidor contrasenya *&lt;br /&gt;
&lt;br /&gt;
user= nom de l'usuari que es connectarà&lt;br /&gt;
nom_servidor= ha de dir-se igual al &amp;quot;name&amp;quot; que hem definit a pptpd-options&lt;br /&gt;
contrasenya= la paraula de pas de l'usuari que es connectarà al servidor&lt;br /&gt;
*= Indica que se li assignarà qualsevol direcció IP de les que hem definit al fitxer /etc/pprpd.conf&lt;br /&gt;
&lt;br /&gt;
Exemple:&lt;br /&gt;
user pptp-solsona una_clau_de_pas_molt_fiable *&lt;br /&gt;
&lt;br /&gt;
Finalment només ens resta reiniciar el servei:&lt;br /&gt;
/etc/init.d/pptpd restart&lt;br /&gt;
&lt;br /&gt;
Ara ens falta crear una nova entrada a la taula d'enrutament per tal que tot el tràfic amb destí a&lt;br /&gt;
la xarxa client VPN sigui enrutat correctament.&lt;br /&gt;
&lt;br /&gt;
Per aconseguir aquest &amp;quot;reenviament&amp;quot;, utilitzem les &amp;quot;ip routes&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
ip route show (mostra les entrades existents)&lt;br /&gt;
&lt;br /&gt;
Afegim una nova regla per tal que tot el tràfic contra la xarxa 192.168.103.0/24&lt;br /&gt;
sigui reenviat a l'altre extrem del túnel:&lt;br /&gt;
route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;br /&gt;
#Configuració vàlida mentre no reiniciem el sistema&lt;br /&gt;
&lt;br /&gt;
Si volem que l'entrada de la taula d'enrutament sigui persistent, hem d'editar el fitxer /etc/network/interfaces&lt;br /&gt;
i copiar-hi una configuració de l'estil:&lt;br /&gt;
&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
address 172.25.2.202&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
network 172.25.2.0&lt;br /&gt;
broadcast 172.25.2.255&lt;br /&gt;
gateway 172.25.2.1&lt;br /&gt;
&lt;br /&gt;
### ruta estatica VPN Suria ###&lt;br /&gt;
post-up route add -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;br /&gt;
pre-down route del -net 192.168.103.0 netmask 255.255.255.0 gw 172.30.0.2&lt;br /&gt;
&lt;br /&gt;
dns-nameservers 172.25.2.1 8.8.8.8&lt;br /&gt;
&lt;br /&gt;
Finalment només hem d'obrir els ports 1723 TCP i 47 UDP del router que utilitzarem per crear el túnel (172.25.2.201)&lt;br /&gt;
&lt;br /&gt;
#Fi config costat servidor (Debian/Ubuntu)&lt;br /&gt;
##########################################&lt;br /&gt;
&lt;br /&gt;
#Config servidor dd-wrt&lt;br /&gt;
#######################&lt;br /&gt;
&lt;br /&gt;
Services-&amp;gt; VPN-&amp;gt; PPTP Server&lt;br /&gt;
Server IP: 172.25.2.254 ;Una direcció IP que estigui lliure a la nostra xarxa&lt;br /&gt;
Client IP: 172.25.2.250 ;Serà la direcció o direccions que s'assignaran als clients PPTP que es connectin a aquest servidor&lt;br /&gt;
CHAP Secrets: nom_usuari * Paraula_de_Pas * ;Molt important mantenir aquesta estructura!&lt;br /&gt;
&lt;br /&gt;
Security-&amp;gt; VPN Passthrough&lt;br /&gt;
IPSec Passthrough: Enable&lt;br /&gt;
PPTP Passthrough: Enable&lt;br /&gt;
L2TP Passthrough: Enable&lt;br /&gt;
(En realitat no és necessari activar-ho tot...)&lt;br /&gt;
&lt;br /&gt;
Setup-&amp;gt; Advanced Routing&lt;br /&gt;
Operating Mode: Gateway&lt;br /&gt;
Select Set Number: 1&lt;br /&gt;
Route Name: Tunel_Suria&lt;br /&gt;
Metric: 0&lt;br /&gt;
Destination LAN NET: 192.168.103.0 (Xarxa del costat CLIENT del Túnel)&lt;br /&gt;
Subnet Mask: 255.255.255.0 (Màscara de la xarxa del costat CLIENT)&lt;br /&gt;
Gateway: 172.25.2.250 (Direcció IP assignada al CLIENT PPTP connectat al túnel)&lt;br /&gt;
&lt;br /&gt;
#Fi config servidor dd-wrt&lt;br /&gt;
##########################&lt;br /&gt;
&lt;br /&gt;
#Config costat client (Mikrotik)&lt;br /&gt;
################################&lt;br /&gt;
&lt;br /&gt;
Configuració Client Mikrotik:&lt;br /&gt;
PPP-&amp;gt; Interface-&amp;gt; [Add New]-&amp;gt; PPTP Client&lt;br /&gt;
Name: ;Nom amb el que identificarem el nostre túnel. Exemple: pptp-solsona&lt;br /&gt;
Connect to: ;hi posem una IP qualsevol. Tal i com veurem més endavant, un script actualitzarà automàticament aquest valor.&lt;br /&gt;
User: ;nom d'usuari amb el que ens connectarem contra el servidor dd-wrt&lt;br /&gt;
Password: ;la paraula de pas que hem configurat al servidor dd-wrt&lt;br /&gt;
Profile: default_encryption&lt;br /&gt;
Allow: mschap2, mschap1, chap, pap&lt;br /&gt;
Comment: ;Descripció que identificar el túnel. Exemple: ;Túnel contra servidor dd-wrt de Solsona&lt;br /&gt;
[Apply] + [OK]&lt;br /&gt;
&lt;br /&gt;
IP-&amp;gt; Firewall-&amp;gt; NAT-&amp;gt; [Add New]:&lt;br /&gt;
Chain: srcnat&lt;br /&gt;
Out. Interface: pptp-solsona ;Nom del túnel que hem creat a PPP-&amp;gt; Interface&lt;br /&gt;
Action: masquerade&lt;br /&gt;
Comment: ;Masquerade túnel Solsona&lt;br /&gt;
&lt;br /&gt;
IP-&amp;gt; Routes-&amp;gt; [Add New]:&lt;br /&gt;
Dst. Address: 172.25.2.0/24 ;Direcció de xarxa que tenim a l'extrem del servidor dd-wrt&lt;br /&gt;
Gateway: 172.25.2.254 Direcció IP del servidor PPTP (dd-wrt)&lt;br /&gt;
Check Gateway: ping&lt;br /&gt;
Type: Unicast&lt;br /&gt;
Distance: 1&lt;br /&gt;
Scope: 30&lt;br /&gt;
Target Scope: 10&lt;br /&gt;
Comment: Ruta per accedir a la xarxa de Solsona mitjançant el túnel&lt;br /&gt;
&lt;br /&gt;
Tot seguit crearem un script per actualitzar la direcció IP del servidor (ja que en el meu cas és dinàmica):&lt;br /&gt;
System-&amp;gt; Scripts-&amp;gt; [Add New]:&lt;br /&gt;
Name: IP-Dinamica-VPN ;Nom amb el que identifiquem el nostre script&lt;br /&gt;
Policy: Marquem tots els check box&lt;br /&gt;
I aquest és l'script:&lt;br /&gt;
:local &amp;quot;nom_interficie_vpn&amp;quot; &amp;quot;pptp-solsona&amp;quot;&lt;br /&gt;
:local &amp;quot;nom_servidor_vpn&amp;quot; &amp;quot;el_meu_servidor_de_solsona.no-ip.info&amp;quot;&lt;br /&gt;
:local &amp;quot;nova_direccio_ip&amp;quot; [:resolve $&amp;quot;nom_servidor_vpn&amp;quot;]&lt;br /&gt;
:local &amp;quot;direccio_ip_actual&amp;quot; [/interface pptp-client get $&amp;quot;nom_interficie_vpn&amp;quot; connect-to]&lt;br /&gt;
:if ($&amp;quot;direccio_ip_actual&amp;quot; != $&amp;quot;nova_direccio_ip&amp;quot;) do={ /interface pptp-client set [find name=$&amp;quot;nom_interficie_vpn&amp;quot;] connect-to=$&amp;quot;nova_direccio_ip&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
Fixem-nos que a l'anterior script NOMÉS hem de canviar els paràmetres &amp;quot;pptp-solsona&amp;quot; i &amp;quot;el_meu_servidor_de_solsona.no-ip.info&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finalment, programem un cron que ens executi l'script anterior cada cert temps:&lt;br /&gt;
System-&amp;gt; Scheduler-&amp;gt; [Add New]:&lt;br /&gt;
Name: Updt-IP-Solsona&lt;br /&gt;
Start time: startup&lt;br /&gt;
Interval: 00:05:00 ;Cada 5 minuts comprovem si el proveïdor ens ha canviat l'IP del servidor PPTP&lt;br /&gt;
On Event: IP-Dinamica-VPN ;Hem de posar el mateix nom amb el que hem batejat el nostre fantàstic script!&lt;br /&gt;
Policy: Marquem tots els check box&lt;br /&gt;
Comment: Actualitza la ip per connectar a la VPN de Solsona&lt;br /&gt;
&lt;br /&gt;
#Fi config costat client (Mikrotik)&lt;br /&gt;
###################################&lt;br /&gt;
&lt;br /&gt;
#Config costat client (Debian/Ubuntu)&lt;br /&gt;
#####################################&lt;br /&gt;
&lt;br /&gt;
Per connectar/desconnectar al/del servidor utilitzarem les comandes pon i poff respectivament.&lt;br /&gt;
&lt;br /&gt;
Creem un fitxer amb la configuració del servidor on volem connectar al directori /etc/ppp/peers:&lt;br /&gt;
En el meu cas, creo un fitxer anomenat pptp-solsona, i hi afegeixo la següent configuració:&lt;br /&gt;
&lt;br /&gt;
pty &amp;quot;pptp el_meu_servidor_de_solsona.no-ip.info --nolaunchpppd&amp;quot;&lt;br /&gt;
name user&lt;br /&gt;
remotename pptp-solsona&lt;br /&gt;
require-mschap-v2&lt;br /&gt;
require-mppe-128&lt;br /&gt;
file /etc/ppp/options.pptp&lt;br /&gt;
ipparam tunnel&lt;br /&gt;
&lt;br /&gt;
el_meu_servidor_de_solsona.no-ip.info és el nom del servidor on volem connectar&lt;br /&gt;
user= nom de l'usuari que hem creat al servidor&lt;br /&gt;
remotename pptp-solsona= nom del servidor que hem definit al fitxer /etc/ppp/pptpd-options del servidor.&lt;br /&gt;
&lt;br /&gt;
Tal i com hem fet al servidor, ara hem d'afegir els usuaris al fitxer /etc/ppp/chap-secrets:&lt;br /&gt;
usuari nom_servidor contrasenya *&lt;br /&gt;
&lt;br /&gt;
user= nom de l'usuari que es connectarà&lt;br /&gt;
nom_servidor= ha de dir-se igual al &amp;quot;name&amp;quot; que hem definit a pptpd-options&lt;br /&gt;
contrasenya= la paraula de pas de l'usuari que es connectarà al servidor&lt;br /&gt;
*= Indica que se li assignarà qualsevol direcció IP de les que hem definit al fitxer /etc/pptpd.conf&lt;br /&gt;
&lt;br /&gt;
Exemple:&lt;br /&gt;
user pptp-solsona una_clau_de_pas_molt_fiable *&lt;br /&gt;
&lt;br /&gt;
Tornem a configurar les ip routes per redirigir el tràfic del túnel contra el servidor:&lt;br /&gt;
route add -net 172.25.2.0 netmask 255.255.255.0 gw 172.30.0.1&lt;br /&gt;
&lt;br /&gt;
Si volem que aquesta entrada sigui persistent, podem aconseguir-ho editant /etc/network/interfaces&lt;br /&gt;
(consultar la configuració explicada a #Config costat servidor (Debian/Ubuntu))&lt;br /&gt;
&lt;br /&gt;
Amb aquesta regla aconseguim que tot el tràfic destinat a la xarxa 172.25.2.0/24 (Solsona) sigui reenviat al gateway 172.30.0.1,&lt;br /&gt;
que es correspon amb la direcció IP del servidor a l'altre extrem del túnel (localip definida a /etc/pptpd.conf del server).&lt;br /&gt;
&lt;br /&gt;
Finalment ja podem connectar al servidor executant la comanda pon pptp-solsona&lt;br /&gt;
Per desconnectar, amb un poff tallem la connexió.&lt;br /&gt;
&lt;br /&gt;
#Fi config costat client (Debian/Ubuntu)&lt;br /&gt;
########################################&lt;/div&gt;</summary>
		<author><name>Jfigueras</name></author>	</entry>

	</feed>