Free the mouse Replay RnsProxy
Home | Changes | Index | Search | Go

RnsProxy

Introduction

The proxy is a very simple perl-based transparent proxy, specialized for intercepting the RnsProtocol requests.

Transparency

As presented, it can't stand alone -- you'll have to get requests to it somehow.

With a linux 2.4 machine using iptables acting as your NAT server/router, something like

iptables -t nat -I PREROUTING -p tcp -d 64.124.80.10  --dport 80 -j REDIRECT --to-ports 4081
iptables -t nat -I PREROUTING -p tcp -d 64.124.73.105 --dport 80 -j REDIRECT --to-ports 4081
does it. For other routers, you'll need to do something else.

It may not be possible with the consumer-grade appliances. Another possiblity would be to have the DNS server used by the Replay lie to it, giving your PC's IP address when queried for rns.replaytv.net; in this case, the proxy would need to run on port 80.

Non-Transparency

If the proxy was totally transparent, there'd be little point to it.

Logging

Each request is logged to a file in the logs directory; this can be disabled by setting $logs=0; early in the script.

Shell Commands

If there's a shellcmds file in the current directory, its contents are returned in response to the request for shell commands, in place of the actual response (which is usually empty). This is an easy way to execute shell commands (other ways, or possible ways: PanelScriptExec?, PTVIO, modifying StartupScript?).

Some interesting commands to experiment with are

Warning

There may be bugs in the proxy, preventing proper communication between the two sides. That could easily lead to channel guide problems and could conceivably lead to more serious problems. Running shell commands is always risky and may have unexpected, unintended, permanently disasterous consequences. Be careful out there.

-- ToddLarason - 11 Mar 2002

Attachment: Action: Size: Date: Who: Comment:
proxy.pl action 3651 09 Mar 2002 - 16:09 ToddLarason proxy.pl
replaytv_proxy.pl action 3880 08 Aug 2004 - 02:09 ToddLarason updated for new hostname

Topic RnsProxy . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 11 Mar 2002 - 09:31 GMT - ToddLarason
Parents: WebHome > RnsProtocol
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.