Changes between Version 58 and Version 59 of faq


Ignore:
Timestamp:
Sep 15, 2010 1:36:07 PM (9 years ago)
Author:
darrob
Comment:

add ssh tunnel instructions

Legend:

Unmodified
Added
Removed
Modified
  • faq

    v58 v59  
    156156
    157157 * __How can I access the web console from my other machines or password protect it?__
    158    *  For security purposes, the router's admin console by default only listens for connections on the local interface. However, with a little hacking, you can make it reachable remotely:
    159      1. Open up clients.config and replace
    160         clientApp.0.args=7657 ::1,127.0.0.1 ./webapps/
    161         with
    162         clientApp.0.args=7657 0.0.0.0 ./webapps/
    163      2. Go to http://localhost:7657/configadvanced.jsp and add a new option: consolePassword=foo (or whatever password you want)
    164      3. Go to http://localhost:7657/index.jsp and hit "Graceful restart", which restarts the JVM and reloads the client applications
    165      4. After that fires up, you should now be able to reach your console remotely. You will be prompted for a username and password though - the username is "admin" and the password is whatever you specified in step 2 above. Note: the 0.0.0.0 above specifies an interface, not a network or netmask. 0.0.0.0 means "bind to all interfaces", so it can be reachable on 127.0.0.1:7657 as well as any LAN/WAN IP.
    166    * ''darrob: also offer the SSH tunnel way.''
     158   *  '''Listen address:''' For security purposes, the router's admin console by default only listens for connections on the local interface. However, with a little hacking, you can make it reachable remotely:
     159     1. Open up `clients.config` and replace
     160        `clientApp.0.args=7657 ::1,127.0.0.1 ./webapps/` with `clientApp.0.args=7657 0.0.0.0 ./webapps/`.
     161     2. Go to http://localhost:7657/configadvanced.jsp and add a new option: `consolePassword=foo` (or whatever password you want).
     162     3. Go to http://localhost:7657/index.jsp and hit "Graceful restart", which restarts the JVM and reloads the client applications.
     163     4. After that fires up, you should now be able to reach your console remotely. You will be prompted for a username and password though - the username is "admin" and the password is whatever you specified in step 2 above.
     164     * Note: the `0.0.0.0` above specifies an interface, not a network or netmask. `0.0.0.0` means "bind to all interfaces", so it can be reachable on 127.0.0.1:7657 as well as any LAN/WAN IP.
     165   * '''SSH tunnels:''' You can access the router console by tunneling port 4444 through an SSH connection. You can also tunnel any other port you need, for example 7657 to access eepsites. To create such an SSH tunnel either run `ssh -L7657:127.0.0.1:7657 -L4444:127.0.0.1:4444 $USER@$SERVER'` or set the appropriate !LocalForwards in your ~/.ssh/config file.
    167166
    168167 * __How can I use applications from my other machines?__