« SMB 网上邻居 网邻 samba@linux net@windows |
Main
| netfilter/iptables nat PREROUTING REDIRECT 解决邮件服务器绑定锁 »
April 25, 2004
pptpd PoPToP ppp - a simple sample of vpn
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/04/25/000406.html
% cat /etc/pptpd.conf speed 115200 option /etc/ppp/options.pptpd localip 172.16.162.105 remoteip 172.16.162.106-254
% cat /etc/ppp/options.pptpd lock name pptpd auth nodefaultroute noproxyarp +chap +chapms +chapms-v2
% pptpd -v PoPToP v1.1.4-b4
% rpm -qi ppp Name : ppp Relocations: (not relocateable) Version : 2.4.1 Vendor: (none) Release : 3mppe Build Date: Fri 08 Feb 2002 08:39:32 PM CST Install date: Sun 25 Apr 2004 02:27:05 PM CST Build Host: opennms.linvision.intern Group : System Environment/Daemons Source RPM: ppp-2.4.1-3mppe.src.rpm Size : 390504 License: distributable Summary : The PPP (Point-to-Point Protocol) daemon. Description : The ppp package contains the PPP (Point-to-Point Protocol) daemon and documentation for PPP support. The PPP protocol provides a method for transmitting datagrams over serial point-to-point links. PPP is usually used to dial in to an ISP (Internet Service Provider) or other organization over a modem and phone line.
% cd /etc/ppp; rename ip orig.ip ip*
% modprobe ppp % pptpd -fd
% pptpd -h
PoPToP v1.1.4-b4 The PPTP Server for Linux Usage: pptpd [options], where options are:
[-c] [--conf file] Specifies the config file to read default settings from (default is /etc/pptpd.conf). [-d] [--debug] Turns on debugging (to syslog). [-f] [--fg] Run in foreground. [-h] [--help] Displays this help message. [-l] [--listen x.x.x.x] Specifies IP of local interface to listen to. [-o] [--option file] Specifies the PPP options file to use (default is /etc/ppp/options). [-p] [--pidfile file] Specifies the file to write the process ID to (default is /var/run/pptpd.pid). [-s] [--speed baud] Specifies the baud speed for the PPP daemon (default is 115200). [-t] [--stimeout seconds] Specifies the timeout for the first packet. This is a DOS protection (default is 10). [-v] [--version] Displays the PoPToP version number.
Logs and debugging go to syslog as DAEMON.
Command line options will override any default settings and any settings specified in the config file (default config file: /etc/pptpd.conf).
|
|
Posted by windtear at April 25, 2004 4:18 PM