[FUGSPBR] MULTICAST / NAT

Christopher Giese <SkyWarrior> chris em irapida.com.br
Ter Out 26 14:05:27 BRT 2004


Boa Tarde

estou precisando implementar algumas coisas.... e estou me "batendo"

entaum vamos la

Implementei um tunnel MROUTED para passar multicast de um video via satelite
mas nao esta funcionando muito bem...... deixe-me mostrar como 
funcionava antes:

################

SATELITE --> ROUTER CISCO --> SWITCH --> MAQUINAS WINDOWS

###############

E funcionava blz..... porem tive que colocar um FreeBSD no meio.... pq a 
empresa agora tb tem acesso a internet.... ficando da seguinte forma

##########
                                                             internet
                                                                   ^
                                                                   |
SATELITE --> ROUTER CISCO --> FREEBSD --> SWITCH --> MAQUINAS WINDOWS
                
#########                                                 
Pois bem...... antes os ips das maquinas eram 10.3.148.x...... agora 
como o FreeBSD tem 3 placas de rede (Satelite, internet, rede_int) a 
placa de rede com o
satelite ficou com ip 10.3.148.x e a placa para com os clientes windows 
ficou 10.3.149.x........ Porem como o satelite nao conhece a rede 
10.3.149.x tive que aplicar um nat.... para que quando as maquinas 
windows fosse falar com o satelite.... se TRANSFORMASSEM no ip 
10.3.148.x para que o satelite reconhecesse e funciona-se......

ate ai OK

Porem eles precisam usufruir de um Video Multicast via Satelite que 
acontece algumas vezes por semana (iptv da cisco).... quando era plugado 
direto no router
funcionava..... agora que coloquei o FreeBSD no meio parou de 
funcionar........ pois bem...... dei uma lida e observei que precisava 
de um roteamento Multicast....

Entaum implementei o MROUTED.... porem estou com uma duvida CRUEL
O Negocio ainda nao esta funcionando.... ai eu me pergunto.....:
SERA QUE NAO FUNCIONA PQ CONFIGUREI ERRADO....... SERA QUE NAO FUNCIONA 
PQ ATRAZ DE NAT REALMENTE MULTICAS NAO É PARA FUNCIONAR..... OU SERA QUE 
NAO FUNCIONA PQ DEVIDO AO TUNNEL O IP 10.3.149.X PASSA DIRETO SEM O 
NAT.. E AI O SATELITE NAO RECONHECE ESTE IP..... !!!!! ???????

utilizei o site http://penta.ufrgs.br/~cristina/mbone/ti/ticap4.htm  
para pegar informações..... e configurei o freebsd da seguinte forma:

################################

serverl# ifconfig
rl0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        inet 10.3.149.231 netmask 0xffffff00 broadcast 10.3.149.255
        inet 200.140.215.138 netmask 0xfffffffc broadcast 200.140.215.139
        inet 10.208.8.2 netmask 0xffffff00 broadcast 10.208.8.255
        ether 00:30:84:87:01:0d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl1: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        inet 10.3.148.231 netmask 0xffffff00 broadcast 10.3.148.255
        ether 00:a0:d2:1c:20:4a
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
server#

################################

