ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Boris Savelev <boris.savelev@gmail.com>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] router -> linux server
Date: Wed, 23 Jan 2013 12:26:02 +0300
Message-ID: <CAGodH5ftLwx0k9EpxDeduaM1aETvUDZv_h=OiyvG0SLC4SiFew@mail.gmail.com> (raw)
In-Reply-To: <CABUeJrR3hKx2x7hH_jexDUMCsnZSAo_ObsrVASrpGkHK8XuQ4g@mail.gmail.com>

22 января 2013 г., 20:22 пользователь Aleksey Birukov
<aebirukov@gmail.com> написал:
> Есть инструкция по настройке сети router-а для iptv. Как бы эти настройки
> преобразовать в настройки сети для linux сервера?
> Чтобы обойтись без роутера.
>
> Вроде бы всё сделал по аналогии, но на телевизоре есть возможность выбора
> каналов, выводится текстовая информация о программе передач, прогнозе погоды
> и т.д, а сами каналы не транслируется.
>
> В чём может быть дело?
>
> Прикладываю вывод ifconfig
>
> eth0      Link encap:Ethernet  HWaddr 00:0D:87:D9:61:20
>           inet addr:1.1.1.1  Bcast:1.1.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1402737 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1150324 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:234102545 (223.2 MiB)  TX bytes:200623643 (191.3 MiB)
>           Interrupt:23 Base address:0xe400
>
> eth1      Link encap:Ethernet  HWaddr 00:80:48:25:26:55
>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:26889 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:33407 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:11495667 (10.9 MiB)  TX bytes:37091355 (35.3 MiB)
>           Interrupt:18
>
> 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:3500 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3500 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:409287 (399.6 KiB)  TX bytes:409287 (399.6 KiB)
>
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr: <ip address>  P-t-P:<ip address>  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1476  Metric:1
>           RX packets:39117 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:33123 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:3
>           RX bytes:9737282 (9.2 MiB)  TX bytes:5778201 (5.5 MiB)
>
> ppp1      Link encap:Point-to-Point Protocol
>           inet addr:192.168.2.1  P-t-P:192.168.2.236  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:7 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:3
>           RX bytes:69 (69.0 b)  TX bytes:63 (63.0 b)
>

На днях себе настраивал
Нужен igmpproxy [1] и немного времени

У меня конфиг выглядит так:

quickleave
phyint internet upstream  ratelimit 0  threshold 1
    altnet 192.168.0.0/24
    altnet 10.147.91.0/24
    altnet 89.223.36.0/26
    altnet 172.31.242.0/24
phyint lan downstream  ratelimit 0  threshold 1
phyint tap0 disabled
phyint lo disabled

192.168.0.0/24 -- моя локальная сеть
Остальное сети провайдера. Выясняются опытным путем:
Начинаешь смотреть iptv за роутером и igmpproxy в логе показывает
откуда что приходит.
Также можно наблюдать на появлением неразрешенных маршрутов с помощью
команды 'ip mr'

У меня работающий вариант выглядит как-то так
(192.168.0.70, 239.255.255.250)  Iif: internet   Oifs: lan

[1] http://sourceforge.net/projects/igmpproxy/

-- 
Boris


       reply	other threads:[~2013-01-23  9:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23  9:26 ` Boris Savelev [this message]
2013-01-23 18:46   ` Viacheslav Dubrovskyi
2013-01-23 19:00     ` Boris Savelev
2013-01-23 19:16       ` Viacheslav Dubrovskyi
2013-01-23 19:21         ` Boris Savelev
2013-01-23 22:24           ` Dubrovskiy Viacheslav
2013-01-23 22:45             ` Alexey Shabalin
2013-01-23 22:56               ` Dubrovskiy Viacheslav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGodH5ftLwx0k9EpxDeduaM1aETvUDZv_h=OiyvG0SLC4SiFew@mail.gmail.com' \
    --to=boris.savelev@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git