Results 1 to 6 of 6

Thread: Running dropbear on http port

  1. #1

    Running dropbear on http port

    Sometimes I'm behind a firewall that only allows outgoing traffic through port 80, which prevents me SSH access to my ASUS.

    If I try to change dropbear to listen on port 80, I get this error:
    Code:
    dropbear[345]: Failed listening on '80': Error listening: Address already in use
    dropbear[345]: premature exit: No listening ports available.
    The problem seems to be the web GUI, which is listening on: 0 0.0.0.0:80.
    How can I change the listening address of the WWW GUI?

    I'm using 1.9.2.7-d-r740.

  2. #2
    Are you using a tunnel?

    Don't think its the WebGUI as its ported to 8XXX from WAN? But you can kill the httpd process to test I suppose?
    Last edited by velcrow; 03-02-2010 at 15:14.

  3. #3
    Hi, thanks for the reply!

    No, I'm not using a tunnel.

    The web GUI seems to listen on all adresses on port 80.
    Code:
    $ lsof -nP -i | grep httpd
    httpd      40    root    5u  IPv4    249       TCP *:80 (LISTEN)
    I have no idea how to change the settings for the default httpd server. I remember I've tried this before...
    Last edited by RDF; 03-02-2010 at 17:49.

  4. #4
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Quote Originally Posted by RDF View Post
    I have no idea how to change the settings for the default httpd server. I remember I've tried this before...
    Just search this forum
    http://wl500g.info/showthread.php?t=...t=http_lanport

  5. #5
    Quote Originally Posted by lly View Post
    Thanks, and sorry for not searching carefully enough.

    So I can set the httpd port by setting the "http_lanport" nvram variable.
    But why is httpd listening on all addresses (0.0.0.0), if I'm just using http_lanport?
    There's also a variable called http_wanport, which is set to none.

    I can't find a variable for the listening address? Is there supposed to be a variable like http_listeningaddress? Or how to change it to listen just the LAN IP?

  6. #6
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Builtin httpd always listen on all interfaces, but incoming WAN connections is blocked in firewall by default. You have to learn iptables to know how it is working.

    http_wanport variable used to forward some port from WAN (if it is enabled in web-UI) to http_lanport port.

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 13:16

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •