Skip to content

Commit

Permalink
Use same nft file for all proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Jan 15, 2024
1 parent 52a7f7e commit 5074d85
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shadowsocks-libev/files/shadowsocks-libev.init-nft
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ss_confdir=/var/etc/shadowsocks-libev
ss_bindir=/usr/bin

ssrules_uc="/usr/share/ss-rules/ss-rules.uc"
ssrules_nft="/etc/nftables.d/90-ss-rules.nft"
ssrules_nft="/etc/nftables.d/90-proxy-rules.nft"

ss_mkjson_server_conf() {
local cfgserver
Expand Down
2 changes: 1 addition & 1 deletion shadowsocks-rust/files/shadowsocks-rust.init-nft
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ss_confdir=/var/etc/shadowsocks-rust
ss_bindir=/usr/bin

ssrules_uc="/usr/share/ssr-rules/ss-rules.uc"
ssrules_nft="/etc/nftables.d/90-ssr-rules.nft"
ssrules_nft="/etc/nftables.d/90-proxy-rules.nft"

ss_mkjson_server_conf() {
local cfgserver
Expand Down
2 changes: 1 addition & 1 deletion v2ray-core/files/etc/init.d/v2ray-nft
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NAME=v2ray
CONFIG_FOLDER=/var/etc/$NAME

v2rrules_uc="/usr/share/v2ray-rules/v2r-rules.uc"
v2rrules_nft="/etc/nftables.d/90-v2r-rules.nft"
v2rrules_nft="/etc/nftables.d/90-proxy-rules.nft"

FILE_V2RAY_DNSMASQ=/tmp/dnsmasq.d/$NAME
FILE_V2RAY_DNSMASQ_CACHE=/tmp/$NAME.dnsmasq.cache
Expand Down
2 changes: 1 addition & 1 deletion xray-core/files/etc/init.d/xray-nft
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NAME=xray
CONFIG_FOLDER=/var/etc/$NAME

xrrules_uc="/usr/share/xray-rules/xr-rules.uc"
xrrules_nft="/etc/nftables.d/90-xr-rules.nft"
xrrules_nft="/etc/nftables.d/90-proxy-rules.nft"

FILE_XRAY_DNSMASQ=/tmp/dnsmasq.d/$NAME
FILE_XRAY_DNSMASQ_CACHE=/tmp/$NAME.dnsmasq.cache
Expand Down

0 comments on commit 5074d85

Please sign in to comment.