You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a server (let's assume its IP is 1.2.3.4) that has various things running, each of which are listening on 127.0.0.1:[port] where port is anything between 14000 and 15000. These things are intentionally listening on localhost as they should not be reachable on the internet.
I can run sshuttle : sshuttle -r root@1.2.3.4 1.2.3.4/32
but can't reach these ports, as my connection to 1.2.3.4 gets caught by sshuttle as it should be, forwarded to the server, and tries to connect to the same 1.2.3.4 there, where the services don't listen.
Would it be possible to add a fake localhost if same ip option, which would make the server, if it detects a connection to its own IP address, connect to 127.0.0.1 instead of said ip address?
Which would mean, that
I have a server (let's assume its IP is 1.2.3.4) that has various things running, each of which are listening on 127.0.0.1:[port] where port is anything between 14000 and 15000. These things are intentionally listening on localhost as they should not be reachable on the internet.
I can run sshuttle :
sshuttle -r root@1.2.3.4 1.2.3.4/32
but can't reach these ports, as my connection to 1.2.3.4 gets caught by sshuttle as it should be, forwarded to the server, and tries to connect to the same 1.2.3.4 there, where the services don't listen.
Would it be possible to add a
fake localhost if same ip
option, which would make the server, if it detects a connection to its own IP address, connect to 127.0.0.1 instead of said ip address?Which would mean, that
sshuttle -r root@1.2.3.4 1.2.3.4/32 --fake-localhost
forwards connections to 1.2.3.4 on my host to 127.0.0.1 on the 1.2.3.4 server?
The text was updated successfully, but these errors were encountered: