Swappp 1 Жалоба Опубликовано: 30 июля 2008 настроил все по инструкции в syslog пишет Jul 31 03:01:29 ubuntu xl2tpd[6130]: parse_config: line 11: Unknown field 'ppp profile' Jul 31 03:01:29 ubuntu xl2tpd[6130]: init: Unable to load config file что с этим можно сделать? проверить строку 11 файла /etc/xl2tpd/xl2tpd.conf наверно там должно быть pppoptfile = /etc/ppp/options.xl2tpd Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
fo011y 0 Жалоба Опубликовано: 6 августа 2008 ни как не могу разобраться какоие адреса ставить в функцию start) route add -host gw route add -host gw route add -host gw обю воронежская 44 Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
5973785 0 Жалоба Опубликовано: 7 августа 2008 Ктонибуть под Debian Etch смог настроить? Отваливается так: Aug 7 14:14:04 bt xl2tpd[14574]: child_handler : pppd exited for call 54916 with code 1 Aug 7 14:14:04 bt xl2tpd[14574]: call_close: Call 50316 to 83.102.254.242 disconnected Aug 7 14:14:14 bt xl2tpd[14574]: control_finish: Connection closed to 83.102.254.242, port 1701 (), Local: 32334, Remote: 16666 Aug 7 14:14:14 bt xl2tpd[14574]: Untrustingly terminating pppd: sending KILL signal to pid 14596 Aug 7 14:14:14 bt xl2tpd[14574]: pppd 14596 successfully terminated Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Rosetau 0 Жалоба Опубликовано: 7 августа 2008 (изменено) подскажите пожалуйста не могу сам xl2tpd поставить при мейке вылазит в консоли cc -DDEBUG_PPPD -O2 -fno-builtin -Wall -DSANITY -DLINUX -DIP_ALLOCATION -c -o xl2tpd.o xl2tpd.cxl2tpd.c:22:20: error: stdlib.h: No such file or directory xl2tpd.c:23:23: error: sys/types.h: No such file or directory xl2tpd.c:24:25: error: sys/utsname.h: No such file or directory xl2tpd.c:25:22: error: sys/stat.h: No such file or directory xl2tpd.c:26:22: error: sys/wait.h: No such file or directory xl2tpd.c:27:19: error: stdio.h: No such file or directory xl2tpd.c:28:19: error: errno.h: No such file or directory xl2tpd.c:29:20: error: unistd.h: No such file or directory xl2tpd.c:30:18: error: time.h: No such file or directory xl2tpd.c:35:26: error: bsd/signal.h: No such file or directory xl2tpd.c:42:19: error: netdb.h: No such file or directory xl2tpd.c:43:20: error: string.h: No such file or directory xl2tpd.c:44:21: error: strings.h: No such file or directory xl2tpd.c:45:19: error: fcntl.h: No such file or directory xl2tpd.c:46:24: error: netinet/in.h: No such file or directory xl2tpd.c:47:23: error: arpa/inet.h: No such file or directory In file included from xl2tpd.c:48: l2tp.h:25:21: error: termios.h: No such file or directory In file included from l2tp.h:27, from xl2tpd.c:48: scheduler.h:18:22: error: sys/time.h: No such file or directory In file included from l2tp.h:27, from xl2tpd.c:48: scheduler.h:27: error: field ‘tv’ has incomplete type In file included from l2tp.h:28, from xl2tpd.c:48: misc.h:18:20: error: syslog.h: No such file or directory In file included from l2tp.h:28, from xl2tpd.c:48: misc.h:33: error: field ‘peer’ has incomplete type In file included from call.h:17, from l2tp.h:30, from xl2tpd.c:48: ipsecmast.h:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IPsecSAref_t’ In file included from l2tp.h:30, from xl2tpd.c:48: call.h:86: error: field ‘lastsent’ has incomplete type call.h:102: error: expected declaration specifiers or ‘...’ before ‘IPsecSAref_t’ call.h:102: error: expected declaration specifiers or ‘...’ before ‘IPsecSAref_t’ In file included from xl2tpd.c:48: l2tp.h:138: error: expected specifier-qualifier-list before ‘IPsecSAref_t’ xl2tpd.c: In function ‘init_tunnel_list’: xl2tpd.c:64: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:64: error: (Each undeclared identifier is reported only once xl2tpd.c:64: error: for each function it appears in.) xl2tpd.c: In function ‘show_status’: xl2tpd.c:81: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:120: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:120: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:120: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:120: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:121: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c:121: warning: implicit declaration of function ‘inet_ntoa’ xl2tpd.c:121: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:122: warning: implicit declaration of function ‘ntohs’ xl2tpd.c:122: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:122: error: ‘struct tunnel’ has no member named ‘control_seq_num’ xl2tpd.c:123: error: ‘struct tunnel’ has no member named ‘control_rec_seq_num’ xl2tpd.c:123: error: ‘struct tunnel’ has no member named ‘cLr’ xl2tpd.c:123: error: ‘struct tunnel’ has no member named ‘count’ xl2tpd.c:124: error: ‘struct tunnel’ has no member named ‘refme’ xl2tpd.c:124: error: ‘struct tunnel’ has no member named ‘refhim’ xl2tpd.c: In function ‘child_handler’: xl2tpd.c:194: error: ‘pid_t’ undeclared (first use in this function) xl2tpd.c:194: error: expected ‘;’ before ‘pid’ xl2tpd.c:199: error: ‘pid’ undeclared (first use in this function) xl2tpd.c:199: warning: implicit declaration of function ‘waitpid’ xl2tpd.c:199: error: ‘WNOHANG’ undeclared (first use in this function) xl2tpd.c:218: warning: implicit declaration of function ‘WIFEXITED’ xl2tpd.c:220: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c:221: warning: implicit declaration of function ‘WEXITSTATUS’ xl2tpd.c:223: warning: implicit declaration of function ‘WIFSIGNALED’ xl2tpd.c:226: warning: implicit declaration of function ‘WTERMSIG’ xl2tpd.c:241: warning: implicit declaration of function ‘close’ xl2tpd.c:247: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c: In function ‘death_handler’: xl2tpd.c:266: error: ‘LOG_CRIT’ undeclared (first use in this function) xl2tpd.c:267: error: ‘SIGTERM’ undeclared (first use in this function) xl2tpd.c:272: warning: implicit declaration of function ‘strcpy’ xl2tpd.c:272: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:273: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:274: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:275: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:276: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:279: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:280: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:287: warning: implicit declaration of function ‘unlink’ xl2tpd.c:290: warning: implicit declaration of function ‘exit’ xl2tpd.c: In function ‘start_pppd’: xl2tpd.c:308: error: storage size of ‘ptyconf’ isn’t known xl2tpd.c:313: warning: implicit declaration of function ‘strdup’ xl2tpd.c:313: warning: assignment makes pointer from integer without a cast xl2tpd.c:316: warning: implicit declaration of function ‘malloc’ xl2tpd.c:316: warning: implicit declaration of function ‘strlen’ xl2tpd.c:317: warning: implicit declaration of function ‘strncpy’ xl2tpd.c:321: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:324: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:325: error: ‘EINVAL’ undeclared (first use in this function) xl2tpd.c:385: warning: implicit declaration of function ‘tcgetattr’ xl2tpd.c:386: error: dereferencing pointer to incomplete type xl2tpd.c:387: error: ‘ICANON’ undeclared (first use in this function) xl2tpd.c:387: error: ‘ECHO’ undeclared (first use in this function) xl2tpd.c:389: warning: implicit declaration of function ‘tcsetattr’ xl2tpd.c:389: error: ‘TCSANOW’ undeclared (first use in this function) xl2tpd.c:390: warning: implicit declaration of function ‘fcntl’ xl2tpd.c:390: error: ‘F_SETFL’ undeclared (first use in this function) xl2tpd.c:390: error: ‘O_NONBLOCK’ undeclared (first use in this function) xl2tpd.c:391: warning: implicit declaration of function ‘strerror’ xl2tpd.c:391: error: ‘errno’ undeclared (first use in this function) xl2tpd.c:395: warning: implicit declaration of function ‘open’ xl2tpd.c:395: error: ‘O_RDWR’ undeclared (first use in this function) xl2tpd.c:400: warning: assignment makes pointer from integer without a cast xl2tpd.c:405: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c:414: warning: implicit declaration of function ‘fork’ xl2tpd.c:436: warning: implicit declaration of function ‘dup2’ xl2tpd.c:461: warning: implicit declaration of function ‘setenv’ xl2tpd.c:463: warning: implicit declaration of function ‘execv’ xl2tpd.c:465: warning: implicit declaration of function ‘_exit’ xl2tpd.c:471: warning: implicit declaration of function ‘free’ xl2tpd.c:308: warning: unused variable ‘ptyconf’ xl2tpd.c: In function ‘destroy_tunnel’: xl2tpd.c:488: error: storage size of ‘tv’ isn’t known xl2tpd.c:499: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:533: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:543: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:545: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:545: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:546: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:546: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:546: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:547: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:549: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:550: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:551: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:553: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:553: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:553: error: type of formal parameter 1 is incomplete xl2tpd.c:559: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:560: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:561: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:562: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:563: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:564: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:567: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:568: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:488: warning: unused variable ‘tv’ xl2tpd.c: In function ‘l2tp_call’: xl2tpd.c:580: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:583: warning: implicit declaration of function ‘htons’ xl2tpd.c:584: warning: implicit declaration of function ‘gethostbyname’ xl2tpd.c:584: warning: assignment makes pointer from integer without a cast xl2tpd.c:587: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:591: warning: implicit declaration of function ‘bcopy’ xl2tpd.c:591: error: dereferencing pointer to incomplete type xl2tpd.c:591: error: dereferencing pointer to incomplete type xl2tpd.c:599: error: ‘IPsecSAref_t’ undeclared (first use in this function) xl2tpd.c:599: error: expected ‘)’ before numeric constant xl2tpd.c:599: error: expected ‘)’ before numeric constant xl2tpd.c:599: error: too many arguments to function ‘get_call’ xl2tpd.c:607: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:608: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:618: error: ‘LOG_NOTICE’ undeclared (first use in this function) xl2tpd.c: In function ‘magic_lac_tunnel’: xl2tpd.c:630: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:637: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c: In function ‘lac_call’: xl2tpd.c:659: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c:664: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:666: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:670: error: ‘struct tunnel’ has no member named ‘count’ xl2tpd.c:676: error: ‘LOG_NOTICE’ undeclared (first use in this function) xl2tpd.c:683: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c: In function ‘magic_lac_dial’: xl2tpd.c:694: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c:697: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:701: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:706: error: ‘LOG_WARNING’ undeclared (first use in this function) xl2tpd.c:717: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c: In function ‘lac_hangup’: xl2tpd.c:731: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:736: warning: implicit declaration of function ‘kill’ xl2tpd.c:736: error: ‘SIGTERM’ undeclared (first use in this function) xl2tpd.c:743: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c: In function ‘lac_disconnect’: xl2tpd.c:752: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c:754: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:756: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:756: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c:757: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:758: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:759: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:764: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c: In function ‘new_tunnel’: xl2tpd.c:770: warning: initialization makes pointer from integer without a cast xl2tpd.c:773: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:774: error: ‘struct tunnel’ has no member named ‘control_seq_num’ xl2tpd.c:775: error: ‘struct tunnel’ has no member named ‘control_rec_seq_num’ xl2tpd.c:776: error: ‘struct tunnel’ has no member named ‘cLr’ xl2tpd.c:779: error: ‘struct tunnel’ has no member named ‘debug’ xl2tpd.c:790: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c:799: error: ‘struct tunnel’ has no member named ‘nego’ xl2tpd.c:800: error: ‘struct tunnel’ has no member named ‘count’ xl2tpd.c:801: error: ‘struct tunnel’ has no member named ‘state’ xl2tpd.c:802: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:802: error: ‘AF_INET’ undeclared (first use in this function) xl2tpd.c:803: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:804: warning: implicit declaration of function ‘bzero’ xl2tpd.c:804: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:804: error: ‘struct tunnel’ has no member named ‘peer’ xl2tpd.c:806: error: ‘struct tunnel’ has no member named ‘sanity’ xl2tpd.c:808: error: ‘struct tunnel’ has no member named ‘qtid’ xl2tpd.c:811: warning: implicit declaration of function ‘rand’ xl2tpd.c:814: error: ‘struct tunnel’ has no member named ‘hostname’ xl2tpd.c:815: error: ‘struct tunnel’ has no member named ‘vendor’ xl2tpd.c:816: error: ‘struct tunnel’ has no member named ‘secret’ xl2tpd.c:817: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:822: error: ‘struct tunnel’ has no member named ‘ourrws’ xl2tpd.c:823: error: ‘struct tunnel’ has no member named ‘self’ xl2tpd.c:824: error: ‘struct tunnel’ has no member named ‘lac’ xl2tpd.c:825: error: ‘struct tunnel’ has no member named ‘lns’ xl2tpd.c:826: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:827: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:828: warning: implicit declaration of function ‘memset’ xl2tpd.c:828: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:829: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:830: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c:831: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:832: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:833: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:834: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:835: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:836: error: ‘struct tunnel’ has no member named ‘chal_them’ xl2tpd.c:837: error: ‘struct tunnel’ has no member named ‘chal_us’ xl2tpd.c: In function ‘do_control’: xl2tpd.c:849: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:864: warning: implicit declaration of function ‘read’ xl2tpd.c:867: error: ‘errno’ undeclared (first use in this function) xl2tpd.c:867: error: ‘EINTR’ undeclared (first use in this function) xl2tpd.c:868: warning: implicit declaration of function ‘perror’ xl2tpd.c:883: warning: implicit declaration of function ‘strchr’ xl2tpd.c:883: warning: assignment makes pointer from integer without a cast xl2tpd.c:893: warning: implicit declaration of function ‘strtok’ xl2tpd.c:893: warning: assignment makes pointer from integer without a cast xl2tpd.c:894: warning: assignment makes pointer from integer without a cast xl2tpd.c:895: warning: assignment makes pointer from integer without a cast xl2tpd.c:898: warning: implicit declaration of function ‘strcasecmp’ xl2tpd.c:913: error: ‘LOG_DEBUG’ undeclared (first use in this function) xl2tpd.c:920: warning: implicit declaration of function ‘atoi’ xl2tpd.c:936: warning: assignment makes pointer from integer without a cast xl2tpd.c:937: warning: assignment makes pointer from integer without a cast xl2tpd.c:938: warning: assignment makes pointer from integer without a cast xl2tpd.c:973: warning: assignment makes pointer from integer without a cast xl2tpd.c:983: warning: assignment makes pointer from integer without a cast xl2tpd.c:992: error: ‘struct tunnel’ has no member named ‘ourtid’ xl2tpd.c: In function ‘usage’: xl2tpd.c:1030: warning: implicit declaration of function ‘printf’ xl2tpd.c: In function ‘init_args’: xl2tpd.c:1062: warning: implicit declaration of function ‘strncmp’ xl2tpd.c: In function ‘daemonize’: xl2tpd.c:1111: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:1119: error: ‘O_RDWR’ undeclared (first use in this function) xl2tpd.c: In function ‘consider_pidfile’: xl2tpd.c:1137: error: ‘O_RDONLY’ undeclared (first use in this function) xl2tpd.c:1154: warning: implicit declaration of function ‘getpid’ xl2tpd.c:1156: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:1164: warning: implicit declaration of function ‘setsid’ xl2tpd.c:1167: error: ‘O_WRONLY’ undeclared (first use in this function) xl2tpd.c:1167: error: ‘O_CREAT’ undeclared (first use in this function) xl2tpd.c:1168: warning: implicit declaration of function ‘snprintf’ xl2tpd.c:1169: warning: implicit declaration of function ‘write’ xl2tpd.c: In function ‘open_controlfd’: xl2tpd.c:1176: error: ‘O_RDONLY’ undeclared (first use in this function) xl2tpd.c:1176: error: ‘O_NONBLOCK’ undeclared (first use in this function) xl2tpd.c:1179: error: ‘LOG_CRIT’ undeclared (first use in this function) xl2tpd.c:1185: error: ‘F_SETFL’ undeclared (first use in this function) xl2tpd.c:1187: error: ‘errno’ undeclared (first use in this function) xl2tpd.c: In function ‘init’: xl2tpd.c:1195: error: storage size of ‘listenaddr’ isn’t known xl2tpd.c:1196: error: storage size of ‘uts’ isn’t known xl2tpd.c:1199: warning: implicit declaration of function ‘srand’ xl2tpd.c:1199: warning: implicit declaration of function ‘time’ xl2tpd.c:1199: error: ‘NULL’ undeclared (first use in this function) xl2tpd.c:1204: error: ‘LOG_CRIT’ undeclared (first use in this function) xl2tpd.c:1207: warning: implicit declaration of function ‘uname’ xl2tpd.c:1222: warning: implicit declaration of function ‘signal’ xl2tpd.c:1222: error: ‘SIGTERM’ undeclared (first use in this function) xl2tpd.c:1223: error: ‘SIGINT’ undeclared (first use in this function) xl2tpd.c:1224: error: ‘SIGCHLD’ undeclared (first use in this function) xl2tpd.c:1225: error: ‘SIGUSR1’ undeclared (first use in this function) xl2tpd.c:1226: error: ‘SIGHUP’ undeclared (first use in this function) xl2tpd.c:1230: warning: implicit declaration of function ‘mkfifo’ xl2tpd.c:1234: error: ‘LOG_INFO’ undeclared (first use in this function) xl2tpd.c:1196: warning: unused variable ‘uts’ xl2tpd.c:1195: warning: unused variable ‘listenaddr’ xl2tpd.c: In function ‘main’: xl2tpd.c:1264: warning: implicit declaration of function ‘calloc’ xl2tpd.c:1264: warning: assignment makes pointer from integer without a cast make: *** [xl2tpd.o] Error 1 что это значит? чистый тока что поставленный 8.04 Изменено 7 августа 2008 пользователем Rosetau Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Swappp 1 Жалоба Опубликовано: 7 августа 2008 Rosetau, Хеадеров нет. чистый тока что поставленный 8.04 Это же убуната? А почему бы не взять xl2tpd из его репозитария? 5973785, Aug 7 14:14:04 bt xl2tpd[14574]: child_handler : pppd exited for call 54916 with code 1Aug 7 14:14:04 bt xl2tpd[14574]: call_close: Call 50316 to 83.102.254.242 disconnected Aug 7 14:14:14 bt xl2tpd[14574]: control_finish: Connection closed to 83.102.254.242, port 1701 (), Local: 32334, Remote: 16666 Aug 7 14:14:14 bt xl2tpd[14574]: Untrustingly terminating pppd: sending KILL signal to pid 14596 Aug 7 14:14:14 bt xl2tpd[14574]: pppd 14596 successfully terminated Показывай /var/log/syslog, там будут сообщения от pppd. А вообще добавь строку noauth в options.xl2tpd. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Rosetau 0 Жалоба Опубликовано: 7 августа 2008 Это же убуната? А почему бы не взять xl2tpd из его репозитария? я немного нуб в источниках приложений стоит "сд/двд убунты 8.04" но sudo apt-get install xl2tpd "не найден" Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
5973785 0 Жалоба Опубликовано: 7 августа 2008 (изменено) 5973785, Показывай /var/log/syslog, там будут сообщения от pppd. А вообще добавь строку noauth в options.xl2tpd. Запустилось... тока одно но bt:~# ps aux | grep xl2tpd root 27774 37.0 0.0 1800 764 pts/1 Ss+ 16:44 2:00 /usr/sbin/xl2tpd root 27840 0.0 0.0 2728 1112 pts/1 S+ 16:46 0:00 /usr/sbin/pppd passive -detach : name ***** debug file /etc/ppp/options.xl2tpd /dev/pts/1 это нормально? Изменено 7 августа 2008 пользователем 5973785 Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Swappp 1 Жалоба Опубликовано: 7 августа 2008 (изменено) 5973785, А интернет работает? Если нет, то не прописан маршрут до tp.corbina.net и xl2tpd гоняет свои же пакеты через ppp0, в итоге там получается страшная рекурсия Rosetau, я немного нубв источниках приложений стоит "сд/двд убунты 8.04" но sudo apt-get install xl2tpd "не найден" Прописывай удаленный репозитарий, например зеркало корбины: Официальные зеркала на mirror.corbina.net Изменено 7 августа 2008 пользователем Swappp Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
5973785 0 Жалоба Опубликовано: 7 августа 2008 5973785, А интернет работает? Если нет, то не прописан маршрут до tp.corbina.net и xl2tpd гоняет свои же пакеты через ppp0, в итоге там получается страшная рекурсия Прописан, инет работает... Маршруты прописывать смысла вообще не вижу ибо после запуска всё ровно будет дефолтный шлюз тот что прописан в /etc/network/interfaces и при падении ppp0 он опять станет дефолтным... Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Гость _Vetal_ Жалоба Опубликовано: 10 августа 2008 (изменено) Всем здрасьте. Наверное я совсем ламер раз согласно первому посту даже не смог распаковать указанной командой, но даже если архив распаковать через "extract here" всё равно нифига не компилится( Установка пакета другим способом ( sudo apt-get install xl2tpd и следование дальнейшим указаниям из первого поста не дало желаемого результата, ppp0 интерфейса так и не появилось). Зато помогла вот эта инструкция Автоматический l2tp / xl2tpd Но вопрос в другом, в лог пишет Aug 10 14:43:51 vetal-desktop xl2tpd[5359]: This binary does not support kernel L2TP. Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: xl2tpd version xl2tpd-1.1.12 started on vetal-desktop PID:5395 Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Forked by Scott Balmos and David Stipp, (C) 2001 Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Inherited by Jeff McAdams, (C) 2002 Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Forked again by Xelerance (www.xelerance.com) (C) 2006 Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Listening on IP address 0.0.0.0, port 1701 Aug 10 14:43:51 vetal-desktop xl2tpd[5395]: Host name lookup failed for tp.corbina.net. И интерфейс появляется только после sudo /etc/init.d/xl2tpd stop sudo /etc/init.d/xl2tpd start Чуть ниже Автоматический l2tp / xl2tpd была похожая проблема, но предложенное там решение не помогло( Изменено 10 августа 2008 пользователем _Vetal_ Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Mad Deer 0 Жалоба Опубликовано: 10 августа 2008 (изменено) прЮвет уважаемые решил попробовать l2tp. вроде всё работает, но есть одна проблема. судя по логам, после успешного подключения ppp0, lx2tpd не останавливается, а продолжает пытаться подключится уже как ppp1. мне от этого проблем никаких, но всё же не хотелось бы потом поиметь проблем с самой корбиной кто-нибудь знает в чём может быть дело? Изменено 10 августа 2008 пользователем Mad Deer Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Don1172005 0 Жалоба Опубликовано: 10 августа 2008 (изменено) Помогите настроить плз Ничего не получаеться. Напишите что вам нужно предоставить для того что бы вы поняли в чем проблема. Ubuntu 8.04 Hardy ___________________________________________UPDATE_________________________ Это то что мне пишет на ifconfig. eth0 Link encap:Ethernet HWaddr 00:60:97:1b:d0:d1 inet addr:10.153.100.188 Bcast:10.153.103.255 Mask:255.255.248.0 inet6 addr: fe80::260:97ff:fe1b:d0d1/64 Диапазон:Ссылка ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5487 errors:0 dropped:0 overruns:0 frame:0 TX packets:2184 errors:0 dropped:0 overruns:0 carrier:4 коллизии:47 txqueuelen:1000 RX bytes:2938728 (2.8 MB) TX bytes:365326 (356.7 KB) Прервано:17 Base address:0xbc00 eth1 Link encap:Ethernet HWaddr 00:11:d8:b8:f0:61 inet6 addr: fe80::211:d8ff:feb8:f061/64 Диапазон:Ссылка ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:1000 RX bytes:0 (0.0 TX bytes:5771 (5.6 KB) Прервано:17 eth1:avahi Link encap:Ethernet HWaddr 00:11:d8:b8:f0:61 inet addr:169.254.9.143 Bcast:169.254.255.255 Mask:255.255.0.0 ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Прервано:17 lo Link encap:Локальная петля (Loopback) inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Диапазон:Узел ВВЕРХ LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1192 errors:0 dropped:0 overruns:0 frame:0 TX packets:1192 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:0 RX bytes:59600 (58.2 KB) TX bytes:59600 (58.2 KB) ppp0 Link encap:Протокол PPP (Point-to-Point Protocol) inet addr:89.178.11.173 P-t-P:85.21.0.2 Mask:255.255.255.255 ВВЕРХ POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1 RX packets:2135 errors:0 dropped:0 overruns:0 frame:0 TX packets:1727 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:3 RX bytes:2364950 (2.2 MB) TX bytes:228783 (223.4 KB) Это значит что xl2tpd работает??? Изменено 10 августа 2008 пользователем Don1172005 Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Mad Deer 0 Жалоба Опубликовано: 10 августа 2008 Don1172005, очень похоже что да. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Don1172005 0 Жалоба Опубликовано: 10 августа 2008 (изменено) Mad Deer, ясно, хотя странно на Винде сайты шустрее открываються чем на Убунте. А на смайлик среди конфига не сморите это тама наверное B )= Изменено 10 августа 2008 пользователем Don1172005 Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Mad Deer 0 Жалоба Опубликовано: 10 августа 2008 ppp0 Link encap:Протокол PPP (Point-to-Point Protocol) inet addr:89.178.11.173 P-t-P:85.21.0.2 Mask:255.255.255.255 означает что соединение есть, тем более что сайты открываются. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Mad Deer 0 Жалоба Опубликовано: 11 августа 2008 и всётаки, кто знает как быть когда l2tp продолжает ломитья в инет при том что инет уже есть. методом тыка выяснил что на промежутки между этими попытками влияет holdoff в опциях pppd. пока выставил её в 100 так часто уже не ломится. но всё равно не нравится это мне. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Don1172005 0 Жалоба Опубликовано: 17 августа 2008 и всётаки, кто знает как быть когда l2tp продолжает ломитья в инет при том что инет уже есть. методом тыка выяснил что на промежутки между этими попытками влияет holdoff в опциях pppd. пока выставил её в 100 так часто уже не ломится. но всё равно не нравится это мне. У тебя как обстоят дела с сетевыми картмаи??? Мб если стоят 2 сетевых карты, то о пытаеться подключиться еще и к ней??? Если стоит 2, то попробу изменить настройки второй карты, я с подобным на винде сталкивался ток с обычным подключением, у меня 2 компа на второй комп инет идет через первый. И после какого то глюка, вторая карта изменила на стройки и после подключения к инету, он автоматом ломился и на второй, просто переустановил дрова, и поменял настройки Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Mad Deer 0 Жалоба Опубликовано: 17 августа 2008 (изменено) Don1172005, у меня и правда 2 сетевухи. вторая инет раздаёт для второго компа. только всех настроек: config_eth1=( "192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255" ) чего там менять? дрова в ядро встроеные. странный он (l2tpd) к тому же иногда он всёже получает ip хотя сразу отваливается. Изменено 17 августа 2008 пользователем Mad Deer Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Dbd 0 Жалоба Опубликовано: 19 августа 2008 (изменено) сделал по http://help.corbina.net/internet/install/linux/ не работает ошибка /etc/init.d/xl2tpd: 34: Syntax error: ";;" unexpected (expecting "fi") содержимое /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 set -e case $1 in 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." route add -host 85.21.0.253 gw 10.183.48.1 route add -host 213.234.192.8 gw 10.183.48.1 route add -host 85.21.192.3 gw 10.183.48.1 ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/.pid --exec $DAEMON echo "done." ;; force-reload) # check whether $DAEMON is running. If so, restart start-stop-daemon --stop --test --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON && $0 restart || exit 0 ;; restart) echo "Restarting $DESC..." $0 stop sleep 2 $0 start ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 host tp.corbina.net tp.corbina.net is an alias for view106.viewdns.corbina.net. view106.viewdns.corbina.net has address 85.21.0.253 route -n Таблица маршутизации ядра протокола IP Destination Gateway Genmask Flags Metric Ref Use Iface 10.183.48.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 10.183.48.1 0.0.0.0 UG 100 0 0 eth0 cat /etc/resolv.conf nameserver 213.234.192.8 nameserver 85.21.192.3 Дистрибутив - ХUbuntu 8.04.1 /etc/xl2tpd/xl2tpd.conf [global] access control = yes [lac corbina] lns = l2tp.corbina.net redial = yes redial timeout = 1 require chap = yes require authentication = no name = leopold ppp debug = yes ppp profile = /etc/ppp/options.xl2tpd require pap = no autodial = yes /etc/ppp/options.xl2tpd unit 0 name leopold remotename l2tp ipparam corbina connect /bin/true mru 1460 mtu 1460 nodeflate nobsdcomp persist maxfail 0 nopcomp noaccomp defaultroute replacedefaultroute Изменено 19 августа 2008 пользователем Dbd Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Paul2106 0 Жалоба Опубликовано: 20 августа 2008 у меня такая же ошибка. кто настраивал по этой инструкции? помогите, пожалуйста Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Pentium02 0 Жалоба Опубликовано: 1 сентября 2008 (изменено) У меня странности какие-то с xl2tpd. Есть сервер, раздаёт инет в домашнию локалку. Стоял на нём Debian lenny юзал я xl2tpd, вся было норм. Тут недавно переставил систему, и хоп, скорость инета почему-то в 2 раза ниже, версии пакетов те же, конфиги тоже. Грешил на корбину, воткнул корбиновскую витуху в комп с виндой, скорость нормальная, по тарифу, втыкаю в сервер, в два раза ниже. Не пойму что это. Точно не роуты, сбросил все роуты прописал только до vpn сервера - тоже самое. /etc/xl2tpd/xl2tpd.conf [global] access control = yes [lac corbina] lns = 83.102.254.251 redial = yes redial timeout = 15 require chap = yes require authentication = no name = pentium02 ppp debug = no pppoptfile = /etc/ppp/options.xl2tpd require pap = no refuse pap = yes refuse authentication = no autodial = yes /etc/ppp/options.xl2tpd unit 0 name pentium02 remotename l2tp ipparam corbina connect /bin/true #mru 1460 #mtu 1460 noauth nodeflate nobsdcomp noproxyarp persist maxfail 0 idle 0 nopcomp noaccomp defaultroute #mru 1460 #mtu 1460 Закоментированы т.к. он сам выставляет 1464, раскоментировать пробовал всё равно тоже самое Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 85.21.88.130 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.251 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.251 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 83.102.254.235 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.234 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 195.14.50.16 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.249 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.248 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 85.21.52.254 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.255 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.239 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.254 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.238 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 195.14.50.20 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 195.14.50.21 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.236 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.243 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 89.179.135.67 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.242 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 213.234.192.8 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.241 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.240 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 85.21.78.46 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.247 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 195.14.50.93 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.246 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 85.21.79.5 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.245 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 83.102.254.244 10.121.0.17 255.255.255.255 UGH 0 0 0 eth0 195.14.50.26 10.121.0.17 255.255.255.254 UG 0 0 0 eth0 83.102.255.128 10.121.0.17 255.255.255.240 UG 0 0 0 eth0 85.21.72.80 10.121.0.17 255.255.255.240 UG 0 0 0 eth0 83.102.255.224 10.121.0.17 255.255.255.240 UG 0 0 0 eth0 85.21.138.208 10.121.0.17 255.255.255.240 UG 0 0 0 eth0 89.179.117.64 10.121.0.17 255.255.255.240 UG 0 0 0 eth0 83.102.146.96 10.121.0.17 255.255.255.224 UG 0 0 0 eth0 233.32.210.0 10.121.10.1 255.255.255.0 UG 0 0 0 eth0 233.32.240.0 10.121.10.1 255.255.255.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 85.21.90.0 10.121.0.17 255.255.255.0 UG 0 0 0 eth0 78.107.23.0 10.121.0.17 255.255.255.0 UG 0 0 0 eth0 85.21.79.0 10.121.0.17 255.255.255.0 UG 0 0 0 eth0 10.121.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 10.0.0.0 10.121.0.17 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 </P><P>pppd version 2.4.4</P><P> </P><P>xl2tpd version: xl2tpd-1.2.0 # пробовал 1.1.2 таж фигня</P><P> Не знаю куда копать тфу блин, это бы баг винды netsh winsock reset и всё стало нормально Изменено 1 сентября 2008 пользователем Pentium02 Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Vronsky 0 Жалоба Опубликовано: 2 сентября 2008 (изменено) А где прописывается старт pppd? У меня Sep 2 01:12:15 Vronskie xl2tpd[4108]: This binary does not support kernel L2TP. Sep 2 01:12:15 Vronskie xl2tpd[4109]: xl2tpd version xl2tpd-1.1.12 started on Vronskie PID:4109 Sep 2 01:12:15 Vronskie xl2tpd[4109]: Written by Mark Spencer, Copyright © 1998, Adtran, Inc. Sep 2 01:12:15 Vronskie xl2tpd[4109]: Forked by Scott Balmos and David Stipp, © 2001 Sep 2 01:12:15 Vronskie xl2tpd[4109]: Inherited by Jeff McAdams, © 2002 Sep 2 01:12:15 Vronskie xl2tpd[4109]: Forked again by Xelerance (www.xelerance.com) © 2006 Sep 2 01:12:15 Vronskie xl2tpd[4109]: Listening on IP address 0.0.0.0, port 1701 и не одного упоминания о pppd. # pppd --version pppd version 2.4.4 # ifconfig eth0 Link encap:Ethernet HWaddr 00:D0:B7:B0:29:BA inet addr:10.82.26.246 Bcast:10.82.31.255 Mask:255.255.248.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17443 errors:0 dropped:0 overruns:0 frame:0 TX packets:2687 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2549444 (2.4 Mb) TX bytes:662206 (646.6 Kb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:438 errors:0 dropped:0 overruns:0 frame:0 TX packets:438 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:31564 (30.8 Kb) TX bytes:31564 (30.8 Kb) И ещё я снёс пакет pptp, может не правильно? Изменено 2 сентября 2008 пользователем Vronsky Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
Zombieff 0 Жалоба Опубликовано: 2 октября 2008 (изменено) Похожая проблема, в Debian lenny/sid инет настраивается через раз. То есть по этой инструкции, но может работать, может нет. Раньше настраивал всё точно так же - работало, а сейчас вот: $ sudo xl2tpd -D xl2tpd[3732]: setsockopt recvref: Protocol not available xl2tpd[3732]: L2TP kernel support not detected. xl2tpd[3732]: xl2tpd version xl2tpd-1.2.0 started on cerebron PID:3732 xl2tpd[3732]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. xl2tpd[3732]: Forked by Scott Balmos and David Stipp, (C) 2001 xl2tpd[3732]: Inherited by Jeff McAdams, (C) 2002 xl2tpd[3732]: Forked again by Xelerance (www.xelerance.com) (C) 2006 xl2tpd[3732]: Listening on IP address 0.0.0.0, port 1701 В /var/log/messages ни слова об этом, ppp0 в списке сетевых интерфейсов не появляется, инет не пашет. UPD: Пакет ppp установлен, а pppd в системе нету. Это как? 0_о Переустанавливать пакет пробовал - не помогает. До этого ставил систему с того же диска - всё было нормально. UPD 2: Оказывается, система криво стала на диск. Проблемы и с другими пакетами были. Теперь всё работает. Изменено 3 октября 2008 пользователем Zombieff Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
kenny89 0 Жалоба Опубликовано: 8 октября 2008 Нэт запускается только спусты минуту после загрузки системы и то, если ничего не трогать. В чём может быть проблема? Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
berger_kostya 0 Жалоба Опубликовано: 12 октября 2008 Автору исходного поста: А как вам удаётся заставить его работать с модулем ядра? У меня вроде и модули соответствующие присутствуют, да почему-то не грузятся. Скомпилировался нормально, но работать с ними не хочет!! Так-то без модулей всё пашет норамльно. У меня OpenSuSe11 kernel 2.6.25.16-0.1-pae из дистрибутива Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
berger_kostya 0 Жалоба Опубликовано: 12 октября 2008 (изменено) Автору исходного поста: А как вам удаётся заставить его работать с модулем ядра? У меня вроде и модули соответствующие присутствуют, да почему-то не грузятся. Скомпилировался нормально, но работать с ними не хочет!! Так-то без модулей всё пашет норамльно. У меня OpenSuSe11 kernel 2.6.25.16-0.1-pae из дистрибутива Отвечаю сам себе (и кому еще интересно): для работы с модулем ядра необходим пакет openl2tp, а точнее, плагин openl2tp.so для загрузки модуля ядра pppol2tp.ko. Этот пакет, в добавок к демону openl2tp компилирует динамическую библиотеку (плагин) pppol2tp.so(исправлено по подсказке), которую потом использует демон pppd для загрузки модуля ядра. После того, как мы скомпилировали и установили openl2tp (а для этого нам понадобились также пакеты readline-devel и pppd-devel), мы компилируем xl2tpd с раскомментированным флагом -DUSE_KERNEL в Мейкфайле и устанавливаем командой sudo make install. После этого просто перезапускаем xl2tpd и всё, вроде бы, работает. ЗЫ:Пока что я испробовал этот фокус с ядром 2.6.22.18-0.2, в которое еще пока не включен модуль pppol2tp.ko Поэтому я сначала пропатчил исходники ядра в каталоге /lib/modules/`uname -r`/source, затем перекомпилировал всё ядро (ведь в старом ядре не была предусмотрена поддержка нужного модуля, и при этом патч изменил также файлы заголовков), включив компиляцию нового модуля. После этого ещё пришлось скопировать файлы заголовков if_pppox.h, if_pppol2tp.h и if_ppp.h из /lib/modules/`uname -r`/source/include/linux в /usr/include/linux, а иначе xl2tpd не компилируется с поддержкой модуля ядра -- ведь в этом случае она ссылается на файлы заголовков, которые появляются только в пропатченном ядре. Работает , вроде бы, норамально, но подключается несколько дольше. Не сразу удается залогиниться -- причины мне неизвестны. Кстати, советую всем, кто многократно постит похожие вопросы, при запуске xl2tpd одновременно открывать дополнительную консоль с sudo tail -f /var/log/messages, чтобы вживую видеть процесс подключения. Изменено 12 октября 2008 пользователем berger_kostya Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
BuHTOKPbIJI 0 Жалоба Опубликовано: 12 октября 2008 (изменено) Автору исходного поста: А как вам удаётся заставить его работать с модулем ядра? У меня вроде и модули соответствующие присутствуют, да почему-то не грузятся. Скомпилировался нормально, но работать с ними не хочет!! Перед запуском демона нужно делать modprobe pppol2tp Также в /usr/lib/pppd/2.4.4 должен быть "плагин" pppol2tp.so В таком виде и работает. UPD: Отвечаю сам себе (и кому еще интересно): Опередил на 3 минуты :-) Изменено 12 октября 2008 пользователем BuHTOKPbIJI Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
berger_kostya 0 Жалоба Опубликовано: 12 октября 2008 Перед запуском демона нужно делать modprobe pppol2tp Также в /usr/lib/pppd/2.4.4 должен быть "плагин" pppol2tp.so В таком виде и работает. Спасибо! Я уже догнал про плагин. А modprobe нагло отвечал мне, что дескать такой модуль "not found" -- и это даже при указании полного пути к нему. Только insmod оказывал желательное действие. Попробую сейчас перезагрузиться в систему с ядром 2.6.25 и заставить работать. Там-то все фукции уже включены, надо будет только плагин скомпилировать. ........................... А вот интересно: openl2tp будет работать вместо xl2tpd? Надо будет попробовать. Спасибо! Я уже догнал про плагин.А modprobe нагло отвечал мне, что дескать такой модуль "not found" -- и это даже при указании полного пути к нему. Только insmod оказывал желательное действие. Попробую сейчас перезагрузиться в систему с ядром 2.6.25 и заставить работать. Там-то все фукции уже включены, надо будет только плагин скомпилировать. ........................... А вот интересно: openl2tp будет работать вместо xl2tpd? Надо будет попробовать. Работает! Но геморроя с настройкой для автоматической работы, похоже, будет достаточно! Да и вообще, непонятно, как и почему он работает-то. Похоже, берёт настройки из chap-secrets! ...Но ведь они там на Katalix пишут, что это очень крутая прога и тд. Уж как такой крутой прогой не воспользоваться! В общем, о результатах сообщу в своё время. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
BuHTOKPbIJI 0 Жалоба Опубликовано: 12 октября 2008 ...Но ведь они там на Katalix пишут, что это очень крутая прога и тд. Ну, это очень крутое серверное решение, использовать его в качестве клиента imho неоправданно. Слишком "наворочен" :-). У меня как клиент работал неплохо - только для автоматической работы пришлось писать весьма немаленький скриптовый "обвес" :-). В конечном итоге отказался от него в пользу xl2tpd - из-за его простоты. Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах
berger_kostya 0 Жалоба Опубликовано: 12 октября 2008 (изменено) Ну да. Но у меня гигантомания, да к тому же прельстился сильным выражением "enterprise quality". Против этого не попрёшь, известное дело... А впрочем, работает классно. Для автоматического запуска понадобилось лишь: /etc/openl2tpd.conf ppp profile create profile_name=corbina mtu=1460 mru=1460 auth_eap=no auth_mschapv1=no auth_mschapv2=no # system system modify \ deny_remote_tunnel_creates=yes # заставляет работать только в качестве клиента # peer profiles # tunnel profiles tunnel profile create profile_name=corbina # session profiles # ppp profiles # locally created tunnels and sessions tunnel create tunnel_name=corbina dest_ipaddr=85.21.0.253 persist=yes session create tunnel_name=corbina session_name=corbina \ user_name=<myusername> user_password=<mypass> Да еще прописать в ip-up.local замену маршрутов по умолчанию, но всё же не такую навороченную, как в посте для RedHat: (исправлено!!!) if [ -n "$(ps -A | grep ''openl2tpd')" ]; then # это на случай, если захочется использовать xl2tpd :-) /sbin/route add default ppp0 /sbin/route del default eth2 fi Ну и наконец, вот сценарий запуска, тоже проще простого: /etc/init.d/openl2tpd #! /bin/sh (опуская ненужные вступления!!!) ... L2TPD_BIN=/usr/sbin/openl2tpd test -x $L2TPD_BIN >/dev/null 2>&1 || exit 5 . /etc/rc.status # First reset status of this service rc_reset case "$1" in start) echo -n "Starting L2TPD" modprobe -s pppol2tp killall -q pppd startproc $L2TPD_BIN #/sbin/route add -host 85.21.0.253 gw 10.153.56.1 #прошу заметить, что вся эта дребедень здесь #/sbin/route add -host 213.234.192.8 gw 10.153.56.1 #не понадобилась!!!:-) #/sbin/route add -host 85.21.192.3 gw 10.153.56.1 # # Remember status and be verbose rc_status -v ;; stop) echo -n "Shutting down L2TPD" ## Stop daemon with killproc(8) and if this fails ## set echo the echo return value. killproc -TERM $L2TPD_BIN # Remember status and be verbose rc_status -v ;; try-restart) ## Stop the service and if this succeeds (i.e. the ## service was running before), start it again. ## Note: try-restart is not (yet) part of LSB (as of 0.7.5) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi # Remember status and be quiet rc_status ;; restart) ## Stop the service and regardless of whether it was ## running or not, start it again. $0 stop sleep 6 $0 start # Remember status and be quiet rc_status ;; force-reload) ## Signal the daemon to reload its config. Most daemons ## do this on signal 1 (SIGHUP). ## If it does not support it, restart. echo -n "Reload service L2TPD" ## if it supports it: killproc -HUP $L2TPD_BIN #touch /var/run/l2tpd.pid rc_status -v ## Otherwise: #$0 stop && $0 start #rc_status ;; reload) ## Like force-reload, but if daemon does not support ## signalling, do nothing (!) # If it supports signalling: echo -n "Reload service L2TPD" killproc -HUP $L2TPD_BIN #touch /var/run/l2tpd.pid rc_status -v ;; status) echo -n "Checking for service L2TPD: " checkproc $L2TPD_BIN rc_status -v ;; probe) ## Optional: Probe for the necessity of a reload, ## print out the argument which is required for a reload. test /etc/openl2tpd.conf -nt /var/run/openl2tpd.pid && echo reload ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; esac rc_exit В системах на основе RH или Debian сценарий будет отличаться в деталях. Изменено 22 октября 2008 пользователем berger_kostya Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах