Node's Perpetuum Mobile


    0.1.9 • Public • Published


    A reverse proxy tool which can let WAN server's data flows to LAN server. support TCP, HTTP, SSH or others protocol based on TCP.

    Getting started

    Prepare a WAN server and a LAN server. Follow the steps on both of servers.

    1. Download and install Node.js(>=12.0.0).
    2. Install damproxy
    $ npm i damproxy -g

    WAN Server

    Simple usage, forward data from port 80 and 443 to LAN server:

    $ damproxy listen --forward-ports 80 443

    Full options:

    $ damproxy listen --host --port 8991 --pwd mypassword --forward-ports 80@17080 443@17443



    Host for LAN server connection, default


    Port for LAN server connection, default 8991.


    Set the password to identify LAN server. Should less than 32 characters.


    Specify the port that will receive data from real client, then it will forward to the LAN server via the secondary port as outbound port. 80@17080 means receive data from 80 and forward to LAN server that output via 17080. Defaults the secondary port will automatically provided. May specify it in whitelist situation.

    LAN Server

    Simple usage, connect to WAN server

    $ damproxy connect --host x.x.x.x --forward-ports 80

    Full options:

    $ damproxy connect --host x.x.x.x --port 8991 --pwd mypassword --forward-ports 80 443@20443 22@



    WAN server's host to connect.


    WAN server's port to connect, default 8991.


    Send the password to WAN server. Should less than 32 characters.


    Whitelist of forwarding port and specify a redirect address. It formed by A@B:C which means allowing data from WAN server's port A and send it to B:C. 80 equivalent to 80@ and 80:8080 equivalent to 80@


    npm i damproxy

    DownloadsWeekly Downloads






    Unpacked Size

    33 kB

    Total Files


    Last publish


    • leecjson