My task is to configure OpenWrt with Outline client for specific IP/DNS addresses.
For example, I want a specified IP/DNS pool to be accessed with Outline tunnel configured in OpenWrt, other addresses should be accessed through the main gateway (for example as, AllowedIPS on WireGuard).
Please send instructions on how to do this using available tools OpenWrt.
In order to avoid burdening anyone with additional information, can you tell me which tools from your instructions i can using for create routing rules?
I already did installed Outline, tunnel worked, but for all traffic, as the forwarding port was configured, which is why the rules PBR did not work. Iam not very familiar with routing settings and maybe mistaken.
You suggest using resolver dnsmasq nft set in PBR?
My last post made sense as an alternative implementation of my idea.
I went on to implement dnsmasq.
I have only 1 internet adapter (br-lan eth0). I thought that i could create a second adapter or alias for eth0 and send all traffic through tunnel on SS rule.
However, this did not work. Alias could not be assigned as an interface for SS, and second adapter (eth1) did not connect to internet when assigned in ss_redir and ss_tunnel.
Therefore, i have a question, what should I do to create DNS routing?
Should I create another adapter (eth1)? If so, in what mode should it be configured?