Score:0

Config Wireguard server to use a socks proxy to access internet

hu flag

enter image description here

There is a Wiregurad server that is working perfectly, but we need that Wireguard's server connect to the internet using socks proxy through the second server and ONLY Wireguard, Not other programs and whole server.

Additional Informations:

  • Server 1 (Wireguard Server) is located in our country but Server 2 is located in another country.

  • Wireguard protocol has been blocked for outside servers such as Server 2, So I can not config Wireguard on the Server 2 and create a Multihop, I tested before. (and even tested with udp2raw)

  • We are accessing to the Server 2 using ssh -D $port_number $username@$hostname.

  • I don't want to lose the remote connection after setup.

  • I have some other programs running in the Wireguard server and I don't want to effect them as well.

  • I have limited knowledge and I'm doing this for freedom of speak for the people, So please give me some commands to copy and paste or guide me step by step, thanks! I'm trying for days and I tested every tutorial and article on the google for different ways of achieving my goal, even different alternatives of Wireguard and nothing worked (because of government limitations), Only ssh tunneling works, finish this nightmare please.

Wireguard server config file wg0.conf:

[Interface]
Address = 10.200.0.1/24
ListenPort = 5553
PrivateKey = <server_private_key>
PreUp = iptables --table nat --append POSTROUTING --jump MASQUERADE --out-interface eth0
PreDown = iptables --table nat --delete POSTROUTING --jump MASQUERADE --out-interface eth0
MTU = 1500

[Peer]
## Client 1
AllowedIPs = 10.200.0.2/32
PublicKey = <client_public_key>
ru flag
Wireguard is its own protocol, it doesn't I believe work with SOCKS protocols. Very few VPN protocols work with SOCKS proxies.
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.