1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Enable remote port forwarding

Discussion in 'Tomato Firmware' started by beansbaxter, Sep 13, 2007.

  1. beansbaxter

    beansbaxter LI Guru Member

    I would like to enable remote port forwarding with dropbear.

    This is simply a matter of adding the -a argument but I can't find the script that starts dropbear to configure it.

    I tried adding this to the init script from the web gui but now I can't log in via SSH.

    /usr/bin/killall dropbear
    /usr/bin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 -s -a
    What is the proper way to do this in Tomato?
  2. conical

    conical LI Guru Member

    Dynamic Port forwarding works.

    Dynamic Port forwarding works out of the box if that helps any.
  3. beansbaxter

    beansbaxter LI Guru Member

    It's not really a port forwarding situation in that sense. It's tunneling through SSH that I'm trying to make work. Local port forwarding works fine, it's just that, be default, dropbear doesn't enable remote port forwarding.
  4. beansbaxter

    beansbaxter LI Guru Member

    Does anybody else have a way to do this?

    I'd really like to avoid having to compile my own version just to enable this feature but I can do that if someone could point out where I would change the dropbear startup arguments.
  5. roadkill

    roadkill Super Moderator Staff Member Member

    this is the line which activates the dropbear daemon
    xstart("dropbear", "-p", nvram_safe_get("sshd_port"), nvram_match("sshd_pass", "1") ? "" : "-s");

Share This Page