TL-WR703N и udpxy

Эта ветка закрыта для дальнейших ответов. Вы можете создать новую тему, чтобы поделиться своими идеями или задать вопросы.

TL-WR703N и udpxy

Эта ветка закрыта для дальнейших ответов. Вы можете создать новую тему, чтобы поделиться своими идеями или задать вопросы.
TL-WR703N и udpxy
TL-WR703N и udpxy
2015-02-18 08:48:21
Мне необходима помощь с настройкой интерфейса USB-Ethernet. Хочу сделать UDP-преобразование в локальной сети. Есть ASIX-адаптер, воткнут в USB. IPTV-трафик приходит на ASIX-адаптер из порта терминала, преобразуется роутером и выходит через встроенный порт в свич. Все определяется, но подключиться нормально у меня не выходит. Заранее спасибо.

lsusb:
Bus 001 Device 002: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
opkg list-installed:
6relayd - 2013-06-23-8ee708101d521382d41a716e45d78fa9f190e00e base-files - 141-r37237 block-mount - 2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e busybox - 1.19.4-6 dnsmasq - 2.66-3 dropbear - 2012.55-2 firewall - 2013-07-04 ip6tables - 1.4.19.1-1 iptables - 1.4.19.1-1 iw - 3.10-1 jshn - 2013-07-04-11e8afea0f7eb34f8c23a8e589ee659c46f3f8aa kernel - 3.8.13-1-02c2be06eedd8f3fb00bc10e23486f17 kmod-ath - 3.8.13+2013-06-27-1 kmod-ath9k - 3.8.13+2013-06-27-1 kmod-ath9k-common - 3.8.13+2013-06-27-1 kmod-cfg80211 - 3.8.13+2013-06-27-1 kmod-crypto-aes - 3.8.13-1 kmod-crypto-arc4 - 3.8.13-1 kmod-crypto-core - 3.8.13-1 kmod-crypto-hash - 3.8.13-1 kmod-crypto-manager - 3.8.13-1 kmod-fs-ext4 - 3.10.49-1 kmod-gpio-button-hotplug - 3.8.13-1 kmod-ip6tables - 3.8.13-1 kmod-ipt-conntrack - 3.8.13-1 kmod-ipt-core - 3.8.13-1 kmod-ipt-nat - 3.8.13-1 kmod-ipt-nathelper - 3.8.13-1 kmod-ipv6 - 3.8.13-1 kmod-leds-gpio - 3.8.13-1 kmod-ledtrig-default-on - 3.8.13-1 kmod-ledtrig-netdev - 3.8.13-1 kmod-ledtrig-timer - 3.8.13-1 kmod-ledtrig-usbdev - 3.8.13-1 kmod-lib-crc-ccitt - 3.8.13-1 kmod-lib-crc16 - 3.10.49-1 kmod-libphy - 3.10.49-1 kmod-mac80211 - 3.8.13+2013-06-27-1 kmod-mii - 3.10.49-1 kmod-nls-base - 3.8.13-1 kmod-ppp - 3.8.13-1 kmod-pppoe - 3.8.13-1 kmod-pppox - 3.8.13-1 kmod-scsi-core - 3.10.49-1 kmod-usb-core - 3.8.13-1 kmod-usb-net - 3.10.49-1 kmod-usb-net-asix - 3.10.49-1 kmod-usb-ohci - 3.8.13-1 kmod-usb-storage - 3.10.49-1 kmod-usb-uhci - 3.10.49-1 kmod-usb2 - 3.8.13-1 kmod-wdt-ath79 - 3.8.13-1 libblobmsg-json - 2013-07-04-11e8afea0f7eb34f8c23a8e589ee659c46f3f8aa libc - 0.9.33.2-1 libgcc - 4.6-linaro-1 libip4tc - 1.4.19.1-1 libip6tc - 1.4.19.1-1 libjson-c - 0.11-2 libjson-script - 2013-07-04-11e8afea0f7eb34f8c23a8e589ee659c46f3f8aa libnl-tiny - 0.1-3 libpthread - 0.9.33.2-1 librt - 0.9.33.2-1 libubox - 2013-07-04-11e8afea0f7eb34f8c23a8e589ee659c46f3f8aa libubus - 2013-05-30-f72dca720bb50d45b1b01bab5b01cb80c78c5230 libuci - 2013-06-11.1-1 libusb-1.0 - 1.0.9-1 libxtables - 1.4.19.1-1 mtd - 20 netifd - 2013-06-18.1-987bdc77deecb928d86b9d710cc3bcfa5b3d80eb odhcp6c - 2013-07-03-007ae1a6ae8092878adccde1f610ea9dd86e5aad opkg - 618-3 ppp - 2.4.5-10 ppp-mod-pppoe - 2.4.5-10 procd - 2013-07-08-725e6bbbe403a950c0ddcd23cb521ffefa705c7d swconfig - 10 uboot-envtools - 2013.07-rc1-1 ubox - 2013-07-02-267dd987b1aec750f8839d1d8d8c2f80d9f1107e ubus - 2013-05-30-f72dca720bb50d45b1b01bab5b01cb80c78c5230 ubusd - 2013-05-30-f72dca720bb50d45b1b01bab5b01cb80c78c5230 uci - 2013-06-11.1-1 udpxy - 1.0.23-9-4 usbutils - 007-1 wpad-mini - 20130630-2 zlib - 1.2.8-1
dmesg:
[ 0.000000] Linux version 3.8.13 (openwrt@snapon) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r37237) ) #1 Thu Jul 11 10:37:45 PDT 2013 [ 0.000000] MyLoader: sysp=388dd517, boardp=04505212, parts=7709ac36 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Atheros AR9330 rev 1 [ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 02000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x01ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x01ffffff] [ 0.000000] On node 0 totalpages: 8192 [ 0.000000] free_area_init_node: node 0, pgdat 80318a40, node_mem_map 81000000 [ 0.000000] Normal zone: 64 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 8128 pages, LIFO batch:0 [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 [ 0.000000] Kernel command line: board=TL-WR703N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] __ex_table already sorted, skipping sort [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 28724k/32768k available (2280k kernel code, 4044k reserved, 593k data, 260k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 512 [ 0.090000] NET: Registered protocol family 16 [ 0.090000] MIPS: machine is TP-LINK TL-WR703N v1 [ 0.350000] bio: create slab <bio-0> at 0 [ 0.360000] Switching to clocksource MIPS [ 0.360000] NET: Registered protocol family 2 [ 0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes) [ 0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) [ 0.370000] TCP: Hash tables configured (established 512 bind 512) [ 0.380000] TCP: reno registered [ 0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.400000] NET: Registered protocol family 1 [ 0.400000] PCI: CLS 0 bytes, default 32 [ 0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.430000] msgmni has been set to 56 [ 0.440000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.440000] io scheduler noop registered [ 0.450000] io scheduler deadline registered (default) [ 0.450000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART [ 0.470000] console [ttyATH0] enabled, bootconsole disabled [ 0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated [ 0.490000] m25p80 spi0.0: found en25q32b, expected m25p80 [ 0.490000] m25p80 spi0.0: en25q32b (4096 Kbytes) [ 0.500000] 5 tp-link partitions found on MTD device spi0.0 [ 0.500000] Creating 5 MTD partitions on "spi0.0": [ 0.510000] 0x000000000000-0x000000020000 : "u-boot" [ 0.520000] 0x000000020000-0x00000011fb7c : "kernel" [ 0.520000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.530000] 0x00000011fb7c-0x0000003f0000 : "rootfs" [ 0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.550000] mtd: partition "rootfs" set to be root filesystem [ 0.560000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=110000 [ 0.560000] 0x0000002e0000-0x0000003f0000 : "rootfs_data" [ 0.570000] 0x0000003f0000-0x000000400000 : "art" [ 0.580000] 0x000000020000-0x0000003f0000 : "firmware" [ 0.600000] libphy: ag71xx_mdio: probed [ 0.600000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII [ 1.150000] ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY] [ 1.160000] TCP: cubic registered [ 1.170000] NET: Registered protocol family 17 [ 1.170000] Bridge firewalling registered [ 1.180000] 8021q: 802.1Q VLAN Support v1.8 [ 1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 1.190000] Freeing unused kernel memory: 260k freed [ 3.280000] usbcore: registered new interface driver usbfs [ 3.290000] usbcore: registered new interface driver hub [ 3.290000] usbcore: registered new device driver usb [ 3.520000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.530000] ehci-platform: EHCI generic platform driver [ 3.530000] ehci-platform ehci-platform: EHCI Host Controller [ 3.540000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 3.550000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 3.570000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 3.570000] hub 1-0:1.0: USB hub found [ 3.570000] hub 1-0:1.0: 1 port detected [ 3.640000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.040000] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 7.160000] eth0: link up (100Mbps/Full duplex) [ 7.490000] jffs2: notice: (334) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 11 of xref (0 dead, 2 orphan) found. [ 7.530000] eth0: link down [ 9.030000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5 [ 9.030000] Backport generated by backports.git backports-20130617-4-ge3220f5 [ 9.130000] cfg80211: Calling CRDA to update world regulatory domain [ 9.130000] cfg80211: World regulatory domain updated: [ 9.140000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 9.140000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 9.150000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 9.160000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 9.170000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 9.170000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 9.450000] NET: Registered protocol family 10 [ 9.960000] ath: EEPROM regdomain: 0x0 [ 9.960000] ath: EEPROM indicates default country code should be used [ 9.960000] ath: doing EEPROM country->regdmn map search [ 9.960000] ath: country maps to regdmn code: 0x3a [ 9.960000] ath: Country alpha2 being used: US [ 9.960000] ath: Regpair used: 0x3a [ 9.960000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 9.970000] cfg80211: Calling CRDA for country: US [ 9.970000] cfg80211: Regulatory domain changed to country: US [ 9.980000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 9.990000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) [ 9.990000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) [ 10.000000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.010000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.020000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 10.030000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) [ 10.030000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2 [ 10.190000] PPP generic driver version 2.4.2 [ 10.530000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 10.560000] xt_time: kernel timezone is -0000 [ 10.620000] NET: Registered protocol family 24 [ 10.730000] nf_conntrack version 0.5.0 (452 buckets, 1808 max) [ 11.490000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 15.910000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 15.910000] device eth0 entered promiscuous mode [ 15.920000] IPv6: ADDRCONF(NETDEV_UP): br-lan0: link is not ready [ 16.390000] eth0: link up (100Mbps/Full duplex) [ 16.390000] br-lan0: port 1(eth0) entered forwarding state [ 16.400000] br-lan0: port 1(eth0) entered forwarding state [ 16.400000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 16.410000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan0: link becomes ready [ 18.400000] br-lan0: port 1(eth0) entered forwarding state
network config (моя поделка):
config interface 'lan0' option ifname 'eth0' option type 'bridge' option proto 'static' option ipaddr '192.168.100.100' option netmask '255.255.255.0' option ip6assign '60' option gateway '192.168.100.1' option igmp_snooping 1 list dns '8.8.8.8' config interface 'lan1' option ifname 'eth1' option proto 'dhcp' option igmp_snooping 1
firewall для udpxy:
config rule option name 'Allow-IGMP' option src 'lan' option proto 'igmp' option target 'ACCEPT' config rule option name 'Allow-IPTV-UDPXY' option src 'lan' option proto 'all' option dest_ip '224.0.0.0/4' option target 'ACCEPT'
  0      
  0      
#1
Опции

Информация

Поблагодарили: 0

Просмотры: 1319

Ответы: 0