We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run command
docker run -it --rm -e WARP_ORG_ID=xxx-e WARP_AUTH_CLIENT_ID=xxxxxxxxxx17b714de8903ff13.access -e WARP_AUTH_CLIENT_SECRET=7120f34bd52ce19xxxxxxx0ee0279fdc7bcd63d46 ghcr.io/deepwn/warpod:latest
2024-04-21T03:43:48.235Z DEBUG firewall: Firewall allow API ips api_ips=[162.159.138.105, 162.159.137.105, 2606:4700:7::a29f:8a69, 2606:4700:7::a29f:8969] 2024-04-21T03:43:48.235Z DEBUG firewall: Firewall allow managed network endpoints managed_network_endpoints=[] 2024-04-21T03:43:48.235Z INFO firewall: Firewall starting 2024-04-21T03:43:48.238Z WARN firewall::linux: Failed to set firewall rules via stdin. Retrying using temporary file exit_code=ExitStatus(unix_wait_status(256)) 2024-04-21T03:43:48.243Z ERROR firewall::linux: Failed to start firewall with exit code: exit status: 1 2024-04-21T03:43:48.243Z WARN firewall: fw.apply_rules failed e=ApplyError("nft command failed with return code: 256") 2024-04-21T03:43:48.243Z DEBUG firewall: Firewall allow API ips api_ips=[162.159.138.105, 162.159.137.105, 2606:4700:7::a29f:8a69, 2606:4700:7::a29f:8969] 2024-04-21T03:43:48.243Z DEBUG firewall: Firewall allow managed network endpoints managed_network_endpoints=[] 2024-04-21T03:43:48.243Z INFO firewall: Firewall starting 2024-04-21T03:43:48.246Z WARN firewall::linux: Failed to set firewall rules via stdin. Retrying using temporary file exit_code=ExitStatus(unix_wait_status(256)) 2024-04-21T03:43:48.252Z ERROR firewall::linux: Failed to start firewall with exit code: exit status: 1 2024-04-21T03:43:48.252Z WARN firewall: fw.apply_rules failed e=ApplyError("nft command failed with return code: 256") 2024-04-21T03:43:48.252Z WARN main_loop: warp::warp_service: Unable to update firewall on disconnect e=ApplyError("nft command failed with return code: 256") 2024-04-21T03:43:48.252Z DEBUG main_loop: warp::warp_service: Determining disconnected reason from connectivity state net_info=IPv4: [eth0; 172.17.0.2; Ethernet]; DNS servers:; 8.8.8.8:53; power_state=None disconnect_reason=None
大佬知道这个是为啥吗?
The text was updated successfully, but these errors were encountered:
fixed it ,must add cap NET_ADMIN and map /dev/net/tun to container
Sorry, something went wrong.
@Paper-Dragon 从报错上看是firewall相关命令启动失败,我记得在普通warp模式下会有这个问题。 此项目测试运行时使用 rocky8.9 + podman环境,warp-svc使用的是proxy模式监听在41080端口运行。 如果你报错是出现在直接从容器使用warp+doh代理,那你需在容器内虚拟一个tun或映射宿主机的tun并且设置好ipv4转发。 但这个方式不符合项目最初目标:非root权限、非向上侵入。所以总体来说,我觉得有可能是你后台的模式设置保持了默认,未更改为proxy。
rocky8.9
podman
warp-svc
proxy
41080
warp+doh
tun
建议如下:
warp-cli settings | grep Mode
proxy mode
暂且只能分析出这些,希望对你有所帮助 😄
@evil7 感谢大佬的回复,在docker当中已经成功运行,需要在运行过程种映射tun设备和内核模块NET_AMDIN给容器,podman和docker确实有些不同。
有些疑问,我看到warp-svc里不仅仅要求了NET_ADMIN权限,还要求了NET_BIND_SERVICE权限,在docker当中如果没有后者竟然也能运行。😂🤣
大佬的项目太好了。我维护了下游分支 https://github.com/Paper-Dragon/warp-tproxy-for-docker 用于给容器联邦做透明代理。
再次致谢,感谢大佬的项目。
No branches or pull requests
run command
大佬知道这个是为啥吗?
The text was updated successfully, but these errors were encountered: