FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

11942 questions

14213 answers

22413 comments

35331 members

+1 vote
1,650 views 2 comments
by
Hello,

i have a RUT240 router, and i know that is linux openwrt.

Can i enter to console and make a script listening on a router port and switch external I/O ?

I need to implement watchdog for devices on local network.

Regards

1 Answer

+1 vote
by
Hi,

So other devices will be sending request to the router and you want to catch them?

What tool will you be using on those devices for sending the requests? Will it be plain TCP/UDP packet or maybe HTTP request?

Will there be more than one device that sends the requests? If yes, do you need to differentiate them (by different ports, IPs, TCP/UDP payload etc.)?
Best answer
by
only unique android device.

it send http request for watchdog. port 80 i think
by

I assume you can control the text of HTTP request (otherwise I don't think there is an easy solution). All you need is to enable Output control via HTTP POST/GET requests:

https://wiki.teltonika.lt/index.php?title=Input/Output#Post.2FGet_Configuration

Usage examples are  here:

https://wiki.teltonika.lt/index.php?title=Input/Output#Post.2FGet_usage