Score:0

how to setup socks5 proxy server on centos9 for network access behind firewall?

et flag

I need a socks proxy on centos 9, to access services from an (internal) network behind a firewall.

It should be a socks 5 proxy (dynamic port forwarding) that can only be used by the configured ssh users on the system.

Only destinations from the internal network should be reachable. For example, no external destinations/websites on the Internet should be addressed via the socks proxy.

client 
   ===SSH tunnel (from external network)
      ===> SSH-server 
           ---internal network (only)
              ---> https Server ...

The client can initiate tunnel with dynamic port forwarding and use the ssh connection as a socks5 proxy.

ssh -D 1080 -q -C -N SSH-server

There is no need to configure something socks proxy related on the SSH-server?

I noticed dante-server, but there is no repo and it seems to be no official solution. What is the advantage?

I could not find something to limit the forwarded connections.

How can I set up such a socks proxy?

Romeo Ninov avatar
in flag
What did you try so far? Or you expect we will do your work?
Ginnungagap avatar
gu flag
[How do I ask a good question?](https://serverfault.com/help/how-to-ask)
Romeo Ninov avatar
in flag
Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.