Closed yusian closed 1 year ago
For 22.03 openwrt
#nftables
opkg update
opkg install coreutils-nohup bash dnsmasq-full curl ca-certificates ipset ip-full libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
issue:
Unable to set capabilities [--caps=cap_sys_resource,cap_dac_override,cap_net_raw,cap_net_bind_service,cap_net_admin,cap_sys_ptrace+eip]
You need to reinstall the libcap & libcap-bin
Thanks for your response, I reinstalled the libcap and libcap-bin but it doesn't work.
Except that, I can't install app in the Software view。
Is there something wrong in Docker or something configuration needs to be done? I installed everything fine in VirtualBox.
I'm sorry, It may be a problem with docker.
I got same problem, bug I have a container without this problem.
But I forgot how to config that, I try to use that image but got same error.
Another thing different is that successful docker router using macnet not bridge
@yusian I get success! the container need privilege
https://github.com/yangyaofei/docker-openclash you can see this
docker build -t openclash .
docker run --privileged openclash
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days
Verify Steps
OpenClash Version
v0.45.70-beta
Bug on Environment
Docker
Bug on Platform
Linux-amd64(x86-64)
To Reproduce
Basic info:
OS: Ubuntu 22.04.01 LTS Docker version 20.10.21, build baeda1f Docker Image: openwrtorg/rootfs:x86-64-openwrt-22.03
My steps:
terminal output:
ip: can't send flush request: Operation not permitted ip: SIOCSIFFLAGS: Operation not permitted
Please press Enter to activate this console.
BusyBox v1.35.0 (2022-10-14 22:44:41 UTC) built-in shell (ash)
/bin/ash: can't access tty; job control turned off
| |.-----.-----.-----.| | | |.----.| | | - || | -| || | | || || | |___|| |_||||____||| |__| |__| W I R E L E S S F R E E D O M
OpenWrt 22.03.2, r19803-9a599fee93
=== WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins.
root@4f2ef91c5d81:/#
In this process I get a error:
then, I remove the dnsmasq and try it again:
download and install openclash.ipk
Somes like it's success, I restart the docker instance
Describe the Bug
after startup, I created a config file, all of other settings is default, then clicked Enable OpenClash.
OpenClash Log
2022-11-27 04:55:23 Step 6: Delete OpenClash Residue File... 2022-11-27 04:55:23 Step 5: Restart Dnsmasq... 2022-11-27 04:55:23 Step 4: Close The Clash Core Process... 2022-11-27 04:55:23 Step 3: Close The OpenClash Daemons... 2022-11-27 04:55:23 Step 2: Delete OpenClash Firewall Rules... 2022-11-27 04:55:23 Step 1: Backup The Current Groups State... 2022-11-27 04:55:23 OpenClash Stoping... 2022-11-27 04:55:20 Error: Get General 'redir-port' Option Error, OpenClash Can Not Start With Raw Config File 2022-11-27 04:55:18 Error: Get DNS 'enhanced-mode' Option Error, OpenClash Can Not Start With Raw Config File 2022-11-27 04:55:16 Error: Get DNS 'listen' Option Error, OpenClash Can Not Start With Raw Config File 2022-11-27 04:55:16 Error: OpenClash Can Not Start, Try Use Raw Config Restart Again... 2022-11-27 04:55:16 Step 6: Wait For The File Downloading... 2022-11-27 04:55:13 Step 5: Check The Core Status... Unable to set capabilities [--caps=cap_sys_resource,cap_dac_override,cap_net_raw,cap_net_bind_service,cap_net_admin,cap_sys_ptrace+eip] 2022-11-27 04:55:12 Tip: No Special Configuration Detected, Use Dev Core to Start... 2022-11-27 04:55:12 Step 4: Start Running The Clash Core... 2022-11-27 04:55:11 Tip: You have seted the authentication of SOCKS5/HTTP(S) proxy with【Clash:itN9D7MN】 2022-11-27 04:55:11 Step 3: Modify The Config File... 2022-11-27 04:55:11 CN Domains List Update Successful! 2022-11-27 04:55:11 CN Domains List Has Been Updated, Starting To Replace The Old Version... 2022-11-27 04:55:11 CN Domains List Download Success, Check Updated... 2022-11-27 04:55:10 Start Downloading The CN Domains List... 2022-11-27 04:55:10 Chnroute6 Cidr List Update Successful! 2022-11-27 04:55:10 Chnroute6 Cidr List Has Been Updated, Starting To Replace The Old Version... 2022-11-27 04:55:10 Chnroute6 Cidr List Download Success, Check Updated... 2022-11-27 04:55:10 Start Downloading The Chnroute6 Cidr List... 2022-11-27 04:55:10 Chnroute Cidr List Update Successful! 2022-11-27 04:55:10 Chnroute Cidr List Has Been Updated, Starting To Replace The Old Version... 2022-11-27 04:55:09 Chnroute Cidr List Download Success, Check Updated... 2022-11-27 04:55:09 Start Downloading The Chnroute Cidr List... 2022-11-27 04:55:09 Tip: Detected that the Chnroute Cidr List Format is wrong, Ready to Reformat... 2022-11-27 04:55:09 Step 2: Check The Components... 2022-11-27 04:55:09 Step 1: Get The Configuration... 2022-11-27 04:55:09 OpenClash Start Running... 2022-11-27 04:55:09 Step 6: Delete OpenClash Residue File... 2022-11-27 04:55:09 Step 5: Restart Dnsmasq... 2022-11-27 04:55:09 Step 4: Close The Clash Core Process... 2022-11-27 04:55:09 Step 3: Close The OpenClash Daemons... 2022-11-27 04:55:09 Step 2: Delete OpenClash Firewall Rules... 2022-11-27 04:55:09 Step 1: Backup The Current Groups State... 2022-11-27 04:55:09 OpenClash Stoping... 2022-11-27 04:52:52 Step 6: Delete OpenClash Residue File... 2022-11-27 04:52:52 Step 5: Restart Dnsmasq... 2022-11-27 04:52:52 Step 4: Close The Clash Core Process... 2022-11-27 04:52:52 Step 3: Close The OpenClash Daemons... 2022-11-27 04:52:52 Step 2: Delete OpenClash Firewall Rules... 2022-11-27 04:52:52 Step 1: Backup The Current Groups State... 2022-11-27 04:52:52 OpenClash Stoping... 2022-11-27 04:52:52 【Dev】Core Update Successful! 2022-11-27 04:52:52 【Dev】Core Download Successful, Start Update... 2022-11-27 04:51:19【/tmp/clash.tar.gz】Download Failed:【curl: (28) Operation timed out after 30000 milliseconds with 720896 out of 2728919 bytes received】 2022-11-27 04:51:19【/tmp/clash.tar.gz】Download Failed:【curl: (28) Operation timed out after 30001 milliseconds with 1114112 out of 2728919 bytes received】 2022-11-27 04:51:19【/tmp/clash.tar.gz】Download Failed:【curl: (28) Operation timed out after 30000 milliseconds with 1114112 out of 2728919 bytes received】 2022-11-27 04:50:49【/tmp/clash.tar.gz】Download Failed:【curl: (28) Operation timed out after 30000 milliseconds with 575717 out of 2728919 bytes received】 2022-11-27 04:50:49 【Dev】Core Downloading, Please Try to Download and Upload Manually If Fails 2022-11-27 04:50:47 Tip: Detected that the Core is not Installed, Ready to Download... 2022-11-27 04:50:47 Step 2: Check The Components... 2022-11-27 04:50:47 Step 1: Get The Configuration... 2022-11-27 04:50:47 OpenClash Start Running... 2022-11-27 04:50:47 Step 6: Delete OpenClash Residue File... 2022-11-27 04:50:47 Step 5: Restart Dnsmasq... 2022-11-27 04:50:47 Step 4: Close The Clash Core Process... 2022-11-27 04:50:47 Step 3: Close The OpenClash Daemons... 2022-11-27 04:50:47 Step 2: Delete OpenClash Firewall Rules... 2022-11-27 04:50:47 Step 1: Backup The Current Groups State... 2022-11-27 04:50:47 OpenClash Stoping... 2022-11-27 04:45:03 Warning: OpenClash Now Disabled, Need Start From Luci Page, Exit...
OpenClash Config
No response
Expected Behavior
What went wrong and how can I try. Thanks a lot.
Screenshots
No response