Пару дней назад подключил себе в Екатеринбурге акаду. настроил соединение.. Все, вроде бы работает, но периодически коннект рвется, а в сислогах появляеться одна и та же ошибка:
tail -f /var/log/syslog | grep pppd: Mar 17 22:01:55 MegaKompGi pppd[7311]: Failed to open /dev/pts/4: No such file or directory Mar 17 22:02:08 MegaKompGi pppd[26125]: Failed to open /dev/pts/0: No such file or directory Mar 17 22:02:19 MegaKompGi pppd[6331]: Failed to open /dev/pts/2: No such file or directory Mar 17 22:02:25 MegaKompGi pppd[7311]: Failed to open /dev/pts/4: No such file or directory Mar 17 22:02:38 MegaKompGi pppd[26125]: Failed to open /dev/pts/0: No such file or directory Mar 17 22:02:49 MegaKompGi pppd[6331]: Failed to open /dev/pts/2: No such file or directory Mar 17 22:02:55 MegaKompGi pppd[7311]: Failed to open /dev/pts/4: No such file or directory
Понять не могу что это за ошибка такая.
Мои конфиги:
cat /etc/network/interfaces
auto lo iface lo inet loopback # auto eth0 iface eth0 inet static address 10.1.147.73 netmask 255.255.255.0 gateway 10.1.147.3 #dns-nameserver 10.0.0.1 10.0.0.2 up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.147.3 auto eth1 iface eth1 inet static address 192.168.0.1 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255
cat /etc/resolv.conf
nameserver 10.0.0.1 nameserver 10.0.0.2 nameserver 217.76.183.38 nameserver 217.76.183.36 # Generated by NetworkManager
cat /etc/xl2tpd/xl2tpd.conf
; ; Sample l2tpd configuration file ; ; This example file should give you some idea of how the options for l2tpd ; should work. The best place to look for a list of all options is in ; the source code itself, until I have the time to write better documetation :) ; Specifically, the file "file.c" contains a list of commands at the end. ; ; You most definitely don't have to spell out everything as it is done here ; ; [global] ; Global parameters: ; port = 1701 ; * Bind to port 1701 ; auth file = /etc/l2tpd/l2tp-secrets ; * Where our challenge secrets are ; access control = yes ; * Refuse connections without IP match ; rand source = dev ; Source for entropy for random ; ; numbers, options are: ; ; dev - reads of /dev/urandom ; ; sys - uses rand() ; ; egd - reads from egd socket ; ; egd is not yet implemented [global] access control = yes [lac akado] lns = vpn.akado-ural.ru redial = yes redial timeout = 10 require chap = yes require authentication = no name = логин ppp debug = yes pppoptfile = /etc/ppp/options.xl2tpd require pap = no autodial = yes ; ; [lns default] ; Our fallthrough LNS definition ; exclusive = no ; * Only permit one tunnel per host ; ip range = 192.168.0.1-192.168.0.20; * Allocate from this IP range ; no ip range = 192.168.0.3-192.168.0.9; * Except these hosts ; ip range = 192.168.0.5 ; * But this one is okay ; ip range = lac1-lac2 ; * And anything from lac1 to lac2's IP ; lac = 192.168.1.4 - 192.168.1.8 ; * These can connect as LAC's ; no lac = untrusted.marko.net ; * This guy can't connect ; hidden bit = no ; * Use hidden AVP's? ; local ip = 192.168.1.2 ; * Our local IP to use ; length bit = yes ; * Use length bit in payload? ; require chap = yes ; * Require CHAP auth. by peer ; refuse pap = yes ; * Refuse PAP authentication ; refuse chap = no ; * Refuse CHAP authentication ; refuse authentication = no ; * Refuse authentication altogether ; require authentication = yes ; * Require peer to authenticate ; unix authentication = no ; * Use /etc/passwd for auth. ; name = myhostname ; * Report this as our hostname ; ppp debug = no ; * Turn on PPP debugging ; pppoptfile = /etc/ppp/options.l2tpd.lns; * ppp options file ; call rws = 10 ; * RWS for call (-1 is valid) ; tunnel rws = 4 ; * RWS for tunnel (must be > 0) ; flow bit = yes ; * Include sequence numbers ; challenge = yes ; * Challenge authenticate peer; ; ; [lac marko] ; Example VPN LAC definition ; lns = lns.marko.net ; * Who is our LNS? ; lns = lns2.marko.net ; * A backup LNS (not yet used) ; redial = yes ; * Redial if disconnected? ; redial timeout = 15 ; * Wait n seconds between redials ; max redials = 5 ; * Give up after n consecutive failures ; hidden bit = yes ; * User hidden AVP's? ; local ip = 192.168.1.1 ; * Force peer to use this IP for us ; remote ip = 192.168.1.2 ; * Force peer to use this as their IP ; length bit = no ; * Use length bit in payload? ; require pap = no ; * Require PAP auth. by peer ; require chap = yes ; * Require CHAP auth. by peer ; refuse pap = yes ; * Refuse PAP authentication ; refuse chap = no ; * Refuse CHAP authentication ; refuse authentication = no ; * Refuse authentication altogether ; require authentication = yes ; * Require peer to authenticate ; name = marko ; * Report this as our hostname ; ppp debug = no ; * Turn on PPP debugging ; pppoptfile = /etc/ppp/options.l2tpd.marko; * ppp options file for this lac ; call rws = 10 ; * RWS for call (-1 is valid) ; tunnel rws = 4 ; * RWS for tunnel (must be > 0) ; flow bit = yes ; * Include sequence numbers ; challenge = yes ; * Challenge authenticate peer ; ; [lac cisco] ; Another quick LAC ; lns = cisco.marko.net ; * Required, but can take from default ; require authentication = yes
cat /etc/ppp/options.xl2tpd
unit 0 name логин remotename l2tp ipparam akado connect /bin/true mru 1460 mtu 1460 nodeflate nobsdcomp persist maxfail 0 nopcomp noaccomp noauth defaultroute replacedefaultroute
cat /etc/init.d/xl2tpd
#! /bin/sh ### BEGIN INIT INFO # Provides: xl2tpd l2tpd # Required-Start: $network $syslog # Required-Stop: $network $syslog # Should-Start: ipsec # Should-Stop: ipsec # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: layer 2 tunelling protocol daemon # Description: xl2tpd is usually used in conjunction with an ipsec # daemon (such as openswan). ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/xl2tpd NAME=xl2tpd DESC=xl2tpd test -x $DAEMON || exit 0 # Include xl2tpd defaults if available if [ -f /etc/default/xl2tpd ]; then . /etc/default/xl2tpd fi PIDFILE=/var/run/$NAME.pid set -e case "$1" in # start) # echo -n "Starting $DESC: " # test -d ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} || mkdir -p ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} # start-stop-daemon --start --quiet --pidfile $PIDFILE \ # --exec $DAEMON -- $DAEMON_OPTS # echo "$NAME." start) if !([ -f /var/run/xl2tpd/l2tp-control ]); then mkdir -p /var/run/xl2tpd touch /var/run/xl2tpd/l2tp-control fi echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON echo "$NAME." ;; force-reload) test -d ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} || mkdir -p ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} # check whether $DAEMON is running. If so, restart start-stop-daemon --stop --test --quiet --pidfile \ $PIDFILE --exec $DAEMON \ && $0 restart \ || exit 0 ;; restart) test -d ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} || mkdir -p ${XL2TPD_RUN_DIR:-/var/run/xl2tpd} echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile \ $PIDFILE --exec $DAEMON sleep 1 start-stop-daemon --start --quiet --pidfile \ $PIDFILE --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0
uname -a
Linux MegaKompGi 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux
route -n
Таблица маршутизации ядра протокола IP Destination Gateway Genmask Flags Metric Ref Use Iface 217.76.183.250 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 10.1.147.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 10.0.0.0 10.1.147.3 255.0.0.0 UG 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 0.0.0.0 10.1.147.3 0.0.0.0 UG 100 0 0 eth0
Помогите пожалуйста!
Заранее благодарен!