T
T
tumremont2018-10-09 20:33:18
linux
tumremont, 2018-10-09 20:33:18

Linux+socks5+TCP+UDP+DNS+WEBRTC?

Good afternoon. raspberry pi distributes the Internet via wi-fi. Installed on raspberry pi 3 b+:
1.3proxy proxy traffic to socks5. 3proxy.cfg config:

#1
internal 192.168.22.1
daemon
flush
auth iponly
allow * * * *
parent 1000 socks5 127.0.0.1 9050
tcppm -i192.168.22.1 6666 127.0.0.1 11111

Now, as I understand it, all requests go to Tor.
2.dns_proxy Config dns_proxy.conf:
# set the port of the socks proxy
socks_port = 8000

# set the address of the socks proxy
socks_addr = ***.152.**.***

# set the listen address of the dns proxy
listen_addr = 192.168.22.1

# set the listen port of the dns proxy 
listen_port = 53

# set the username to drop to
set_user = root

# set the group name to drop to
set_group = root

# file to read as resolv.conf
resolv_conf = /etc/dnsproxy/resolv.conf

# file to log to, should be /dev/null unless debugging
#log_file = /dev/null

and the second resolv.conf:
пустой
What I want to get. I have socks5 in this format IP:PORT:LOGIN:PASS or IP:PORT.
I need all requests from WI-FI to go to socks5.TCP,UDP traffic.DNS to display that socks5 and WEBRTC to show IP socks5. If you go to the https://whoer.net/ru service, then we see according to the standard Provider's DNS:
Браузер
 217.***.**.*  Russian Federation
 217.**.***.*  Russian Federation

And then there is a parameter:
WebRTC
 192.168.1.100
*.**.***.** Russian Federation

here it usually displays your real local IP issued by the modem and the IP of the provider.
Tell me how to make all this work and what config to register? Maybe it's easier to install iptables and configure it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question