Hola de nuevo,
Finalmente he conseguido compilar el openwrt , aunque no me va la wifi, pero el problema que tengo es con el redireccionamiento de puertos, que no me funciona, de iptables ando muy justo, y teniendo en cuenta que tengo puesta la configuración de VOIP/Imagenio de Noltari no sé si tengo algo mal.
El caso es que he redireccionado el puerto 8080 mediante NAT a la ip interna de mi lan 192.168.1.2 donde tengo una cámara web IP , pero desde fuera no consigo entrar. La ip del router es 192.168.1.1
Os pongo la salida del iptables, a ver si me podeis ayudar porque no sé ver dónde está el problema.
root@OpenWrt:/# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 584 packets, 36819 bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT udp -- * * 0.0.0.0/0 10.xxx.xx.xx 6 to:192.168.1.200
587 37011 delegate_prerouting all -- * * 0.0.0.0/0 0. 0.0.0/0
Chain INPUT (policy ACCEPT 13 packets, 1267 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 23 packets, 1784 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 23 packets, 1632 bytes)
pkts bytes target prot opt in out source destination
585 36988 delegate_postrouting all -- * * 0.0.0.0/0 0 .0.0.0/0
Chain delegate_postrouting (1 references)
pkts bytes target prot opt in out source destination
585 36988 postrouting_rule all -- * * 0.0.0.0/0 0.0.0 .0/0 /* user chain for postrouting */
3 192 zone_lan_postrouting all -- * br-lan 0.0.0.0/0 0 .0.0.0/0
561 35164 zone_wan_postrouting all -- * pppoe-wan 0.0.0.0/0 0.0.0.0/0
1 192 zone_iptv_postrouting all -- * eth0.2 0.0.0.0/0 0.0.0.0/0
0 0 zone_voip_postrouting all -- * eth0.3 0.0.0.0/0 0.0.0.0/0
Chain delegate_prerouting (1 references)
pkts bytes target prot opt in out source destination
587 37011 prerouting_rule all -- * * 0.0.0.0/0 0.0.0. 0/0 /* user chain for prerouting */
578 36346 zone_lan_prerouting all -- br-lan * 0.0.0.0/0 0. 0.0.0/0
9 665 zone_wan_prerouting all -- pppoe-wan * 0.0.0.0/0 0.0.0.0/0
0 0 zone_iptv_prerouting all -- eth0.2 * 0.0.0.0/0 0 .0.0.0/0
0 0 zone_voip_prerouting all -- eth0.3 * 0.0.0.0/0 0 .0.0.0/0
Chain postrouting_iptv_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_newzone_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_voip_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_iptv_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_newzone_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_voip_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain zone_iptv_postrouting (1 references)
pkts bytes target prot opt in out source destination
1 192 postrouting_iptv_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* user chain for iptv postrouting */
1 192 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0
Chain zone_iptv_prerouting (1 references)
pkts bytes target prot opt in out source destination
0 0 prerouting_iptv_rule all -- * * 0.0.0.0/0 0 .0.0.0/0 /* user chain for iptv prerouting */
Chain zone_lan_postrouting (1 references)
pkts bytes target prot opt in out source destination
3 192 postrouting_lan_rule all -- * * 0.0.0.0/0 0 .0.0.0/0 /* user chain for lan postrouting */
0 0 SNAT tcp -- * * 192.168.1.0/24 192.168.1.2 tcp dpt:8080 /* camara (reflection) */ to:192.168.1.1
0 0 SNAT udp -- * * 192.168.1.0/24 192.168.1.2 udp dpt:8080 /* camara (reflection) */ to:192.168.1.1
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
578 36346 prerouting_lan_rule all -- * * 0.0.0.0/0 0. 0.0.0/0 /* user chain for lan prerouting */
0 0 DNAT tcp -- * * 192.168.1.0/24 83.xx.xx.xx 8 tcp dpt:8080 /* camara (reflection) */ to:192.168.1.2:8080
0 0 DNAT udp -- * * 192.168.1.0/24 83.xx.xx.xx 8 udp dpt:8080 /* camara (reflection) */ to:192.168.1.2:8080
Chain zone_newzone_postrouting (0 references)
pkts bytes target prot opt in out source destination
0 0 postrouting_newzone_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* user chain for newzone postrouting */
Chain zone_newzone_prerouting (0 references)
pkts bytes target prot opt in out source destination
0 0 prerouting_newzone_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* user chain for newzone prerouting */
Chain zone_voip_postrouting (1 references)
pkts bytes target prot opt in out source destination
0 0 postrouting_voip_rule all -- * * 0.0.0.0/0 0.0.0.0/0 /* user chain for voip postrouting */
0 0 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0
Chain zone_voip_prerouting (1 references)
pkts bytes target prot opt in out source destination
0 0 prerouting_voip_rule all -- * * 0.0.0.0/0 0 .0.0.0/0 /* user chain for voip prerouting */
Chain zone_wan_postrouting (1 references)
pkts bytes target prot opt in out source destination
561 35164 postrouting_wan_rule all -- * * 0.0.0.0/0 0 .0.0.0/0 /* user chain for wan postrouting */
561 35164 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_prerouting (1 references)
pkts bytes target prot opt in out source destination
9 665 prerouting_wan_rule all -- * * 0.0.0.0/0 0. 0.0.0/0 /* user chain for wan prerouting */
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080 /* camara */ to:192.168.1.2:8080
0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:8080 /* camara */ to:192.168.1.2:8080
Creo que el problema está entre la LAN y la WAN, pero parece que el postrouting lo tengo bien configurado no ?
Gracias y saludos