Перейти к содержимому
Калькуляторы

muchacho

Пользователи
  • Публикации

    62
  • Зарегистрирован

  • Посещение

О muchacho

  • Звание
    Абитуриент
    Абитуриент

Контакты

  • ICQ
    Array

Информация

  • Пол
    Array

Посетители профиля

1442 просмотра профиля
  1. Дело не в передаче пароля. Дело в том, что accel-cmd в моём случае вобще нормально не отрабатывает, с пайпом, без пайпа - разницы нет. netcat хотябы без пайпа отрабатывает нормально. И я не могу понять в чём дело, единственное что я смог нарыть это сообщение connection reset by peer.
  2. не думаю что в этом дело. Пробовал очищать iptables полностью - всё тоже самое.
  3. А как передать пароль без пайпа? netcat без пайпа отрабатывает отлично. accel-cmd c пайпом показывает часть и вываливается с сообщением accel_read,168: Impossible to read input: read() failed: Connection reset by peer , без пайпа тоже самое, но не завершается и сообщения этого нет. Это всё нужно не для кол-ва сессий, просто кол-во сессий наглядно показывает проблему.
  4. Тут вобще мистика какая-то. Есть старые сервера, собирались примерно полгода назад. С них netcat-ом список сессий получается без проблем отовсюду. Есть новый сервер, собирался из гита на прошлой неделе. С него netcat-ом одной строкой на некоторых компах список сессий снимается нормально, на некоторых снимается только какая-то часть(обрывается резко, посреди строки, нет даже \n последнего). При этом если делать не одной строкой, а muchacho@muchacho ~ $ nc 192.168.5.24 2001 Password show sessions , то показывает все сессии нормально.
  5. Добрый день! Помогите, пожалуйста, сломал себе весь мозг уже. На некоторых компах наблюдаю такую картину: muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip,type,uptime\nexit\n" |ncat 192.168.5.24 2001 | wc -l 475 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip,type,uptime\nexit\n" |ncat 192.168.5.24 2001 | wc -l 452 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip,type,uptime\nexit\n" |ncat 192.168.5.24 2001 | wc -l 470 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.24 2001 | wc -l 690 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.24 2001 | wc -l 690 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.24 2001 | wc -l 690 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname\nexit\n" |ncat 192.168.5.24 2001 | wc -l 994 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname\nexit\n" |ncat 192.168.5.24 2001 | wc -l 993 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname\nexit\n" |ncat 192.168.5.24 2001 | wc -l 992 Такое ощущение что во что-то упирается, но при этом если смотреть телнетом, то всё отлично. На другие сервера(старые), показывает нормально: muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.23 2001 | wc -l 1040 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.23 2001 | wc -l 1040 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.23 2001 | wc -l 1040 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.6 2001 | wc -l 1174 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.6 2001 | wc -l 1174 muchacho@muchacho ~ $ echo -e "Password\nshow sessions ifname,username,ip\nexit\n" |ncat 192.168.5.6 2001 | wc -l 1174
  6. Незачто, чисто случайно получилось.
  7. Добрый день! Собрал из гита. Сервер стартует, но при попытке подключения к нему сегфолтится. Логи: [2014-01-17 14:22:02]: msg: accel-ppp version 42b8eaa35951e5381a7963d6bded7fa28b9b1713 [2014-01-17 14:22:16]: info: recv [PPPoE PADI 00:15:f2:7d:7f:c8 => ff:ff:ff:ff:ff:ff sid=0000 <Service-Name > <Host-Uniq 070000000c000000>] [2014-01-17 14:22:16]: info: send [PPPoE PADO 00:1b:21:5b:99:08 => 00:15:f2:7d:7f:c8 sid=0000 <AC-Name pppoe> <Service-Name pppoe> <Service-Name > <AC-Cookie 7a2fb87dbab7092529aa3e8b8da3bfa6bb9fdde44078329f> <Host-Uniq 070000000c000000>] [2014-01-17 14:22:16]: info: recv [PPPoE PADR 00:15:f2:7d:7f:c8 => 00:1b:21:5b:99:08 sid=0000 <Service-Name > <Host-Uniq 070000000d000000> <AC-Cookie 7a2fb87dbab7092529aa3e8b8da3bfa6bb9fdde44078329f>] [2014-01-17 14:22:16]: info: send [PPPoE PADS 00:1b:21:5b:99:08 => 00:15:f2:7d:7f:c8 sid=0001 <AC-Name pppoe> <Service-Name > <Host-Uniq 070000000d000000>] [2014-01-17 14:22:16]: info: ppp0: connect: ppp0 <--> pppoe(00:15:f2:7d:7f:c8) [2014-01-17 14:22:16]: debug: ppp0: lcp_layer_init [2014-01-17 14:22:16]: debug: ppp0: auth_layer_init [2014-01-17 14:22:16]: debug: ppp0: ccp_layer_init [2014-01-17 14:22:16]: debug: ppp0: ipcp_layer_init [2014-01-17 14:22:16]: debug: ppp0: ipv6cp_layer_init [2014-01-17 14:22:16]: debug: ppp0: ppp established gdb --args /usr/local/sbin/accel-pppd -p /var/run/accel-pppd.pid -c /etc/accel-ppp.conf GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/sbin/accel-pppd...done. (gdb) run Starting program: /usr/local/sbin/accel-pppd -p /var/run/accel-pppd.pid -c /etc/accel-ppp.conf warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff5b6a700 (LWP 21450)] [New Thread 0x7ffff7ff5700 (LWP 21451)] [New Thread 0x7ffff3022700 (LWP 21452)] [New Thread 0x7ffff2f21700 (LWP 21453)] [New Thread 0x7ffff2e20700 (LWP 21454)] [New Thread 0x7ffff2d1f700 (LWP 21455)] [New Thread 0x7ffff2c1e700 (LWP 21456)] [New Thread 0x7ffff241d700 (LWP 21457)] [Thread 0x7ffff7ff5700 (LWP 21451) exited] [New Thread 0x7ffff7ff5700 (LWP 21458)] Program received signal SIGSEGV, Segmentation fault. [switching to Thread 0x7ffff2e20700 (LWP 21454)] 0x000000000041f3cf in iplink_get_stats (ifindex=140, stats=0x7ffff2e1fc90) at /usr/src/accel-ppp.git/accel-pppd/libnetlink/iputils.c:163 163} uname -a Linux pppoe 3.12-0.bpo.1-amd64 #1 SMP Debian 3.12.6-2~bpo70+1 (2014-01-07) x86_64 GNU/Linux Методом научного тыка поменял в /usr/src/accel-ppp.git/accel-pppd/libnetlink/iputils.c Было: int __export iplink_get_stats(int ifindex, struct rtnl_link_stats *stats) { struct iplink_req { struct nlmsghdr n; struct ifinfomsg i; char buf[1024]; } req; Стало: int __export iplink_get_stats(int ifindex, struct rtnl_link_stats *stats) { struct iplink_req { struct nlmsghdr n; struct ifinfomsg i; char buf[4096]; } req; Теперь сессия подымается, с виду всё работает нормально. Посмотрите, пожалуйста, можно ли ставить в продакшн.
  8. Спасибо, вроде заработало.
  9. ifcfg добавил - ничего не изменилось. start=dhcpv4 - мне, как я понял, не подойдёт. Мне нужно без авторизации и dhcp, поэтому noauth=1 и start=up. Может быть проблема в error: ipoe0: failed to set peer IPv4 address: Cannot assign requested address ? Как я могу подебажить это? Без установленых сессий: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:15:17:94:fd:02 brd ff:ff:ff:ff:ff:ff inet хх.хх.хх.хх/24 brd хх.хх.хх.хх scope global eth0 inet6 fe80::215:17ff:fe94:fd02/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:15:17:94:fd:03 brd ff:ff:ff:ff:ff:ff inet6 fe80::215:17ff:fe94:fd03/64 scope link valid_lft forever preferred_lft forever 172: eth1.4074@eth1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:15:17:94:fd:03 brd ff:ff:ff:ff:ff:ff inet6 fe80::215:17ff:fe94:fd03/64 scope link valid_lft forever preferred_lft forever После установления сессии появляется ipoe0: 188: ipoe0: <POINTOPOINT,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100 link/ether 00:15:17:94:fd:03 peer ff:ff:ff:ff:ff:ff inet6 fe80::215:17ff:fe94:fd03/64 scope link valid_lft forever preferred_lft forever Почему он ipoe0? Насколько я понимаю должен быть eth1.4074.ipoe0?
  10. Господа помогите, сломал себе уже весь мозг. Пытаюсь настроить простенький IPoE: [ipoe] noauth=1 mode=L2 shared=1 start=up interface=eth1.4074,range=192.168.4.0/24 local-net=192.168.4.0/24 В логе получаю: [2013-10-29 16:59:27]: info: ipoe: start interface eth1.4074 (range=192.168.4.0/24) [2013-10-29 16:59:27]: msg: accel-ppp version c19c04567bbe0bcd6631485795311cf83a07e5fc [2013-10-29 16:59:28]: info: : 192.168.4.10: authentication succeeded [2013-10-29 16:59:28]: error: ipoe0: failed to set peer IPv4 address: Cannot assign requested address [2013-10-29 16:59:28]: info: ipoe0: ipoe: session started [2013-10-29 16:59:28]: info: ipoe0: pppd_compat: ip-up started (pid 32011) [2013-10-29 16:59:28]: info: ipoe0: pppd_compat: ip-up finished (0) Интерфейс ipoe0 появляется. Никакие адреса и маршруты никуда не добавляются, естественно ничего не работает. Если сделать ifconfig ipoe0 192.168.4.1/24 начинает работать.
  11. Линки есть, пути задавал, не помогает. Что-то я делаю не так. Обновился до testing, там ядро 3.9 помоему 8. Модуль собирается. Делаю: apt-get install linux-source-3.9 cd /usr/src/linux-source-3.9 make mrproper cp /boot/config-3.9-1-amd64 /usr/src/linux-source-3.9/.config make oldconfig make-kpkg clean make-kpkg --initrd --revision="123" kernel-image kernel-headers dpkg -i linux-image-3.9.8_123_amd64.deb linux-headers-3.9.8_123_amd64.deb Перезагружаюсь - модуль не собирается. Может кто-нибудь подскажет что я могу делать не так?
  12. Да, ядро собиралось. Debian 7. fakeroot make-kpkg --initrd kernel-image kernel-headers Файлика asm/linkage.h действительно нет, но в стоковом ядре его тоже нет, а модуль собирается без проблем.
  13. Этот патч я пробовал. После него получается такое: /usr/src/ipt-netflow# make all gcc -O2 -Wall -Wunused -I/lib/modules/3.9.6-custom/build/include -DIPTABLES_VERSION=\"1.4.14\" -I../iptables-1.4.14/include -fPIC -o libipt_NETFLOW_sh.o -c libipt_NETFLOW.c In file included from /usr/include/linux/posix_types.h:4:0, from /lib/modules/3.9.6-custom/build/include/uapi/linux/types.h:13, from /lib/modules/3.9.6-custom/build/include/linux/types.h:5, from ../iptables-1.4.14/include/xtables.h:17, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/stddef.h:11:2: error: expected identifier before numeric constant In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:14:26: error: conflicting types for ‘fd_set’ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:220:0, from /usr/include/stdlib.h:320, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/select.h:78:5: note: previous declaration of ‘fd_set’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:15:25: error: conflicting types for ‘dev_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:61:17: note: previous declaration of ‘dev_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:19:17: error: conflicting types for ‘nlink_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:76:19: note: previous declaration of ‘nlink_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:25:26: error: conflicting types for ‘timer_t’ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:133:0, from /usr/include/stdlib.h:320, from libipt_NETFLOW.c:25: /usr/include/time.h:104:19: note: previous declaration of ‘timer_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:29:17: error: two or more data types in declaration specifiers /lib/modules/3.9.6-custom/build/include/linux/types.h:29:1: warning: useless type name in empty declaration [enabled by default] /lib/modules/3.9.6-custom/build/include/linux/types.h:45:26: error: conflicting types for ‘loff_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:45:18: note: previous declaration of ‘loff_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:111:17: error: conflicting types for ‘uint64_t’ In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/include/stdint.h:3:0, from /usr/include/netinet/in.h:24, from libipt_NETFLOW.c:29: /usr/include/stdint.h:56:27: note: previous declaration of ‘uint64_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:112:17: error: conflicting types for ‘u_int64_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:204:1: note: previous declaration of ‘u_int64_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:113:17: error: conflicting types for ‘int64_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:198:1: note: previous declaration of ‘int64_t’ was here In file included from ../iptables-1.4.14/include/xtables.h:17:0, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/types.h:134:23: error: conflicting types for ‘blkcnt_t’ In file included from /usr/include/stdlib.h:320:0, from libipt_NETFLOW.c:25: /usr/include/x86_64-linux-gnu/sys/types.h:236:20: note: previous declaration of ‘blkcnt_t’ was here In file included from /lib/modules/3.9.6-custom/build/include/linux/netfilter.h:4:0, from ../iptables-1.4.14/include/xtables.h:18, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/init.h:156:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘load_default_modules’ /lib/modules/3.9.6-custom/build/include/linux/init.h:256:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_early_param’ /lib/modules/3.9.6-custom/build/include/linux/init.h:257:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_early_options’ In file included from /lib/modules/3.9.6-custom/build/include/linux/kernel.h:6:0, from /lib/modules/3.9.6-custom/build/include/linux/skbuff.h:17, from /lib/modules/3.9.6-custom/build/include/linux/netfilter.h:5, from ../iptables-1.4.14/include/xtables.h:18, from ../iptables-1.4.14/include/iptables.h:5, from libipt_NETFLOW.c:36: /lib/modules/3.9.6-custom/build/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory compilation terminated. make: *** [libipt_NETFLOW.so] Error 1
  14. У кого-нибудь получилось собрать для 3.9.6?
  15. Разобрался с большим кол-вом перрываний. Запущеный perf top и oprofile даёт такой эффект. Попробовал посмотреть oprofile, вот что получилось: root@router:/usr/lib/debug/boot# opreport Overflow stats not available CPU: Core 2, speed 2494.2 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 CPU_CLK_UNHALT...| samples| %| ------------------ 3688718 71.8508 vmlinux-2.6.32-5-686-bigmem 383939 7.4786 igb 284001 5.5319 nf_conntrack 231999 4.5190 cls_u32 187539 3.6530 sch_htb 72640 1.4149 ip_tables 46089 0.8977 nf_nat 41489 0.8081 bonding 41002 0.7987 ifb 33392 0.6504 ip_set_nethash 23144 0.4508 oprofiled root@router:/usr/lib/debug/boot# opreport -l vmlinux-2.6.32-5-686-bigmem CPU: Core 2, speed 2494.2 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % symbol name 381248 10.3355 dev_queue_xmit 330145 8.9501 skb_copy_bits 243404 6.5986 __slab_alloc 164481 4.4590 sch_direct_xmit 143361 3.8865 mwait_idle 133106 3.6085 __slab_free 129585 3.5130 ip_route_input 110956 3.0080 pskb_expand_head 102707 2.7844 __copy_skb_header 92208 2.4997 netif_receive_skb 86645 2.3489 __alloc_skb 83237 2.2565 skb_release_head_state 74389 2.0167 skb_release_data 71011 1.9251 add_partial 68307 1.8518 kmem_cache_free 62780 1.7019 kmem_cache_alloc 57310 1.5537 ip_rcv 49509 1.3422 dev_get_by_index 43471 1.1785 kfree 43301 1.1739 nf_iterate 39861 1.0806 ktime_get 38992 1.0571 __kmalloc_track_caller Может это чем-то поможет. По поводу iptables - сегодня попробую совсем убрать правила из filter, если что-то изменится отпишусь.