N
N
NO_GLITCH2016-04-17 07:50:35
linux
NO_GLITCH, 2016-04-17 07:50:35

How to route layer-7 traffic in linux?

There was a problem with DNS when using TOR, outside the Russian Federation.
It turned out that Tor's dns can't work with SRV records!
Because of this, protocols such as xmpp do not work.
The problem was temporarily solved by this design

iptables -t nat -A PREROUTING -i $_input_ -p udp --dport 53 -j DNAT --to 8.8.8.8:53

But unfortunately now all requests go through the specified address.
Question:
How (and is it possible at all) using the OpenDPI or l7-filter libraries to redirect to the required dns if --querytype=SRV ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ergil Osin, 2016-04-17
@Ernillew

To avoid leakage of DNS requests, use https://dnscrypt.org/
Because in your version, non-encrypted traffic going to Google may well be intercepted and substituted by a malicious provider.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question