Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote address as asteriks * #24

Open
stokito opened this issue Jun 22, 2023 · 1 comment
Open

Remote address as asteriks * #24

stokito opened this issue Jun 22, 2023 · 1 comment

Comments

@stokito
Copy link

stokito commented Jun 22, 2023

The -R option allows to set a remote interface and it can be ether:

  • omitted 80:localhost:8080
  • empty :80:localhost:8080
  • asterisk *:80:localhost:8080

The remote.moe is working only if it's omitted otherwise the tunnel will return 502 error.

The problem is that the OpenWrt sshtunnel package use the * if the remote address is not specified.
I created a PR that will allow an empty remoteaddr but it still won't solve the issue openwrt/packages#21263

From ssh man:

By default, TCP listening sockets on the server will be bound to
the loopback interface only. This may be overridden by specify‐
ing a bind_address. An empty bind_address, or the address ‘*’,
indicates that the remote socket should listen on all interfaces.
Specifying a remote bind_address will only succeed if the
server's GatewayPorts option is enabled (see sshd_config(5)).

Also another related problem is than the -N option disables output of the domain after connection. The same problem for the srv.us
pcarrier/srv.us#18

@fasmide
Copy link
Owner

fasmide commented Jun 27, 2023

The -R option allows to set a remote interface and it can be ether:

  • omitted 80:localhost:8080
  • empty :80:localhost:8080
  • asterisk *:80:localhost:8080

The remote.moe is working only if it's omitted otherwise the tunnel will return 502 error.

The problem is that the OpenWrt sshtunnel package use the * if the remote address is not specified. I created a PR that will allow an empty remoteaddr but it still won't solve the issue openwrt/packages#21263

Thats quite interesting - I cannot see why remotemoe shouldn't be able to accept any input as it doesn't use this information for anything (if I recall correctly) - so it shouldn't make any difference - but I would like to investigate this further at some point

Also another related problem is than the -N option disables output of the domain after connection. The same problem for the srv.us pcarrier/srv.us#18

Hmm, I have not had any problems using the -N client side when connecting to remotemoe - could you provide more information about this?

Thanks for submitting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants