<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=PPTP_Linux_VPN_Serveris</id>
	<title>PPTP Linux VPN Serveris - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=PPTP_Linux_VPN_Serveris"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=PPTP_Linux_VPN_Serveris&amp;action=history"/>
	<updated>2026-04-19T12:26:31Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=PPTP_Linux_VPN_Serveris&amp;diff=8110&amp;oldid=prev</id>
		<title>\dev\null: one more link :-)</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=PPTP_Linux_VPN_Serveris&amp;diff=8110&amp;oldid=prev"/>
		<updated>2017-01-15T17:00:03Z</updated>

		<summary type="html">&lt;p&gt;one more link :-)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Analogiškas pradžiamokslis apie [[pptp]] ant [[FreeBSD]] [[FreeBSD VPN POPTOP|aprašytas čia]]. Tiesiog čia aprašyta apie tai kaip padaryti [[pptp]] [[VPN]] serverio implementaciją [[Linux]] serveryje, kuri plačiai naudojama [[Windows]] sistemose nuo [[Win9x]] laikų.&lt;br /&gt;
&lt;br /&gt;
= Konfigūraciniai failai =&lt;br /&gt;
&lt;br /&gt;
Keletas aspektų:&lt;br /&gt;
* eth0 - Serverio kuriame yra pptp interfeisas išeinantis į internetą&lt;br /&gt;
* eth2 - Vidinis pptp serverio tinklo interfeisas&lt;br /&gt;
* 192.168.1.0/24 bendras tinklo subnetas (žiūrėti, kad nekonfliktuotų su esama [[dhcp]] ar statinių [[ip]] konfigūracija)&lt;br /&gt;
Pirmiausia pro [[firewall|fajevolą]] prasileidžiame GRE (Generic Routing Encapsulation) protokolą:&lt;br /&gt;
 [[iptables]] --insert OUTPUT 1 --source 0.0.0.0/0.0.0.0 --destination 0.0.0.0/0.0.0.0 --jump ACCEPT --protocol gre --out-interface eth0&lt;br /&gt;
 [[iptables]] --insert INPUT 1 --source 0.0.0.0/0.0.0.0 --destination 0.0.0.0/0.0.0.0 --jump ACCEPT --protocol gre --in-interface eth0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== /etc/pptpd.conf  ==&lt;br /&gt;
 option /etc/ppp/pptpd-options&lt;br /&gt;
 # debuginimo sumetimai galime atkomentuoti šią eilutę (pvz.: jeigu eilinį karta nepasisekė konfigūracija ir &amp;quot;kažkas neveikia&amp;quot;)&lt;br /&gt;
 #debug&lt;br /&gt;
 logwtmp&lt;br /&gt;
 # vėliau aprašysiu kaip veikia broadcastinimo relayus&lt;br /&gt;
 #bcrelay eth2&lt;br /&gt;
 localip 192.168.1.254&lt;br /&gt;
 remoteip 192.168.1.200-240&lt;br /&gt;
== /etc/ppp/chap-secrets ==&lt;br /&gt;
Konfigūracinis failas aprašantis prisijungimų informaciją, vartotojo vardus, slaptažodžius bei priskiriamus ip&lt;br /&gt;
 # Secrets for authentication using CHAP&lt;br /&gt;
 # client        server   secret                  IP addresses&lt;br /&gt;
 devnull         pptpd   123456                *&lt;br /&gt;