server# ipfw list
00001 allow igmp from any to any
00001 allow igp from any to any
00001 allow igmp from any to any
00020 divert 8668 ip from 10.3.146.0/24 to 192.168.10.120
00021 divert 8668 ip from 192.168.10.120 to 10.3.148.231 via rl1
00022 divert 8668 ip from 10.3.146.0/24 to 192.168.10.222
00023 divert 8668 ip from 192.168.10.222 to 10.3.148.231 via rl1
00024 divert 8668 ip from 10.3.146.0/24 to 192.168.10.220
00025 divert 8668 ip from 192.168.10.220 to 10.3.148.231 via rl1
00026 divert 8668 ip from 10.3.146.0/24 to 192.168.10.49
00027 divert 8668 ip from 192.168.10.49 to 10.3.148.231 via rl1
00028 divert 8668 ip from 10.3.146.0/24 to 192.168.10.116
00029 divert 8668 ip from 192.168.10.116 to 10.3.148.231 via rl1
00030 divert 8668 ip from 10.3.146.0/24 to 192.168.10.117
00031 divert 8668 ip from 192.168.10.117 to 10.3.148.231 via rl1
00032 divert 8668 ip from 10.3.146.0/24 to 192.168.10.118
00033 divert 8668 ip from 192.168.10.118 to 10.3.148.231 via rl1
00034 divert 8668 ip from 10.3.146.0/24 to 192.168.10.119
00035 divert 8668 ip from 192.168.10.119 to 10.3.148.231 via rl1
00036 divert 8668 ip from 10.3.146.0/24 to 192.168.10.225
00037 divert 8668 ip from 192.168.10.225 to 10.3.148.231 via rl1
00038 divert 8668 ip from 10.3.146.0/24 to 192.168.10.111
00039 divert 8668 ip from 192.168.10.111 to 10.3.148.231 via rl1
00040 divert 8668 ip from 10.3.146.0/24 to 10.0.1.10
00041 divert 8668 ip from 10.0.1.10 to 10.3.148.231 via rl1
00042 divert 8668 ip from 10.3.146.0/24 to 10.0.1.110
00043 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
00044 divert 8668 ip from 10.3.146.0/24 to 192.168.10.200
00045 divert 8668 ip from 192.168.10.200 to 10.3.148.231 via rl1
00046 divert 8668 ip from 10.3.146.0/24 to 10.0.1.110
00047 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
00048 divert 8668 ip from 10.3.146.0/24 to 10.0.1.11
00049 divert 8668 ip from 10.0.1.11 to 10.3.148.231 via rl1
00050 divert 8668 ip from 10.3.146.0/24 to 192.168.11.111
00051 divert 8668 ip from 192.168.11.111 to 10.3.148.231 via rl1
00052 divert 8668 ip from 10.3.146.0/24 to 192.168.11.112
00053 divert 8668 ip from 192.168.11.112 to 10.3.148.231 via rl1
00200 divert 8668 ip from 10.1.133.0/24 to 192.168.10.120
00210 divert 8668 ip from 192.168.10.120 to 10.3.148.231 via rl1
00220 divert 8668 ip from 10.1.133.0/24 to 192.168.10.222
00230 divert 8668 ip from 192.168.10.222 to 10.3.148.231 via rl1
00240 divert 8668 ip from 10.1.133.0/24 to 192.168.10.220
00250 divert 8668 ip from 192.168.10.220 to 10.3.148.231 via rl1
00260 divert 8668 ip from 10.1.133.0/24 to 192.168.10.49
00270 divert 8668 ip from 192.168.10.49 to 10.3.148.231 via rl1
00280 divert 8668 ip from 10.1.133.0/24 to 192.168.10.116
00290 divert 8668 ip from 192.168.10.116 to 10.3.148.231 via rl1
00300 divert 8668 ip from 10.1.133.0/24 to 192.168.10.117
00310 divert 8668 ip from 192.168.10.117 to 10.3.148.231 via rl1
00320 divert 8668 ip from 10.1.133.0/24 to 192.168.10.118
00330 divert 8668 ip from 192.168.10.118 to 10.3.148.231 via rl1
00340 divert 8668 ip from 10.1.133.0/24 to 192.168.10.119
00350 divert 8668 ip from 192.168.10.119 to 10.3.148.231 via rl1
00360 divert 8668 ip from 10.1.133.0/24 to 192.168.10.225
00370 divert 8668 ip from 192.168.10.225 to 10.3.148.231 via rl1
00380 divert 8668 ip from 10.1.133.0/24 to 192.168.10.111
00390 divert 8668 ip from 192.168.10.111 to 10.3.148.231 via rl1
00400 divert 8668 ip from 10.1.133.0/24 to 10.0.1.10
00410 divert 8668 ip from 10.0.1.10 to 10.3.148.231 via rl1
00420 divert 8668 ip from 10.1.133.0/24 to 10.0.1.110
00430 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
00440 divert 8668 ip from 10.1.133.0/24 to 192.168.10.200
00450 divert 8668 ip from 192.168.10.200 to 10.3.148.231 via rl1
00570 divert 8668 ip from 10.1.133.0/24 to 10.0.1.110
00590 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
00620 divert 8668 ip from 10.1.133.0/24 to 10.0.1.11
00630 divert 8668 ip from 10.0.1.11 to 10.3.148.231 via rl1
00640 divert 8668 ip from 10.1.133.0/24 to 192.168.11.111
00650 divert 8668 ip from 192.168.11.111 to 10.3.148.231 via rl1
00660 divert 8668 ip from 10.1.133.0/24 to 192.168.11.112
00670 divert 8668 ip from 192.168.11.112 to 10.3.148.231 via rl1
01200 divert 8668 ip from 10.3.149.0/24 to 192.168.10.120
01210 divert 8668 ip from 192.168.10.120 to 10.3.148.231 via rl1
01220 divert 8668 ip from 10.3.149.0/24 to 192.168.10.222
01230 divert 8668 ip from 192.168.10.222 to 10.3.148.231 via rl1
01240 divert 8668 ip from 10.3.149.0/24 to 192.168.10.220
01250 divert 8668 ip from 192.168.10.220 to 10.3.148.231 via rl1
01260 divert 8668 ip from 10.3.149.0/24 to 192.168.10.49
01270 divert 8668 ip from 192.168.10.49 to 10.3.148.231 via rl1
01280 divert 8668 ip from 10.3.149.0/24 to 192.168.10.116
01290 divert 8668 ip from 192.168.10.116 to 10.3.148.231 via rl1
01300 divert 8668 ip from 10.3.149.0/24 to 192.168.10.117
01310 divert 8668 ip from 192.168.10.117 to 10.3.148.231 via rl1
01320 divert 8668 ip from 10.3.149.0/24 to 192.168.10.118
01330 divert 8668 ip from 192.168.10.118 to 10.3.148.231 via rl1
01340 divert 8668 ip from 10.3.149.0/24 to 192.168.10.119
01350 divert 8668 ip from 192.168.10.119 to 10.3.148.231 via rl1
01360 divert 8668 ip from 10.3.149.0/24 to 192.168.10.225
01370 divert 8668 ip from 192.168.10.225 to 10.3.148.231 via rl1
01380 divert 8668 ip from 10.3.149.0/24 to 192.168.10.111
01390 divert 8668 ip from 192.168.10.111 to 10.3.148.231 via rl1
01400 divert 8668 ip from 10.3.149.0/24 to 10.0.1.10
01410 divert 8668 ip from 10.0.1.10 to 10.3.148.231 via rl1
01420 divert 8668 ip from 10.3.149.0/24 to 10.0.1.110
01430 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
01440 divert 8668 ip from 10.3.149.0/24 to 192.168.10.200
01450 divert 8668 ip from 192.168.10.200 to 10.3.148.231 via rl1
01570 divert 8668 ip from 10.3.149.0/24 to 10.0.1.110
01590 divert 8668 ip from 10.0.1.110 to 10.3.148.231 via rl1
01620 divert 8668 ip from 10.3.149.0/24 to 10.0.1.11
01630 divert 8668 ip from 10.0.1.11 to 10.3.148.231 via rl1
01640 divert 8668 ip from 10.3.149.0/24 to 192.168.11.111
01650 divert 8668 ip from 192.168.11.111 to 10.3.148.231 via rl1
01660 divert 8668 ip from 10.3.149.0/24 to 192.168.11.112
01670 divert 8668 ip from 192.168.11.112 to 10.3.148.231 via rl1
01770 allow ip from any to any
65535 allow ip from any to any

