About XMTV Player › Forums › Help and Support › IPTV with OpenWRT and udpxy
This topic contains 0 replies, has 1 voice, and was last updated by support 2 years, 12 months ago.
-
AuthorPosts
-
9 January 2015 at 20:53 #623
All settings will be performed from the console,. Assuming that you are connected to the router via ssh under the root.
First install udpxy:
opkg update
opkg install udpxyAfter a successful installation, verify that the udpxy is started:
/usr/bin/udpxyThis command displays the version of the udpxy and its basic options.
Proceed to configure itself. In the folder /etc/init.d, create the file udpxy:
cd /etc/init.d
vi udpxyThis file is the startup script udpxy. Learn more about the starting scripts OpenWrt can be found here.
The contents of our file would be similar to the following:#!/bin/sh /etc/rc.common
# Copyright (C) 2010 OpenWrt.orgSTART=99
STOP=10IGMP_OPTS=”-a br-lan -m eth1 -p 8888 -M 600″
IGMP_BIN=”/usr/bin/udpxy”
PID_F=”/var/run/udpxy.pid”start() {
echo “Starting udpxy”
start-stop-daemon -S -x $IGMP_BIN -p $PID_F -b -m — $IGMP_OPTS
}stop() {
echo “Stopping udpxy”
start-stop-daemon -K -x $IGMP_BIN -q
}To start the service using start-stop-daemon-control utility to start and stop system services. In IGMP_BIN, specify what and where to start, PID_F is where to write the PID that would later follow him could follow, theIGMP_OPTS is set up to run the service.
Before you specify settings, I advise you to try running udpxy with these settings, and then move them to theconfig, it will help you avoid becoming a victim of typographical errors, and may save a little time.
Once all settings have been completed, close the file udpxy and run the service team
/etc/init.d/udpxy start
Check whether udpxy is started with the command
ps |grep udpxy
If you see only one line in, go back to settings and check that you did not. If everything is correct, you should get something like
1637 root 804 S /usr/bin/udpxy -a br-lan -m eth1 -p 8888 -M 600
29984 root 1372 S grep udpxyYou can also open the http://192.168.1.1:8888/status page in the browser to test that udpxy works.
Now you can add our Starter script to the startup. To do this, just run the command:/etc/init.d/udpxy enable
After that you should see the/ etc/rc.d directory symbolic link type S99udpxy. Check whether the script has been added to the startup, you can also command
/etc/init.d/udpxy enabled && echo «enabled»
If everything is OK you will receive in response enabled.
It left behind small-create rules for udp traffic:
config rule
option src wan
option proto igmp
option target ACCEPT
config rule
option src wan
option proto udp
option dest_ip 224.0.0.0/4
option target ACCEPTThese rules must be added to the/etc/config/firewall, and then restart the service by using the command:
/etc/init.d/firewall restart
You can also reload the router itself that would make sure that all necessary services are started, all working exactly as we intended.
Now we take the list of channels through an Internet service provider, and all links change as described in themanual to udpxy:http://{address}:{port}/{protocol}/{channel_addr}:{channel_port}
that is, if you have indicated in the channel list
rtp://@ 111.22.33.44: 1234
the output should behttp://192.168.1.1:8888/udp/111.22.33.44:1234
Then open the channel list in whatever player and enjoy.
-
This topic was modified 2 years, 12 months ago by
support.
-
This topic was modified 2 years, 12 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.