Vietoj žvaigždutės galima vartotojui priskirti statinį vidinį ip pvz.: šiuo atveju galima įrašyti 192.168.1.200. Slaptažodis šiuo atveju yra 123456.&lt;br /&gt;
== /etc/ppp/options ==&lt;br /&gt;
 ms-dns 8.8.8.8&lt;br /&gt;
 ms-dns 8.8.4.4&lt;br /&gt;
 # Jeigu tinkle bus naudojamas [[SMB]] ([[samba]]) serveris galima nustatyti jį kaip wins serverį ([[samba]] konfige tai įjungus)&lt;br /&gt;
 # ms-wins 192.168.1.50&lt;br /&gt;
 # ms-wins 192.168.1.51&lt;br /&gt;
 # async character map -- 32-bit hex; each bit is a character&lt;br /&gt;
 # that needs to be escaped for pppd to receive it.  0x00000001&lt;br /&gt;
 # represents '\x01', and 0x80000000 represents '\x1f'.&lt;br /&gt;
 asyncmap 0&lt;br /&gt;
 # Require the peer to authenticate itself before allowing network &lt;br /&gt;
 # packets to be sent or received.&lt;br /&gt;
 # Please do not disable this setting. It is expected to be standard in&lt;br /&gt;
 # future releases of pppd. Use the call option (see manpage) to disable&lt;br /&gt;
 # authentication for specific peers.&lt;br /&gt;
 noauth&lt;br /&gt;
 nodeflate&lt;br /&gt;
 # Use hardware flow control (i.e. RTS/CTS) to control the flow of data&lt;br /&gt;
 # on the serial port.&lt;br /&gt;
 crtscts&lt;br /&gt;
 # Specifies that pppd should use a UUCP-style lock on the serial device&lt;br /&gt;
 # to ensure exclusive access to the device.&lt;br /&gt;
 lock&lt;br /&gt;
 # Don't show the passwords when logging the contents of PAP packets.&lt;br /&gt;
 # This is the default.&lt;br /&gt;
 hide-password&lt;br /&gt;
 # When logging the contents of PAP packets, this option causes pppd to&lt;br /&gt;
 # show the password string in the log message.&lt;br /&gt;
 #show-password&lt;br /&gt;
 # Use the modem control lines.  On Ultrix, this option implies hardware&lt;br /&gt;
 # flow control, as for the crtscts option.  (This option is not fully&lt;br /&gt;
 # implemented.)&lt;br /&gt;
 modem&lt;br /&gt;
 # Set the interface netmask to &amp;lt;n&amp;gt;, a 32 bit netmask in &amp;quot;decimal dot&amp;quot;&lt;br /&gt;
 # notation (e.g. 255.255.255.0).&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 # Disables the default behaviour when no local IP address is specified,&lt;br /&gt;
 # which is to determine (if possible) the local IP address from the&lt;br /&gt;
 # hostname. With this option, the peer will have to supply the local IP&lt;br /&gt;
 # address during IPCP negotiation (unless it specified explicitly on the&lt;br /&gt;
 # command line or in an options file).&lt;br /&gt;
 noipdefault&lt;br /&gt;
 # Enables the &amp;quot;passive&amp;quot; option in the LCP.  With this option, pppd will&lt;br /&gt;
 # attempt to initiate a connection; if no reply is received from the&lt;br /&gt;
 # peer, pppd will then just wait passively for a valid LCP packet from&lt;br /&gt;
 # the peer (instead of exiting, as it does without this option).&lt;br /&gt;
 passive&lt;br /&gt;
 # vėlgi jeigu atsitiko bėda galima, eilutę apačioje atkomentuojame&lt;br /&gt;
 #debug&lt;br /&gt;
 # Enable debugging code in the kernel-level PPP driver.  The argument n&lt;br /&gt;
 # is a number which is the sum of the following values: 1 to enable&lt;br /&gt;
 # general debug messages, 2 to request that the contents of received&lt;br /&gt;
 # packets be printed, and 4 to request that the contents of transmitted&lt;br /&gt;
 # packets be printed.&lt;br /&gt;
 #kdebug 1&lt;br /&gt;
 [[mtu]] 1450&lt;br /&gt;
 [[mru]] 1450&lt;br /&gt;
 # Add an entry to this system's ARP [Address Resolution Protocol]&lt;br /&gt;
 # table with the IP address of the peer and the Ethernet address of this&lt;br /&gt;
 # system.&lt;br /&gt;
 proxyarp&lt;br /&gt;
 lcp-echo-interval 10&lt;br /&gt;
 lcp-echo-failure 10&lt;br /&gt;
 noipx&lt;br /&gt;
 # Do not exit after a connection is terminated; instead try to reopen&lt;br /&gt;
 # the connection.&lt;br /&gt;
 #persist &lt;br /&gt;
 # ---&amp;lt;End of File&amp;gt;---&lt;br /&gt;