################################

kernel:
options         MROUTING                # Multicast routing

#################################
cat /etc/mrouted.conf

name LOCAL 239.255.0.0/16
cache_lifetime 3600
phyint rl0
phyint rl1
tunnel 10.3.148.231 10.0.1.110 metric 1 threshold 64 rate_limit 500

####################################

server# mrinfo
127.0.0.1 (localhost.grupometronorte.com.br) [DVMRPv3 compliant]:
  10.3.149.231 -> 0.0.0.0 (local) [1/1/querier/leaf]
  10.3.148.231 -> 0.0.0.0 (local) [1/1/querier/leaf]
  10.3.148.231 -> 10.0.1.110 (10.0.1.110) [1/64/tunnel/down/leaf]
server#

################################

server # tcpdump -npi rl1 host 10.0.1.110
tcpdump: listening on rl1
14:59:20.440669 10.3.148.231 > 10.0.1.110: igmp dvmrp Probe [tos 0xc0]
14:59:30.512128 10.3.148.231 > 10.0.1.110: igmp dvmrp Probe [tos 0xc0]
^C
56 packets received by filter
0 packets dropped by kernel
server#
################################


Muitissimo Grato Pela Atenção

Christopher Giese
www.bsdux.com.br

                                                                   
_______________________________________________________________
Para enviar um novo email para a lista: fugspbr em fugspbr.org
Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd