|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Alexey Popov 2:5096/18 04 Jan 2002 00:51:29 To : All Subject : pptpd & user-level PPP --------------------------------------------------------------------------------
Существует ли некривой способ подружить pptp и user-level PPP в FreeBSD
4.4-R? Или, может быть, существует другой путь создания VPN-сервера, к корторому
Win-клиенты присоединяться могут?
То, что написано в http://heyer.supranet.net/pptp, вероятно, из-за своей
кривизны работает в пять раз медленней PPPoE + user-level PPP и жрет много
процессора. ;( pptpd после коннекта продолжает весь поток пропускать через
pptpctrl, в отличие от pppoed, который поток почти сразу отдает PPP.
Вот, что написано в УРЛе:
========= Цитата suxx.txt =========
PPTPd Installation and Configuration
This is the easy part - just install poptop from Packages or Ports under the
"net" category. If you prefer to compile it yourself, make sure you configure it
with "--with-bsdppp". Then setup your pptpd.conf file, usually in
/usr/local/etc. Mine looks like this:
option /etc/ppp/ppp.conf
# turn debugging on only if you need it
##debug
# if you have multiple addresses and only want to "listen" on one:
##listen 208.212.80.82
localip 192.168.0.129
remoteip 192.168.0.130-139
pidfile /var/run/pptpd.pid
This says use /etc/ppp/ppp.conf for PPP configuration, turn on debugging, use
192.168.0.129 as the server IP address, and assign 192.168.0.130 thru
192.168.0.139 to clients. You can specify a range for your server as well, but
make sure the server and client pools don't overlap.
-------------------------------------------------------------------------------
PPP Configuration
Now for some copying and pasting. First add the following lines to your
/etc/ppp/ppp.conf file.
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
set dial
set login
# Server (local) IP address, Range for Clients, and Netmask
set ifaddr 192.168.0.129 192.168.0.130-192.168.0.139 255.255.255.255
set server /tmp/loop "" 0177
loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct
pptp:
load loop
enable chap
disable pap
# Authenticate against /etc/passwd
##enable passwdauth
enable proxy
accept dns
# DNS Servers to assign client
set dns 192.168.0.1 192.168.0.2
# NetBIOS/WINS Servers to assign client
set nbns 192.168.0.15 192.168.0.16
set device !/etc/ppp/secure
/etc/ppp/secure
Create a /etc/ppp/secure file with the following lines and chmod u+x on it
#!/bin/sh
exec /usr/sbin/ppp -direct loop-in
/etc/ppp/ppp.secrets
If you don't want to use passwdauth, you must create a /etc/ppp/ppp.secrets file
containing usernames and passwords for authentication. For example:
bill Saxophone
jimmy Peanuts
Obviously the passwords are in clear text, so make sure this file is not world
readable.
========= Конец цитате =========
С уважением, Alexey 03 января 2002 года
... [ElStyle] [MSTU ASF] [Drum'n'Bass] megapopoff(at)mail.ru
--- Плющ GED 3.00.Beta1+
* Origin: А нечисту террористу - стыд и срам (2:5096/18)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/18793c34f174.html, оценка из 5, голосов 10
|