L
L
luna-312016-02-07 16:24:46
linux
luna-31, 2016-02-07 16:24:46

How to open LAN ports in Linux instead of IPTV (DLINK router)?

Hello everybody!
I have a DLINK router, in which 3 out of 4 ports are configured as a bridge for IPTV (as I understood from the forums, it is wired in the firmware). There were no firmware for it (more precisely, one was found, but there is no Internet with it), attempts to upload new configs also did not help, as a result, I got inside by changing the root password.
Inside was Linux 2.6.34.8-BL2.1.10.1, web-muzzle - Mbedthis-Appweb After looking at the Appweb
pages, which are not in the router menu, I found a page with ports:

Port1: Route Mode
Port2: Bridge Mode
Port3: Bridge Mode
Port4: Bridge Mode
But there is no page managing ports.
And in the config file there are lines:
IFMGR_CONFIG_LAN_PORT_MODE_ETH_0=1
IFMGR_CONFIG_LAN_PORT_MODE_ETH_1=0
IFMGR_CONFIG_LAN_PORT_MODE_ETH_2=0
IFMGR_CONFIG_LAN_PORT_MODE_ETH_3=0
If all interfaces are set to 1, after uploading the config and rebooting the router, ETH_2,3,4 return to 0. Therefore, I decided that the system controls this from the inside. Unfortunately, with Linux, I'm on a big YOU, and I can not understand where the interfaces are edited.
I also found the udhcpd.conf file with the content:
udhcpd_enable 1
interface lan0
start 192.168.0.2
end 192.168.0.200
... options ..

Could this be it?
In general, who is familiar with the firmware of routers and / or their OS, I ask for advice on where to poke or where to read about such OS?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
LESHIY_ODESSA, 2016-02-08
@LESHIY_ODESSA

You won't change anything. The firmware is protected. Change to alternative firmware.

A
Alexander Khirenko, 2014-10-03
@Satanpit

You have an interesting check for existence, you compare the id of the news with the number of all articles :)
$query = mysql_query("SELECT COUNT(*) FROM news WHERE id='".$get_news."'" ");
and check like this if( $row[0] > 0)
But why do you need it, you can check the result of this query directly:
instead of doing a separate COUNT(*) query, it makes no sense.And
I strongly advise you to use PDO.

A
Andrey Kulikovsky, 2014-10-04
@by25

You always need to filter parameters. You have a lot of SQL injections here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question