塔奇克马 发表于 2023-10-27 15:04

如何让openwrt下的Qbit和Aria2走不同的网卡?

这个openwrt是附路由.

我希望qbit走wan/wanv6直连非出国192.168.1.1
而aria2走lan过出国路由192.168.6.1
这个能实现吗?
当然我也可以牺牲点内存在宿主机上弄个docker_aria2ng这样我什么都不用做,但是我还是想问问.


紧那罗 发表于 2023-10-27 15:27

本帖最后由 紧那罗 于 2023-10-27 15:30 编辑

我能想到的要么套一层代理要么套一层docker来区分了。
哦 对了 这两个下载软件都能设使用的端口区间吧 用端口段区分一下往哪走应该也行?

ltycomputer 发表于 2023-10-27 16:11

没法让nftables区分流量的话应该办不到

不如跑个docker设置网关/根据不同的源IP路由

萌名雪 发表于 2023-10-27 16:44

本帖最后由 萌名雪 于 2023-10-27 16:45 编辑

aria2c --interface eth0

qBittorrent 高级设置里有 bind interface 的选项(GUI 齿轮 —— 高级 —— 网络接口)

对网络应用而言,能选择 bind interface 是基操

塔奇克马 发表于 2023-10-27 18:44

萌名雪 发表于 2023-10-27 16:44
qBittorrent 高级设置里有 bind interface 的选项(GUI 齿轮 —— 高级 —— 网络接口)

对网络应用而言 ...
试了下
log中显示
2023-10-27 10:31:09.372673 Finding interface eth0
2023-10-27 10:31:09.372916 Sockets will bind to 192.168.6.254
2023-10-27 10:31:09.373175 Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.
2023-10-27 10:31:09.373363 CUID#8 - Using port 6800 for accepting new connections
2023-10-27 10:31:09.373477 IPv4 RPC: listening on TCP port 6800
2023-10-27 10:31:09.407076 Trusted CA certificates were successfully added.
2023-10-27 10:31:09.424388 RPC: Accepted the connection from 192.168.6.178:50002.
2023-10-27 10:31:09.424908 HTTP Server received request但是出国那部分文件还是无法下载,

HSJ1992 发表于 2023-10-27 21:36

塔奇克马 发表于 2023-10-27 18:44
试了下
log中显示
但是出国那部分文件还是无法下载,

可以看看docker使用macvlan,但是一是更复杂,二是会影响性能。自己取舍看看。

塔奇克马 发表于 2023-10-27 22:46

HSJ1992 发表于 2023-10-27 21:36
可以看看docker使用macvlan,但是一是更复杂,二是会影响性能。自己取舍看看。 ...

换了几个版本...不是aria2不行就是qbit不行..最后换了个定制版好像可以了
页: [1]
查看完整版本: 如何让openwrt下的Qbit和Aria2走不同的网卡?