If you are using a graphical client, please provide the version of the client.
No response
Version
1.9.4
Description
When I use strict_route in TUN I can't connect to the HTTP local server that listen on the localhost I get ERR_CONNECTION_REFUSED, but if I listen on 127.0.0.0.1 or 0.0.0.0 instead of localhost it's working, another way to make it work is to disable strict_route in sing-box configuration.
I saw in documentation that apps like VirtualBox may not work properly with strict_route, but I don't if this applies to this case.
Create server via node.js (You can use something else):
const http = require('http');
const hostname = 'localhost'; // If use 127.0.0.1 or 0.0.0.0 it will work
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello, this is a response from your Node.js server!\n');
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
[X] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
[X] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
[X] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
[X] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
Operating system
Windows
System version
10
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
Description
When I use strict_route in TUN I can't connect to the HTTP local server that listen on the localhost I get ERR_CONNECTION_REFUSED, but if I listen on 127.0.0.0.1 or 0.0.0.0 instead of localhost it's working, another way to make it work is to disable strict_route in sing-box configuration.
I saw in documentation that apps like VirtualBox may not work properly with strict_route, but I don't if this applies to this case.
Reproduction
Configure client:
Create server via node.js (You can use something else):
Start server:
node server.js
Go to http://localhost:3000/
Logs
No response
Supporter
Integrity requirements