<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Configurazione_di_una_connessione_PPTP_Lan2Lan_in_Debian</id>
	<title>Configurazione di una connessione PPTP Lan2Lan in Debian - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Configurazione_di_una_connessione_PPTP_Lan2Lan_in_Debian"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Configurazione_di_una_connessione_PPTP_Lan2Lan_in_Debian&amp;action=history"/>
	<updated>2026-05-05T15:49:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Configurazione_di_una_connessione_PPTP_Lan2Lan_in_Debian&amp;diff=8138&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;==Installazione==  sudo apt-get install pptp-linux  ==Configurazione==  * Modificare le opzioni ppp  sudoedit /etc/ppp/options.pptp  &lt;pre&gt; #######################################…&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Configurazione_di_una_connessione_PPTP_Lan2Lan_in_Debian&amp;diff=8138&amp;oldid=prev"/>
		<updated>2011-10-19T07:45:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Installazione==  sudo apt-get install pptp-linux  ==Configurazione==  * Modificare le opzioni ppp  sudoedit /etc/ppp/options.pptp  &amp;lt;pre&amp;gt; #######################################…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Installazione==&lt;br /&gt;
 sudo apt-get install pptp-linux&lt;br /&gt;
&lt;br /&gt;
==Configurazione==&lt;br /&gt;
&lt;br /&gt;
* Modificare le opzioni ppp&lt;br /&gt;
 sudoedit /etc/ppp/options.pptp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###############################################################################&lt;br /&gt;
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 quozl Exp $&lt;br /&gt;
#&lt;br /&gt;
# Sample PPTP PPP options file /etc/ppp/options.pptp&lt;br /&gt;
# Options used by PPP when a connection is made by a PPTP client.&lt;br /&gt;
# This file can be referred to by an /etc/ppp/peers file for the tunnel.&lt;br /&gt;
# Changes are effective on the next connection.  See &amp;quot;man pppd&amp;quot;.&lt;br /&gt;
#&lt;br /&gt;
# You are expected to change this file to suit your system.  As&lt;br /&gt;
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/&lt;br /&gt;
# and the kernel MPPE module available from the CVS repository also on&lt;br /&gt;
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.&lt;br /&gt;
###############################################################################&lt;br /&gt;
&lt;br /&gt;
# Lock the port&lt;br /&gt;
lock&lt;br /&gt;
&lt;br /&gt;
# Authentication&lt;br /&gt;
# We don&amp;#039;t need the tunnel server to authenticate itself&lt;br /&gt;
noauth&lt;br /&gt;
&lt;br /&gt;
# We won&amp;#039;t do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2&lt;br /&gt;
refuse-pap&lt;br /&gt;
refuse-eap&lt;br /&gt;
refuse-chap&lt;br /&gt;
refuse-mschap&lt;br /&gt;
&lt;br /&gt;
# Compression&lt;br /&gt;
# Turn off compression protocols we know won&amp;#039;t be used&lt;br /&gt;
nobsdcomp&lt;br /&gt;
nodeflate&lt;br /&gt;
&lt;br /&gt;
# Encryption&lt;br /&gt;
# (There have been multiple versions of PPP with encryption support,&lt;br /&gt;
# choose with of the following sections you will use.  Note that MPPE&lt;br /&gt;
# requires the use of MSCHAP-V2 during authentication)&lt;br /&gt;
&lt;br /&gt;
# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras&lt;br /&gt;
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o&lt;br /&gt;
# {{{&lt;br /&gt;
# Require MPPE 128-bit encryption&lt;br /&gt;
#require-mppe-128&lt;br /&gt;
# }}}&lt;br /&gt;
&lt;br /&gt;
# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec&lt;br /&gt;
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o&lt;br /&gt;
# {{{&lt;br /&gt;
# Require MPPE 128-bit encryption&lt;br /&gt;
#mppe required,stateless&lt;br /&gt;
# }}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Impostare username e password&lt;br /&gt;
&lt;br /&gt;
 sudoedit /etc/ppp/chap-secrets&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Secrets for authentication using CHAP&lt;br /&gt;
# client        server  secret                  IP addresses&lt;br /&gt;
&lt;br /&gt;
myusername   PPTP    secretpassword  *&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Impostare l&amp;#039;interfaccia virtuale, in modo che sia attivata in automatico al boot. Questa interfaccia non verà elencata in ifconfig, ma provvederà a lanciare la connessione pptp:&lt;br /&gt;
&lt;br /&gt;
 sudoedit /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto levelip&lt;br /&gt;
iface levelip inet ppp&lt;br /&gt;
        provider levelip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creare lo script di support, che ad esempio imposta le route necessarie:&lt;br /&gt;
&lt;br /&gt;
 sudoedit /etc/ppp/ip-up.d/levelip&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
if [ &amp;quot;${PPP_IPPARAM}&amp;quot; = &amp;quot;levelip&amp;quot; ]; then&lt;br /&gt;
   /sbin/route add -net 1.2.3.0/24 dev ${IFNAME}&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Renderlo eseguibile:&lt;br /&gt;
 sudo chmod +x /etc/ppp/ip-up.d/levelip&lt;br /&gt;
&lt;br /&gt;
* Creare il file di configurazione per la connessione pptp&lt;br /&gt;
 sudoedit /etc/ppp/peers/levelip&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pty &amp;quot;pptp 5.6.7.8 --nolaunchpppd&amp;quot;&lt;br /&gt;
name myusername&lt;br /&gt;
remotename PPTP&lt;br /&gt;
require-mppe-128&lt;br /&gt;
file /etc/ppp/options.pptp&lt;br /&gt;
ipparam levelip&lt;br /&gt;
persist&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Provare la connessione in manuale:&lt;br /&gt;
&lt;br /&gt;
 sudo pon levelip&lt;br /&gt;
&lt;br /&gt;
* Se tutto funziona, scollegarsi:&lt;br /&gt;
&lt;br /&gt;
 sudo poff levelip&lt;br /&gt;
&lt;br /&gt;
* Attivarlo tramite l&amp;#039;interfaccia:&lt;br /&gt;
&lt;br /&gt;
 sudo ifup levelip&lt;br /&gt;
&lt;br /&gt;
* Testare la disconnessione:&lt;br /&gt;
 sudo ifdown levelip&lt;br /&gt;
&lt;br /&gt;
* Riattivare l&amp;#039;interfaccia:&lt;br /&gt;
 sudo ifup levelip&lt;br /&gt;
&lt;br /&gt;
==Riferimenti==&lt;br /&gt;
&lt;br /&gt;
*[http://pptpclient.sourceforge.net/howto-debian.phtml PPTP Client Howto]&lt;br /&gt;
*[http://pptpclient.sourceforge.net/routing.phtml#automatic-setup PPTP Client Howto - Automatic Setup]&lt;br /&gt;
*[http://pptpclient.sourceforge.net/howto-diagnosis.phtml#lcp_confrej_authchapmsv2 PPTP Client Howto - Error lcp_confrej_authchapmsv2]&lt;br /&gt;
*[http://pptpclient.sourceforge.net/howto-diagnosis.phtml#no_auth_is_possible PPTP Client Howto - Error no_auth_is_possible]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>