ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Re: Соединение с  VPN?
@ 2005-01-04 17:25 fish
  2005-01-05 14:22 ` Alex A T
  0 siblings, 1 reply; 17+ messages in thread
From: fish @ 2005-01-04 17:25 UTC (permalink / raw)
  To: community

Я настраивал примерно так:

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 




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-01-07 20:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-04 17:25 [Comm] Re: Соединение с VPN? fish
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

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