How can I achieve a remote connection to a client from a container, without using network_mode: host? #27275
-
Hello. I'm encountering an issue with FRP(Fast Reverse Proxy) for remote router connections. I can only establish a connection when the container's network mode is set to host. This is not a suitable configuration for me, as I need to utilize a custom network.
FRP Server Config:
FRP Client Config:
The logs indicate a successful connection between the client and server:
Upon successful connection, I enter the command But this is only functional when using network_mode: host. When I switch to a custom network or different modes, like network: pasta, SSH fails to connect.
My initial thought was that the problem lay with the client's IP, that it was being swapped out for Podman's internal IP. But upon checking, this wasn't the case. Is it possible to solve this task while preserving the client's IP and using a custom network, or not? Activation via socket for frp is not working. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
i assume you are doing this unprivileged in which has subtle differences in networking. so first question, do this work for a privileged user? |
Beta Was this translation helpful? Give feedback.
-
Just a wild guess, does it work if you use
? The reasoning is that 127.0.0.1 inside the container is not the same as 127.0.0.1 on the host when using rootless podman with pasta. Here is an example: Test 1: using
|
Beta Was this translation helpful? Give feedback.
Just a wild guess, does it work if you use
?
The reasoning is that 127.0.0.1 inside the container is not the same as 127.0.0.1 on the host when using rootless podman with pasta.
Here is an example:
Test 1: using
--bind 127.0.0.1
failsTest 2: using
--bind 0.0.0.0
succeeds