forked from xiaorouji/openwrt-passwall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'xiaorouji:main' into main
- Loading branch information
Showing
102 changed files
with
107,885 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Close stale issues and PRs" | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
stale-issue-message: "Stale Issue" | ||
stale-pr-message: "Stale PR" | ||
stale-issue-label: "no-issue-activity" | ||
exempt-issue-labels: "awaiting-approval,awaiting,work-in-progress" | ||
stale-pr-label: "no-pr-activity" | ||
exempt-pr-labels: "awaiting-approval,awaiting,work-in-progress,automated-pr" | ||
# only-labels: 'bug,enhancement' | ||
days-before-issue-stale: 10 | ||
days-before-pr-stale: 10 | ||
days-before-issue-close: 5 | ||
days-before-pr-close: -1 | ||
operations-per-run: 500 | ||
|
||
- name: Delete workflow runs | ||
uses: Mattraks/delete-workflow-runs@main | ||
with: | ||
token: ${{ github.token }} | ||
repository: ${{ github.repository }} | ||
retain_days: 1 | ||
keep_minimum_runs: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# openwrt-passwall | ||
A commonly used proxy toolchain for Openwrt LuCI Application. | ||
|
||
## How to use | ||
1. add new line to openwrt feeds | ||
``` | ||
echo "src-git passwall_packages https://github.com/xiaorouji/openwrt-passwall-packages.git;main" >> "feeds.conf.default" | ||
echo "src-git passwall https://github.com/xiaorouji/openwrt-passwall.git;main" >> "feeds.conf.default" | ||
``` | ||
2. pull upstream commits | ||
``` | ||
./scripts/feeds clean | ||
./scripts/feeds update -a | ||
./scripts/feeds install -a | ||
``` | ||
|
||
## Note | ||
|
||
### ⚠ Need golang version [1.20](https://github.com/openwrt/packages/tree/openwrt-23.05/lang/golang) to or higher to compile Sing-box and hysteria |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
# Copyright (C) 2018-2020 L-WRT Team | ||
# Copyright (C) 2021-2023 xiaorouji | ||
# | ||
# This is free software, licensed under the GNU General Public License v3. | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=luci-app-passwall | ||
PKG_VERSION:=4.71-2 | ||
PKG_RELEASE:= | ||
|
||
PKG_CONFIG_DEPENDS:= \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_Nftables_Transparent_Proxy \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Brook \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Haproxy \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Server \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_SingBox \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_GO \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_Plus \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_tuic_client \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Geodata \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Xray \ | ||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Xray_Plugin | ||
|
||
LUCI_TITLE:=LuCI support for PassWall | ||
LUCI_PKGARCH:=all | ||
LUCI_DEPENDS:=+coreutils +coreutils-base64 +coreutils-nohup +curl \ | ||
+chinadns-ng +dns2socks +dns2tcp +ip-full +libuci-lua +lua +luci-compat +luci-lib-jsonc \ | ||
+microsocks +resolveip +tcping +unzip \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Brook:brook \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Haproxy:haproxy \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria:hysteria \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy:naiveproxy \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-local \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-redir \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server:shadowsocks-libev-ss-server \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client:shadowsocks-rust-sslocal \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Server:shadowsocks-rust-ssserver \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client:shadowsocksr-libev-ssr-local \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client:shadowsocksr-libev-ssr-redir \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server:shadowsocksr-libev-ssr-server \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs:simple-obfs \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_SingBox:sing-box \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_GO:trojan-go \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_Plus:trojan-plus \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_tuic_client:tuic-client \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Geodata:v2ray-geoip \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Geodata:v2ray-geosite \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin:v2ray-plugin \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Xray:xray-core \ | ||
+PACKAGE_$(PKG_NAME)_INCLUDE_Xray_Plugin:xray-plugin | ||
|
||
define Package/$(PKG_NAME)/config | ||
menu "Configuration" | ||
|
||
config PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy | ||
bool "Iptables Transparent Proxy" | ||
select PACKAGE_dnsmasq-full | ||
select PACKAGE_ipset | ||
select PACKAGE_ipt2socks | ||
select PACKAGE_iptables | ||
select PACKAGE_iptables-zz-legacy | ||
select PACKAGE_iptables-mod-conntrack-extra | ||
select PACKAGE_iptables-mod-iprange | ||
select PACKAGE_iptables-mod-socket | ||
select PACKAGE_iptables-mod-tproxy | ||
select PACKAGE_kmod-ipt-nat | ||
depends on PACKAGE_$(PKG_NAME) | ||
default y if ! PACKAGE_firewall4 | ||
|
||
config PACKAGE_$(PKG_NAME)_Nftables_Transparent_Proxy | ||
bool "Nftables Transparent Proxy" | ||
select PACKAGE_dnsmasq-full | ||
select PACKAGE_ipt2socks | ||
select PACKAGE_nftables | ||
select PACKAGE_kmod-nft-socket | ||
select PACKAGE_kmod-nft-tproxy | ||
select PACKAGE_kmod-nft-nat | ||
depends on PACKAGE_$(PKG_NAME) | ||
default y if PACKAGE_firewall4 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Brook | ||
bool "Include Brook" | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Haproxy | ||
bool "Include Haproxy" | ||
default y if aarch64||arm||i386||x86_64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria | ||
bool "Include Hysteria" | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy | ||
bool "Include NaiveProxy" | ||
depends on !(arc||(arm&&TARGET_gemini)||armeb||mips||mips64||powerpc) | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client | ||
bool "Include Shadowsocks Libev Client" | ||
default y | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server | ||
bool "Include Shadowsocks Libev Server" | ||
default y if aarch64||arm||i386||x86_64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client | ||
bool "Include Shadowsocks Rust Client" | ||
depends on aarch64||arm||i386||mips||mipsel||x86_64 | ||
default y if aarch64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Server | ||
bool "Include Shadowsocks Rust Server" | ||
depends on aarch64||arm||i386||mips||mipsel||x86_64 | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client | ||
bool "Include ShadowsocksR Libev Client" | ||
default y | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server | ||
bool "Include ShadowsocksR Libev Server" | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs | ||
bool "Include Simple-Obfs (Shadowsocks Plugin)" | ||
default y | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_SingBox | ||
bool "Include Sing-Box" | ||
default y if aarch64||arm||i386||x86_64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_GO | ||
bool "Include Trojan-GO" | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan_Plus | ||
bool "Include Trojan-Plus" | ||
default y | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_tuic_client | ||
bool "Include tuic-client" | ||
depends on aarch64||arm||i386||x86_64 | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Geodata | ||
bool "Include V2ray_Geodata" | ||
default n | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin | ||
bool "Include V2ray-Plugin (Shadowsocks Plugin)" | ||
default y if aarch64||arm||i386||x86_64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Xray | ||
bool "Include Xray" | ||
default y if aarch64||arm||i386||x86_64 | ||
|
||
config PACKAGE_$(PKG_NAME)_INCLUDE_Xray_Plugin | ||
bool "Include Xray-Plugin (Shadowsocks Plugin)" | ||
default n | ||
|
||
endmenu | ||
endef | ||
|
||
define Package/$(PKG_NAME)/conffiles | ||
/etc/config/passwall | ||
/etc/config/passwall_server | ||
/usr/share/passwall/rules/direct_host | ||
/usr/share/passwall/rules/direct_ip | ||
/usr/share/passwall/rules/proxy_host | ||
/usr/share/passwall/rules/proxy_ip | ||
/usr/share/passwall/rules/block_host | ||
/usr/share/passwall/rules/block_ip | ||
/usr/share/passwall/rules/lanlist_ipv4 | ||
/usr/share/passwall/rules/lanlist_ipv6 | ||
/usr/share/passwall/rules/domains_excluded | ||
endef | ||
|
||
include $(TOPDIR)/feeds/luci/luci.mk | ||
|
||
# call BuildPackage - OpenWrt buildroot signature |
Oops, something went wrong.