How To: Tunnel/Proxy CCcam on UR with dropbear

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ToneDeff
    Junior Member
    • Feb 2010
    • 34

    #1

    How To: Tunnel/Proxy CCcam on UR with dropbear

    Had been wondering about the posibility for tunneling connections on my TM for a while, already had an ssh server setup for other things and stumbled across an ssh client used on some Enigma images that had the ability for remote port forwarding on certain version.

    using "dropbear" to connect to an ssh server your able to hide your home i.p from cccam servers and also hide the data being sent from your isp.

    here's a guide to how i got it working, it's deffinelty not for someone without a fair bit of linux experience, and you'll need a "Remote Server" that has SSH running.

    -ftp DropBear.0.52-UR.tar.gz to /tmp/
    -manual install from addons
    -open telnet session to "UR"
    -then enter ln -s /var/dropbear/bin/dropbearmulti /var/dropbear/ssh
    -then connect to the remote server with /var/dropbear/ssh [email protected]/920

    ssh client = /var/dropbear/ssh
    ssh user = user
    ssh server.address/port= @ssh.server.ru/920
    it will show

    /var/dropbear/ssh: Warning: failed creating //.ssh: Read-only file system

    Host 'ssh.server.ru' is not in the trusted hosts file.
    (fingerprint md5 ****************************)
    Do you want to continue connecting? (y/n) y
    [email protected]'s password:
    -press y
    -then enter the ssh server password
    -if it logs in ok then you can continue ;P
    -type exit to get back to UR telnet

    -get your clines
    C: server.no-ip.biz 12000 ***** *****
    C: server2.no-ip.biz 12001 ***** *****
    -now you need to create ssh login lines to forward those address through tunnel
    /var/dropbear/ssh -f [email protected]/920 -L 12000:server.no-ip.biz:12000
    /var/dropbear/ssh -f [email protected]/920 -L 22001:server2.no-ip.biz:12001

    tunnel port = 22001: *i made this 1k higher then the first tunnel no reason to aslong as it's different
    cline serv = server2.no-ip.biz:12001

    also added -f so that you can close telnet and tunnel stays connected

    and -L to enable to port tunneling option
    -once you have lines ready enter them into telnet to "UR"
    -/var/dropbear/ssh -f [email protected]/920 -L 12000:server.no-ip.biz:12000
    do the same login procedure as first time, after password you will get put back to "UR" telnet
    -enter any other lines you need after changing tunnel port and server
    -/var/dropbear/ssh -f [email protected]/920 -L 22001:server2.no-ip.biz:12001
    -you can now close telnet session.

    -now open cccam.cfg and edit the clines to
    C: localhost 12000 ***** *****
    C: localhost 22001 ***** *****

    change addresses to localhost and the ports to the new "tunnel ports" you set on dropbear
    if it all worked it should clear now...



    hope that makes some kind of sense, at least it will remind me how to do it when i forget

    i only use cccam as a client not sure if dropbear would be able to accept incoming request from the remote i.p to share a local out, although it might be possible with right settings i didn't look into that side.

    i think it will work with any CAM's as all the tunneling etc is done by dropbear and is forced by what address you set CAM to use.

    p.s
    you need to reconnect ssh tunnels after rebooting box.

    -open telnet session to "UR"
    -/var/dropbear/ssh -f [email protected]/920 -L 12000:server.no-ip.biz:12000
    -/var/dropbear/ssh -f [email protected]/920 -L 22001:server2.no-ip.biz:12001
    -enter passwords then close telnet.

    p.p.s
    "dropbearmulti" contains all the ssh server etc, all i have tested and being used in this is the ssh client.
    Attached Files
    Last edited by ToneDeff; 23 June, 2010, 15:55.
  • traxxas
    Newbie
    • Jun 2011
    • 1

    #2
    Hi,
    thank you for this explanation.

    It's Ok for SSh client but how to do for server ssh ?

    Many thanks

    Comment

    • arazvan13
      Newbie
      • Aug 2011
      • 1

      #3
      It will work with any ssh server?

      Thanks

      Comment

      • boba091
        Newbie
        • Oct 2011
        • 1

        #4
        thanks just wot i needed

        Comment

        Working...