Skip to content

geoai777/ergoproxy

Repository files navigation

eЯgo pЯoxy

Why?

Simple DNS UDP to TCP proxy script. Helps to send DNS requrest over TLS1.2+ connection, making everyday web browsing a bit safer ;)

How?

Workder script is based on this this code. I slightly modified it for variable setup convenience.

Please be advise, I use three proxy workers, each on other port. If you desire to do so, you should edit port name in worker script and save files with according names. The same applies to Stunnel config. If you intend to use less workers you should edit it accordingly.

zer0. You can simply

dpkg -i ergoproxy-2.0.deb

instead of p.2,3,4 and 6.

  1. Install stunnel and copy stu.conf (edit if needed) to /etc/stunnel/
apt install stunnel4
  1. Now, copy worker-ep1053 to worker-ep1054...worker-ep1055, remember to edit ports according to your needs.

  2. Put ctrl-eproxy.sh to /srv/dnstls.

  3. Finally put eproxy.service to /etc/systemd/system/.

systemctl enable eproxy.service
  1. Add following to /etc/bind/named.conf.options:
  forwarders {
    127.0.0.1 port 1053;
    127.0.0.1 port 1054;
    127.0.0.1 port 1055;
  }
  1. Start service.
systemctl start eproxy.service
  1. Restart DNS server (bind)
systemctl restart bind9.service

7.1. Run script to test your eproxy + stunnel is working

eproxy_test.sh

will give you something like:

00000000: cfc9 8180 0001 0001 0000 0000 0a64 7563  .............duc
00000010: 6b64 7563 6b67 6f03 636f 6d00 0001 0001  kduckgo.com.....
00000020: c00c 0001 0001 0000 007e 0004 2872 b19c  .........~..(r..

this means everything works well.

  1. (Optional) Restrict all DNS FORWARDING on your firewall so clients use only secure DNS server.

I hope it helps.

Links

Disclaimer

the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and oninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

About

DNS UDP to TCP proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published