Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Локалка, Squid, Внешка через PPPoE  (Прочитано 5619 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн AnrDaemon

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 28511
    • Просмотр профиля
Re: Локалка, Squid, Внешка через PPPoE
« Ответ #15 : 13 Августа 2009, 00:05:17 »
Ну, ответ был дан не тебе, и смысл ответа был в том, что на беспредметные вопросы - ответы могут быть только так же беспредметные.
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.

Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…

Оффлайн Unreg

  • Активист
  • *
  • Сообщений: 751
  • Ubuntu 8.04 / Acer Aspire One 110 > Debian 5.04
    • Просмотр профиля
    • LJ
Re: Локалка, Squid, Внешка через PPPoE
« Ответ #16 : 13 Августа 2009, 00:11:16 »
http://verhoum.livejournal.com/17362.html - как собрать igmpproxy

$ whereis igmpproxy
igmpproxy: /usr/local/sbin/igmpproxy /usr/local/etc/igmpproxy.conf

$ sudo nano /usr/local/etc/igmpproxy.conf

$ cat  /usr/local/etc/igmpproxy.conf
########################################################
#
#   Example configuration file for the IgmpProxy
#   --------------------------------------------
#
#   The configuration file must define one upstream
#   interface, and one or more downstream interfaces.
#
#   If multicast traffic originates outside the
#   upstream subnet, the "altnet" option can be
#   used in order to define legal multicast sources.
#   (Se example...)
#
#   The "quickleave" should be used to avoid saturation
#   of the upstream link. The option should only
#   be used if it's absolutely nessecary to
#   accurately imitate just one Client.
#
########################################################

##------------------------------------------------------
## Enable Quickleave mode (Sends Leave instantly)
##------------------------------------------------------
quickleave


##------------------------------------------------------
## Configuration for eth0 (Upstream Interface)
##------------------------------------------------------
phyint eth0 upstream  ratelimit 0  threshold 1
        altnet 10.0.0.0/8
       # altnet 192.168.5.0/24


##------------------------------------------------------
## Configuration for eth1 (Downstream Interface)
##------------------------------------------------------
phyint eth1 downstream  ratelimit 0  threshold 1


##------------------------------------------------------
## Configuration for eth2 (Disabled Interface)
##------------------------------------------------------
#phyint eth2 disabled


#quickleave
#phyint eth0 upstream ratelimit 0 threshold 1
#altnet 0.0.0.0.0/0
#altnet 172.16.16.0/24
#altnet 78.107.23.0/24
#phyint eth1 downstream ratelimit 0 threshold 1
#phyint eth0 disabled
phyint lo disabled


конфиг пока вот такой - не рабочий



Оффлайн Малышъ

  • Автор темы
  • Новичок
  • *
  • Сообщений: 11
    • Просмотр профиля
Re: Локалка, Squid, Внешка через PPPoE
« Ответ #17 : 25 Августа 2009, 00:30:50 »
Сорри что долго не писал - времени не было :(

Решено было отказаться от squid - мне все равно не нужно делать логи и прочие функции прокси-сервера. Поднял NAT, правда и тут есть маленькая проблемка. Скорее всего просто ошибка где-то - после ребута NAT не запускается.

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.3
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
#       gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
#       dns-nameservers 192.168.1.1
#       dns-search malish.homeftp.net
auto eth1
iface eth1 inet static
       address 10.203.54.25
       netmask 255.255.0.0
       network 10.203.54.0
       broadcast 10.203.54.255
       gateway 10.203.0.1
       [color=red]post-up /etc/network/iptables.sh[/color] # скрипт для запуска NAT

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider

Собсня сам скрипт
/etc/network/iptables.sh

#!/sbin/sh
/sbin/depmod -a
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_tables
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
sysctl -w net.ipv4.ip_forward="1"


хотелось бы исправить это и решить проблему с iptv которое приходит по мультикасту. рекомендуют использовать как уже писали igmpproxy

вот igmpproxy.conf

##------------------------------------------------------
## Enable Quickleave mode (Sends Leave instantly)
##------------------------------------------------------
quickleave


##------------------------------------------------------
## Configuration for eth1 (Upstream Interface)
##------------------------------------------------------
phyint eth1 upstream  ratelimit 0  threshold 1
        altnet 10.0.0.0/8

##------------------------------------------------------
## Configuration for eth0 (Downstream Interface)
##------------------------------------------------------
phyint eth0 downstream  ratelimit 0  threshold 1

Все делал по инструкции http://www.tonchik.ru/pub/over/Linux%20Multicast%20Routing%20with%20IGMPProxy.html
не делал только раздел про IPTables.

Сперва не работало, но писало в логах

/var/log/messages
Aug 17 20:28:14 malish igmpproxy[4730]: adding VIF, Ix 1 Fl 0x0 IP 0x1936cb0a eth1, Threshold: 1, Ratelimit: 0
Aug 17 20:28:14 malish igmpproxy[4730]: adding VIF, Ix 2 Fl 0x0 IP 0xcb4443d9 ppp0, Threshold: 1, Ratelimit: 0
Aug 17 20:28:14 malish igmpproxy[4730]: joinMcGroup: 224.0.0.2 on eth0
Aug 17 20:28:14 malish igmpproxy[4730]: joinMcGroup: 224.0.0.2 on ppp0
Aug 17 20:28:14 malish igmpproxy[4730]: RECV Membership query   from 192.168.1.3     to 224.0.0.1
Aug 17 20:28:14 malish igmpproxy[4730]: RECV Membership query   from 217.67.68.203   to 224.0.0.1
Aug 17 20:28:15 malish igmpproxy[4730]: RECV V2 member report   from 217.67.68.203   to 224.0.0.2
Aug 17 20:28:15 malish igmpproxy[4730]: The IGMP message was from myself. Ignoring.
Aug 17 20:28:20 malish igmpproxy[4730]: RECV V2 member report   from 192.168.1.5     to 239.255.255.250
Aug 17 20:28:20 malish igmpproxy[4730]: Inserted route table entry for 239.255.255.250 on VIF #0
Aug 17 20:28:20 malish igmpproxy[4730]: joinMcGroup: 239.255.255.250 on eth1
Aug 17 20:28:20 malish igmpproxy[4730]: RECV V2 member report   from 10.203.54.25    to 239.255.255.250
Aug 17 20:28:20 malish igmpproxy[4730]: The IGMP message was from myself. Ignoring.
Aug 17 20:28:20 malish igmpproxy[4730]: Route activation request from 10.203.54.25 for 239.255.255.250 is from myself. Ignoring.
Aug 17 20:28:23 malish igmpproxy[4730]: RECV V2 member report   from 192.168.1.3     to 224.0.0.2
Aug 17 20:28:23 malish igmpproxy[4730]: The IGMP message was from myself. Ignoring.
Aug 17 20:28:28 malish igmpproxy[4730]: RECV V2 member report   from 10.203.54.25    to 239.255.255.250
Aug 17 20:28:28 malish igmpproxy[4730]: The IGMP message was from myself. Ignoring.
Aug 17 20:28:29 malish igmpproxy[4730]: RECV V2 member report   from 10.203.54.4     to 239.0.0.25
Aug 17 20:28:29 malish igmpproxy[4730]: Mebership report was recieved on the upstream interface. Ignoring.
Aug 17 20:28:32 malish igmpproxy[4730]: RECV V2 member report   from 10.203.54.13    to 239.255.255.250
Aug 17 20:28:32 malish igmpproxy[4730]: Mebership report was recieved on the upstream interface. Ignoring.
Aug 17 20:28:32 malish igmpproxy[4730]: Adding MFC: 10.203.54.13 -> 239.255.255.250, InpVIf: 1
Aug 17 20:28:33 malish igmpproxy[4730]: RECV V2 member report   from 10.203.54.18    to 239.0.0.4
Aug 17 20:28:33 malish igmpproxy[4730]: Mebership report was recieved on the upstream interface. Ignoring.
Aug 17 20:28:45 malish igmpproxy[4730]: RECV Membership query   from 192.168.1.3     to 224.0.0.1
Aug 17 20:28:45 malish igmpproxy[4730]: RECV Membership query   from 217.67.68.203   to 224.0.0.1
Aug 17 20:28:46 malish igmpproxy[4730]: RECV V2 member report   from 192.168.1.3     to 224.0.0.2
Aug 17 20:28:46 malish igmpproxy[4730]: The IGMP message was from myself. Ignoring.

а потом начало писать
Aug 18 21:27:00 malish kernel: [  149.312390] igmpproxy[4614]: segfault at 0 ip b7f97628 sp bfae6abc error 4 in libc-2.8.90.so[b7f67000+158000]
Aug 18 21:31:36 malish kernel: [  425.451678] igmpproxy[4661]: segfault at 0 ip b7e65628 sp bf8b708c error 4 in libc-2.8.90.so[b7e35000+158000]
Aug 18 21:32:59 malish kernel: [  508.985373] igmpproxy[4662]: segfault at 0 ip b7f07628 sp bf956fbc error 4 in libc-2.8.90.so[b7ed7000+158000]

В чем моя ошибка? где еще посмотреть?

Оффлайн NetSpider

  • Новичок
  • *
  • Сообщений: 1
    • Просмотр профиля
Re: Локалка, Squid, Внешка через PPPoE
« Ответ #18 : 25 Августа 2009, 10:38:51 »
Честно говоря, у меня совсем нет времени разбираться в чем проблема, но вот кое-кто уже делал подобное на FREEBSD у данного провайдера http://hitforum.net.ua/showthread.php?t=44780
Попробуй связаться с этим человеком и уточнить, как он все настроил.

 

Страница сгенерирована за 0.016 секунд. Запросов: 19.