== /etc/ppp/pptpd-options ==&lt;br /&gt;
 # Authentication&lt;br /&gt;
 # Name of the local system for authentication purposes&lt;br /&gt;
 # (must match the second field in /etc/ppp/chap-secrets entries)&lt;br /&gt;
 # chap-secrets naudojama antroji eilutė kuri naurodo lokalią sistemą pagal kurią bus autentifikuojamas vartotojas&lt;br /&gt;
 name pptpd&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.)&lt;br /&gt;
 # Kokį šifrą naudosime ?&lt;br /&gt;
 # BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o&lt;br /&gt;
 # {{{&lt;br /&gt;
 #refuse-pap&lt;br /&gt;
 #refuse-chap&lt;br /&gt;
 #refuse-mschap&lt;br /&gt;
 #require-mschap&lt;br /&gt;
 # Require the peer to authenticate itself using MS-CHAPv2 [Microsoft&lt;br /&gt;
 # Challenge Handshake Authentication Protocol, Version 2] authentication.&lt;br /&gt;
 require-mschap-v2 # '''Jeigu norite apynormalės 128 bit šifruotės užkomentuokite šią eilute ir atkomentuokite sekančias dvi'''&lt;br /&gt;
 '''#require-mppe-128'''&lt;br /&gt;
 '''#require-mppe'''&lt;br /&gt;
 # }}}&lt;br /&gt;
 # If pppd is acting as a server for Microsoft Windows clients, this&lt;br /&gt;
 # option allows pppd to supply one or two DNS (Domain Name Server)&lt;br /&gt;
 # addresses to the clients.  The first instance of this option&lt;br /&gt;
 # specifies the primary DNS address; the second instance (if given)&lt;br /&gt;
 # specifies the secondary DNS address.&lt;br /&gt;
 # Attention! This information may not be taken into account by a Windows&lt;br /&gt;
 # client. See KB311218 in Microsoft's knowledge base for more information.&lt;br /&gt;
 ms-dns 8.8.8.8&lt;br /&gt;
 ms-dns 8.8.4.4&lt;br /&gt;
 # If pppd is acting as a server for Microsoft Windows or &amp;quot;Samba&amp;quot;&lt;br /&gt;
 # clients, this option allows pppd to supply one or two WINS (Windows&lt;br /&gt;
 # Internet Name Services) server addresses to the clients.  The first&lt;br /&gt;
 # instance of this option specifies the primary WINS address; the&lt;br /&gt;
 # second instance (if given) specifies the secondary WINS address.&lt;br /&gt;
 #ms-wins 10.0.0.3&lt;br /&gt;
 #ms-wins 10.0.0.4&lt;br /&gt;
 # Add an entry to this system's ARP [Address Resolution Protocol]&lt;br /&gt;
 # table with the IP address of the peer and the Ethernet address of this&lt;br /&gt;
 # system.  This will have the effect of making the peer appear to other&lt;br /&gt;
 # systems to be on the local ethernet.&lt;br /&gt;
 # (you do not need this if your PPTP server is responsible for routing&lt;br /&gt;
 # packets to the clients -- James Cameron)&lt;br /&gt;
 proxyarp&lt;br /&gt;
 # Normally pptpd passes the IP address to pppd, but if pptpd has been&lt;br /&gt;
 # given the delegate option in pptpd.conf or the --delegate command line&lt;br /&gt;
 # option, then pppd will use chap-secrets or radius to allocate the&lt;br /&gt;
 # client IP address.  The default local IP address used at the server&lt;br /&gt;
 # end is often the same as the address of the server.  To override this,&lt;br /&gt;
 # specify the local IP address here.&lt;br /&gt;
 # (you must not use this unless you have used the delegate option)&lt;br /&gt;
 #10.8.0.100&lt;br /&gt;
 # Debian: do not replace the default route&lt;br /&gt;
 nodefaultroute&lt;br /&gt;
 # Logging&lt;br /&gt;
 # Enable connection debugging facilities.&lt;br /&gt;
 # (see your syslog configuration for where pppd sends to)&lt;br /&gt;
 # Jeigu reikalingas debuginimas &lt;br /&gt;
 #debug&lt;br /&gt;
 # Print out all the option values which have been set.&lt;br /&gt;
 # (often requested by mailing list to verify options)&lt;br /&gt;
 #dump&lt;br /&gt;
 # Create a UUCP-style lock file for the pseudo-tty to ensure exclusive&lt;br /&gt;
 # access.&lt;br /&gt;
 lock&lt;br /&gt;
 # Disable BSD-Compress compression&lt;br /&gt;
 nobsdcomp&lt;br /&gt;
 # Disable Van Jacobson compression&lt;br /&gt;
 # (needed on some networks with Windows 9x/ME/XP clients, see posting to&lt;br /&gt;
 # poptop-server on 14th April 2005 by Pawel Pokrywka and followups,&lt;br /&gt;
 # http://marc.theaimsgroup.com/?t=111343175400006&amp;amp;r=1&amp;amp;w=2 )&lt;br /&gt;
 novj&lt;br /&gt;
 novjccomp&lt;br /&gt;
