Search results

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    Just finished another update of my script for downloading, installing, configuring and running sing-box on Asus routers with Merlin firmware. Updated 08/04/2024. Version v0.8 Added the commandsbs statuswhich shows whether sing-box is running, as well as the versions of the installed SBS script...
  2. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    New update for SBS (sing-box-script). To install the script, run this command on the router command line wget -O /jffs/scripts/sbs https://raw.githubusercontent.com/Dr4tez/sing-box4asus/main/sbs && chmod 775 /jffs/scripts/sbs && /jffs/scripts/sbs install
  3. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    -sh: dig: not found nslookup google.com 192.168.50.30 Server: 192.168.50.30 Address 1: 192.168.50.30 ubuntu-first.RT-AX86U Name: google.com Address 1: 142.250.74.78 arn09s23-in-f14.1e100.net Address 2: 2a00:1450:400f:802::200e arn09s23-in-x0e.1e100.net But, as I already said, I...
  4. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    They don't come there. At least AGH doesn't see them.
  5. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    I have never used DNS Director. I always have it turned off. I redirected DNS requests from the required devices from AGH to the required IP address and port in the web interface of AGH itself. And I have assigned only DoH servers as upstream resolvers in AGH. Or I misunderstood you.
  6. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    Adguard Home IP address as DNS in sing-box still does not work. And for a mobile phone connected via WiFi, this did not change anything. By the way, with the DNS request redirection method from Adguard Home it works for my mobile phone too, but with iptables it works only for the desktop. I...
  7. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    0: from all lookup local 79: from all lookup main suppress_prefixlength 0 80: from 192.168.50.49 lookup 555 81: from 192.168.50.48 lookup 555 82: from 192.168.50.47 lookup 555 83: from 192.168.50.45 lookup 555 84: from 192.168.50.43 lookup 555 85: from...
  8. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    Command "from" is unknown, try "ip rule help". Maybe I need ip rule add from all lookup main suppress_prefixlength 0?
  9. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    It was an interesting and useful experience with an attempt to implement the use of DNS servers specified in the sing-box configuration file. But too many shortcomings. For starters, the problem I noticed yesterday is that sing-box cannot use Adguard Home installed in my home network as a DNS...
  10. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    In the sing-box configuration file, the first outbound is used by default to direct DNS requests to the specified DNS server. For me, the first is "direct", that is, DNS requests to the DNS server should go to the local network, and not to the tunnel. But it is possible to forcibly specify where...
  11. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    I've thought about it too. But I've decided not to get involved with fwmark for now. I don't like him for some reason). Here's what's bothering me now. Solving one problem revealed another. The script works fine if any public DNS server is specified in the sing-box configuration file. But if...
  12. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    OK. I tested it. Everything works as expected. Thank you.
  13. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    I plan to use ipset to create an iptables rule for all the listed ip addresses. iptables -t nat -N SINGBOXDNS iptables -t nat -F SINGBOXDNS 2>/dev/null iptables -t nat -I PREROUTING -p tcp -m tcp --dport 53 -j SINGBOXDNS iptables -t nat -I PREROUTING -p udp -m udp --dport 53 -j SINGBOXDNS...
  14. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    You are right. If i remove DNS servers in LAN DHCP and enable "Advertise router's IP in addition to user-specified DNS" there, then everything starts working as intended. This suits me quite well. I will implement this in a script in the future.
  15. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    But with iptables this number does not work. DNS requests after executing the commands you have given go to Adguard Home. For me these were commands for ip 192.168.50.33. In the last two I had to specify tcp and udp, because without this the command line complained about their absence. iptables...
  16. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    Great idea. This trick worked with Adguard Home. I'll try with iptables.
  17. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    Thank you. I haven't tried it yet. When I have time, I'll definitely try it and let you know the result.
  18. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    I don't understand what is meant by SINGBOXDNS? <singbox_tun_ip>:portnr - will it look like 172.19.0.1:5553? 172.19.0.1 is the inet4_address of the tun interface, specified in the sing-box configuration file. 5553 is the port for receiving DNS requests?
  19. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    I haven't tried setting up a sing-box to accept DNS requests on a different port, but it seems possible. Can you show me the commands to create the necessary firewall rules? Redirecting requests from Adguard Home may not suit everyone, many simply do not use this tool.
  20. Kyjiep

    SBS. Script for using sing-box on Asus routers with Merlin firmware.

    All clients are assigned DNS via the router's dhcp. This is the IP address of the home Linux server with Adguard Home installed on it. For the router itself, the DNS server is the same Adguard Home. On it, I record DNS requests from each client separately, and that's how I find out that the...
Top