Skip to content

Localhost access to server #66

Closed
@Aptimex

Description

@Aptimex

Currently there doesn't seem to be any way to access the localhost interface (127.0.0.1) of a server. It would be really handy to be able to do so, since it's common for some services to only listen on localhost interfaces.

But adding AllowedIP routes for localhost addresses probably isn't a great idea; might mess up the client's networking.

@luker983 would it be possible (with how Wiretap's networking stack works) to let users specify a "localhost" access IP for each server, which the receiving server would then just send to 127.0.0.1 instead? For example:

wiretap configure -e 192.168.1.2:51820 -r 10.0.0.0/8 --localhost-ip 1.2.3.4

This would add something like localhost-ip = 1.2.3.4 to the server config, and 1.2.3.4 to the AllowedIPs of the client config. Then once setup, curl 1.2.3.4 would actually get connected to 127.0.0.1 of the associated server.

It would be up to the user to make sure they pick a mock localhost IP that they don't otherwise need to be able to actually talk to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestplanned featureLikely to get implemented in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions