GithubHelp home page GithubHelp logo

Tunneling over HTTP(S) about syncthing HOT 13 CLOSED

jpjp avatar jpjp commented on August 20, 2024
Tunneling over HTTP(S)

from syncthing.

Comments (13)

calmh avatar calmh commented on August 20, 2024

For firewall busting purposes?

from syncthing.

calmh avatar calmh commented on August 20, 2024

(It is, obviously, forwardable over SSH or something like that that forwards raw TCP connections.)

from syncthing.

jpjp avatar jpjp commented on August 20, 2024

Yes for firewall busting purposes.

Edit: okay so the recommendation is forward over ssh on top of https with something like sslh.

from syncthing.

calmh avatar calmh commented on August 20, 2024

Well no, I wasn't recommending anything, just understanding the request :)

from syncthing.

jpjp avatar jpjp commented on August 20, 2024

hehe okay. I was initially thinking about firewall busting with a --modification-option, then it moved onto a thinking of a way of getting multiple cluster support by proxying over http using custom urls.

from syncthing.

lucapost avatar lucapost commented on August 20, 2024

At work I have local pc behind http proxy. I can setup local and remote port forwarding with some client (ssh on unix, putty, winscp, ecc) to my remote vps, but I don't understand which ports I need to forward? Sync Protocol Listen Addresses localhost:22000? Device addresses localhost:XXXXX? both? can anybody help me about? Thanks for help.

from syncthing.

AudriusButkevicius avatar AudriusButkevicius commented on August 20, 2024

Depends on what you want to do.
If you just want to sync, you can forward remote:22000 to local:22001 , and then change the IP of the device from dynamic to localhost:22001

from syncthing.

lucapost avatar lucapost commented on August 20, 2024

Uhm, which ports i need to open for get Global Discovery ok?
I can forward request to network office admin.

Thanks,
LP

from syncthing.

AudriusButkevicius avatar AudriusButkevicius commented on August 20, 2024

You don't need to forward any ports for discovery to work as its outbound only.
For syncthing itself to work, you need to forward the protocol port.

from syncthing.

jdbancal avatar jdbancal commented on August 20, 2024

Hello, I'm trying to do what is explained here above, i.e. forward remote:22000 to local:22001, but I don't manage to make it work... How can we achieve this?

Here's what I did:

ssh user@remote -L 22001:localhost:22000

Then launch syncthing with the "Sync Protocol Listen Addresses" set to "localhost:22001". This gives me the following error message:

FATAL: listen (BEP): listen tcp 127.0.0.1:22001: bind: address already in use

and systematically crashed syncthing.

I checked that "netstat -tulpn | grep 22001" gives me nothing before running ssh, and it gives me

tcp        0      0 127.0.0.1:22001         0.0.0.0:*               LISTEN      20500/ssh       
tcp6       0      0 ::1:22001               :::*                    LISTEN      20500/ssh 

once the ssh tunnel is open....

from syncthing.

AudriusButkevicius avatar AudriusButkevicius commented on August 20, 2024

You have to forwarding remote:22000 to local:22001, and then on local listen on 22000, and set remote machines ip as localhost:220001.

from syncthing.

jdbancal avatar jdbancal commented on August 20, 2024

Thanks for your reply. Sorry I'm not very familiar with ssh tunneling... Can you give me an example of what I should type on each machine in order to do this forwarding in the right direction? (The local machine is the one behind a firewall)

from syncthing.

AudriusButkevicius avatar AudriusButkevicius commented on August 20, 2024

Please use the forums for support.

from syncthing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.