&lt;br /&gt;
= Paleidimas =&lt;br /&gt;
&lt;br /&gt;
Rašome:&lt;br /&gt;
 /usr/sbin/pptpd --fg&lt;br /&gt;
Žiūrime šiuos logus&lt;br /&gt;
 /var/log/debug&lt;br /&gt;
 /var/log/daemon&lt;br /&gt;
 &lt;br /&gt;
= Kliento sukonfigūravimas =&lt;br /&gt;
&lt;br /&gt;
== Konfigūracija ==&lt;br /&gt;
&lt;br /&gt;
Pirmiausia sudiegiame pptp&lt;br /&gt;
 apt-get install pptp-linux&lt;br /&gt;
Užregistruojame naują klientą&lt;br /&gt;
 pptpsetup --create PPTP --server SERVERIO_IP_ADRESAS --username devnull --password 123456 --start&lt;br /&gt;
Klientas po naujo serverio pridėjimo iškart turėtų jungtis.&lt;br /&gt;
Pakartotinai jungtis vėliau galima komanda:&lt;br /&gt;
 pppd call PPTP&lt;br /&gt;
Arba debug režimu (matant kas vyksta)&lt;br /&gt;
 pon PPTP debug dump logfd 2 nodetach&lt;br /&gt;
Jeigu matome kažką panašaus į žemiau esantį tekstą, mums pasisekė:&lt;br /&gt;
 root@localhost:~# pon PPTP debug dump logfd 2 nodetach&lt;br /&gt;
 pppd options in effect:&lt;br /&gt;
 debug debug   # (from command line)&lt;br /&gt;
 kdebug 1    # (from /etc/ppp/options)&lt;br /&gt;
 nodetach    # (from command line)&lt;br /&gt;
 logfd 2   # (from command line)&lt;br /&gt;
 dump    # (from command line)&lt;br /&gt;
 noauth    # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 refuse-pap    # (from /etc/ppp/options)&lt;br /&gt;
 refuse-chap   # (from /etc/ppp/options)&lt;br /&gt;
 refuse-mschap  # (from /etc/ppp/options)&lt;br /&gt;
 refuse-eap    # (from /etc/ppp/options)&lt;br /&gt;
 name devnull   # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 remotename PPTP  # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
    # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 pty pptp SERVERIO_IP --nolaunchpppd   # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 crtscts   # (from /etc/ppp/options)&lt;br /&gt;
    # (from /etc/ppp/options)&lt;br /&gt;
 asyncmap 0    # (from /etc/ppp/options)&lt;br /&gt;
 lcp-echo-failure 4  # (from /etc/ppp/options)&lt;br /&gt;
 lcp-echo-interval 30  # (from /etc/ppp/options)&lt;br /&gt;
 hide-password  # (from /etc/ppp/options)&lt;br /&gt;
 ipparam PPTP   # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 netmask 255.255.255.0  # (from /etc/ppp/options)&lt;br /&gt;
 nobsdcomp   # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 nodeflate   # (from /etc/ppp/peers/PPTP)&lt;br /&gt;
 noipx   # (from /etc/ppp/options)&lt;br /&gt;
 using channel 34&lt;br /&gt;
 Using interface ppp0&lt;br /&gt;
 Connect: ppp0 &amp;lt;--&amp;gt; /dev/pts/2&lt;br /&gt;
 sent [LCP ConfReq id=0x1 &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;magic 0x1724c810&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 rcvd [LCP ConfReq id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;auth chap MS-v2&amp;gt; &amp;lt;magic 0x58caf7a0&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 sent [LCP ConfAck id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;auth chap MS-v2&amp;gt; &amp;lt;magic 0x58caf7a0&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 rcvd [LCP ConfAck id=0x1 &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;magic 0x1724c810&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 sent [LCP EchoReq id=0x0 magic=0x1724c810]&lt;br /&gt;
 rcvd [LCP EchoReq id=0x0 magic=0x58caf7a0]&lt;br /&gt;
 sent [LCP EchoRep id=0x0 magic=0x1724c810]&lt;br /&gt;
 rcvd [CHAP Challenge id=0x79 &amp;lt;xxxxxxxxxxxxxx&amp;gt;, name = &amp;quot;pptpd&amp;quot;]&lt;br /&gt;
 added response cache entry 0&lt;br /&gt;
 sent [CHAP Response id=0x79 &amp;lt;xxxxxxxxxxxxxxxxxx&amp;gt;, name = &amp;quot;devnull&amp;quot;]&lt;br /&gt;
 rcvd [LCP EchoRep id=0x0 magic=0x58caf7a0]&lt;br /&gt;
 rcvd [CHAP Success id=0x79 &amp;quot;S=xxxxxxxxxxxxx M='''Access granted'''&amp;quot;]&lt;br /&gt;
 response found in cache (entry 0)&lt;br /&gt;
 CHAP authentication succeeded&lt;br /&gt;
 sent [IPCP ConfReq id=0x1 &amp;lt;compress VJ 0f 01&amp;gt; &amp;lt;addr 0.0.0.0&amp;gt;]&lt;br /&gt;
 rcvd [IPCP ConfReq id=0x1 &amp;lt;addr 192.168.1.254&amp;gt;]&lt;br /&gt;
 sent [IPCP ConfAck id=0x1 &amp;lt;addr 192.168.1.254&amp;gt;]&lt;br /&gt;
 rcvd [IPCP ConfRej id=0x1 &amp;lt;compress VJ 0f 01&amp;gt;]&lt;br /&gt;
 sent [IPCP ConfReq id=0x2 &amp;lt;addr 0.0.0.0&amp;gt;]&lt;br /&gt;
 rcvd [IPCP ConfNak id=0x2 &amp;lt;addr 192.168.1.200&amp;gt;]&lt;br /&gt;
 sent [IPCP ConfReq id=0x3 &amp;lt;addr 192.168.1.200&amp;gt;]&lt;br /&gt;
 rcvd [IPCP ConfAck id=0x3 &amp;lt;addr 192.168.1.200&amp;gt;]&lt;br /&gt;
 local  IP address 192.168.1.200&lt;br /&gt;
 remote IP address 192.168.1.254&lt;br /&gt;
 Script /etc/ppp/ip-up started (pid 14850)&lt;br /&gt;
 Script /etc/ppp/ip-up finished (pid 14850), status = 0x0&lt;br /&gt;
 rcvd [LCP EchoReq id=0x1 magic=0x58caf7a0]&lt;br /&gt;
&lt;br /&gt;
== Testavimas ==&lt;br /&gt;
&lt;br /&gt;
Kaip jungtis iš kliento pusės žiūr. viršuj.&lt;br /&gt;
&lt;br /&gt;
Serverio pusėje. Jeigu matome '''/var/log/debug''' arba '''/var/log/daemon''' kažką panašaus į apačioje esantį tekstą, mums vėlgi pasisekė:&lt;br /&gt;
 Dec 30 02:31:55 blastpit pppd[21067]: using channel 1699&lt;br /&gt;
 Dec 30 02:31:55 blastpit pppd[21067]: sent [LCP ConfReq id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;auth chap MS-v2&amp;gt; &amp;lt;magic 0x15386901&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #1&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [LCP ConfReq id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;magic 0x16d47616&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [LCP ConfAck id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;magic 0x16d47616&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #2&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [LCP ConfAck id=0x1 &amp;lt;mru 1450&amp;gt; &amp;lt;asyncmap 0x0&amp;gt; &amp;lt;auth chap MS-v2&amp;gt; &amp;lt;magic 0x15386901&amp;gt; &amp;lt;pcomp&amp;gt; &amp;lt;accomp&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [LCP EchoReq id=0x0 magic=0x15386901]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [CHAP Challenge id=0xab &amp;lt;xxxxxxxxx&amp;gt;, name = &amp;quot;pptpd&amp;quot;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #3&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [LCP EchoReq id=0x0 magic=0x16d47616]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [LCP EchoRep id=0x0 magic=0x15386901]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #4&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [LCP EchoRep id=0x0 magic=0x16d47616]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #5&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [CHAP Response id=0xab &amp;lt;xxxxxxxxxxxxxxxx&amp;gt;, name = &amp;quot;devnull&amp;quot;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [CHAP Success id=0xab &amp;quot;S=xxxxxxxxxxxxxxxxxxxxxxxxxxxx M=Access granted&amp;quot;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [IPCP ConfReq id=0x1 &amp;lt;addr 192.168.2.254&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #6&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [IPCP ConfReq id=0x1 &amp;lt;compress VJ 0f 01&amp;gt; &amp;lt;addr 192.168.5.1&amp;gt; &amp;lt;ms-dns1 0.0.0.0&amp;gt; &amp;lt;ms-dns2 0.0.0.0&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [IPCP ConfRej id=0x1 &amp;lt;compress VJ 0f 01&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #7&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [IPCP ConfAck id=0x1 &amp;lt;addr 192.168.2.254&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #8&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [IPCP ConfReq id=0x2 &amp;lt;addr 192.168.5.1&amp;gt; &amp;lt;ms-dns1 0.0.0.0&amp;gt; &amp;lt;ms-dns2 0.0.0.0&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [IPCP ConfNak id=0x2 &amp;lt;addr 192.168.2.200&amp;gt; &amp;lt;ms-dns1 8.8.8.8&amp;gt; &amp;lt;ms-dns2 8.8.4.4&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pptpd[21066]: GRE: accepting packet #9&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: rcvd [IPCP ConfReq id=0x3 &amp;lt;addr 192.168.2.200&amp;gt; &amp;lt;ms-dns1 8.8.8.8&amp;gt; &amp;lt;ms-dns2 8.8.4.4&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: sent [IPCP ConfAck id=0x3 &amp;lt;addr 192.168.2.200&amp;gt; &amp;lt;ms-dns1 8.8.8.8&amp;gt; &amp;lt;ms-dns2 8.8.4.4&amp;gt;]&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: Script /etc/ppp/ip-up started (pid 21075)&lt;br /&gt;
 Dec 30 02:31:57 blastpit pppd[21067]: Script /etc/ppp/ip-up finished (pid 21075), status = 0x0&lt;br /&gt;
 Dec 30 02:31:59 blastpit pptpd[21066]: GRE: accepting packet #10&lt;br /&gt;
 Dec 30 02:31:59 blastpit pppd[21067]: rcvd [LCP EchoReq id=0x1 magic=0x16d47616]&lt;br /&gt;
 Dec 30 02:31:59 blastpit pppd[21067]: sent [LCP EchoRep id=0x1 magic=0x15386901]&lt;br /&gt;
&lt;br /&gt;
'''Pinginam vieną hostą iš kito, jeigu pingas eina, viskas ok.''' t.y:&lt;br /&gt;
 root@host1# ping 192.168.1.200&lt;br /&gt;
 root@host2# ping 192.168.1.254&lt;br /&gt;
&lt;br /&gt;
== Galutinis paleidimas ir naudojimas ==&lt;br /&gt;
&lt;br /&gt;
Serverio pusėje paleidžiame daemoną:&lt;br /&gt;
 /etc/init.d/pptpd start&lt;br /&gt;
Kliento pusėje:&lt;br /&gt;
 echo &amp;quot;pppd call PPTP&amp;quot; &amp;gt;&amp;gt; /etc/rc.local &amp;amp;&amp;amp; pppd call PPTP&lt;br /&gt;
&lt;br /&gt;
== Pabaigai ==&lt;br /&gt;
Kol kas nematysime vidinių vieno ir kito tinklo resursų be papildomo routinimo ir keletos [[firewall|fajervolo]] taisyklių kurias aprašysiu vėliau, bet tai turi atrodyti maždaug taip:&lt;br /&gt;
 route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0 &lt;br /&gt;
 [[iptables]] --insert OUTPUT 1 --source 0.0.0.0/0.0.0.0 --destination 192.168.1.0/24 --jump ACCEPT --out-interface ppp0   &lt;br /&gt;
 [[iptables]] --insert INPUT 1 --source 192.168.1.0/24 --destination 0.0.0.0/0.0.0.0 --jump ACCEPT --in-interface ppp0&lt;br /&gt;
 [[iptables]] --insert FORWARD 1 --source 0.0.0.0/0.0.0.0 --destination 192.168.1.0/24 --jump ACCEPT --out-interface ppp0   &lt;br /&gt;
 [[iptables]] --insert FORWARD 1 --source 192.168.1.0/24 --destination 0.0.0.0/0.0.0.0 --jump ACCEPT&lt;br /&gt;
Nu natinimas nebūtinas nebent kartu norėsit naudoti ir pptp serverio internetus.&lt;br /&gt;
 [[iptables]] --table nat --append POSTROUTING --out-interface ppp0 --jump MASQUERADE&lt;br /&gt;
 [[iptables]] --append FORWARD --protocol tcp --tcp-flags SYN,RST SYN --jump TCPMSS --clamp-mss-to-pmtu&lt;br /&gt;
Tada sumetame scriptą į /etc/ppp/ip-up.d/scriptas (nurodę kintamuosius vietoj statinių dabar parašytų interfeisų, nes kiekvienas klientas jungiantis prie pptp jų turės po vieną).&lt;br /&gt;
'''PASTABA!'''&lt;br /&gt;
Stebėtinai būtina subnetą 192.168.1.0/24 keisti į kitą visame šiame straipsnyje norint, kad viskas sklandžiai veiktų, nors galimos ir kontraversijos.&lt;br /&gt;
&lt;br /&gt;
= Kaip naudoti windows sistemose kaip klientą ? =&lt;br /&gt;
&lt;br /&gt;
* [https://www.my-private-network.co.uk/windows-7-pptp-setup/ skaitykite čia] (Su screenshootais!)&lt;br /&gt;
&lt;br /&gt;
= Nuorodos =&lt;br /&gt;
Kitos susijusios nuorodos:&lt;br /&gt;
* [http://www.vionblog.com/debian-pptp-client-configuration/ http://www.vionblog.com/debian-pptp-client-configuration/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Tinklas]]&lt;br /&gt;
[[Category:Saugumas]]&lt;br /&gt;
[[Category:Debian]]&lt;br /&gt;
[[Category:Ubuntu]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>