From: fish <bobfish@mail.ru> To: community@altlinux.ru Subject: [Comm] Re: Соединение с VPN? Date: Tue, 04 Jan 2005 20:25:52 +0300 Message-ID: <1104859552.5319.7.camel@localhost.localdomain> (raw) Я настраивал примерно так: 1. Создаем файл /etc/ppp/peers/internet в нем пишем: name <user name> remotename <VPN-server IP> file /etc/ppp/options.pptp 2. В файле /etc/ppp/options.pptp пишем: lock +chap nobsdcomp nodeflate noaccomp nopcomp +mppe-40 +mppe-128 nomppe-stateful mtu 1372 mru 1500 defaultroute ipcp-accept-local ipcp-accept-remote ktune noauth pty "/usr/sbin/pptp <VPN-server IP> --nolaunchpppd" #updetach #debug #nodetach #logfd 2 Эти опции возможно понадобится изменить. Последние четыре строки нужно раскомментарить, если понадобится отладка. 3. В файле /etc/ppp/chap.secrets прописываем пароль 4. Пишем скрипт соединения /etc/rc.d/init.d/inet: #!/bin/bash /sbin/route add -net <Destination network> gw <Gateway IP> eth0 #pptp Start/Stop the pptp service. #chkconfig: 2345 90 60 #description: Point to Point Tunneling Protocol client #processname: pptp #config: /etc/sysconfig/pptp #Source function library. ./etc/init.d/functions #Source configuration RETVAL=0 #See how we were called. prog="Internet" start() { echo -n $"Starting PPPD connection: <> [ OK ] " /usr/sbin/pppd call internet echo } stop() { echo -n $"Stopping pppd: " killproc pppd echo } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart) restart ;; status) rhstatus ;; *) echo $"Usage: $0 {start|stop|restart}" esac exit $? 5. Добавляем сервис chkconfig --add inet chkconfig --level 2345 inet on
next reply other threads:[~2005-01-04 17:25 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-04 17:25 fish [this message] 2005-01-05 14:22 ` Alex A T 2005-01-05 15:09 ` Denis Kirienko 2005-01-05 16:04 ` Alex A T 2005-01-05 16:13 ` Denis Kirienko 2005-01-05 17:08 ` Alex A T 2005-01-05 17:30 ` Denis Kirienko 2005-01-05 18:26 ` Alex A T 2005-01-05 18:41 ` Denis Kirienko 2005-01-05 19:31 ` Alex A T 2005-01-05 19:53 ` Denis Kirienko 2005-01-07 10:55 ` Alex A T 2005-01-07 10:59 ` Denis Kirienko 2005-01-07 12:54 ` Alex A T 2005-01-07 13:06 ` Denis Kirienko 2005-01-07 13:40 ` Alex A T 2005-01-07 20:30 ` Denis Kirienko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1104859552.5319.7.camel@localhost.localdomain \ --to=bobfish@mail.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git