Ok, thanks Harald. I'll check it out and share my results with you.

On Mon, Feb 8, 2021 at 11:57 PM Harald Welte <laforge@osmocom.org> wrote:
Hi,

On Sun, Feb 07, 2021 at 10:10:22PM +0330, morteza ali Ahmadi wrote:
> How can we receive DNS responses to our DNS query? (Does tun4 require
> routing or something else?)

It is a normal linux network device and you will need to set up routing
normally.  Like routing to any other net-device.  There's no difference
with any other net-device.  You can use routing, packet filtering, traffic
shaping, NAT, ... as usual.

--
- Harald Welte <laforge@osmocom.org>            http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)


--
When there is much light, The shadow is deep...