mirror of
https://github.com/dndx/phantun.git
synced 2025-04-16 00:49:28 +08:00
merge changes of my version
This commit is contained in:
parent
e14bb72989
commit
f09a3b9770
@ -9,7 +9,7 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Taipei
|
TZ: Asia/Taipei
|
||||||
USE_IPTABLES_NFT_BACKEND: 1
|
USE_IPTABLES_NFT_BACKEND: 0
|
||||||
RUST_LOG: INFO
|
RUST_LOG: INFO
|
||||||
command: >
|
command: >
|
||||||
phantun-server --local 1985 --remote 127.0.0.1:1984 --ipv4-only
|
phantun-server --local 1985 --remote 127.0.0.1:1984 --ipv4-only
|
||||||
@ -22,7 +22,7 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Taipei
|
TZ: Asia/Taipei
|
||||||
USE_IPTABLES_NFT_BACKEND: 1
|
USE_IPTABLES_NFT_BACKEND: 0
|
||||||
RUST_LOG: INFO
|
RUST_LOG: INFO
|
||||||
command: >
|
command: >
|
||||||
phantun-client --local 127.0.0.1:1984 --remote 11.22.33.44:1985 --ipv4-only
|
phantun-client --local 127.0.0.1:1984 --remote 11.22.33.44:1985 --ipv4-only
|
||||||
|
@ -4,10 +4,8 @@
|
|||||||
if [ "$USE_IPTABLES_NFT_BACKEND" = 1 ]; then
|
if [ "$USE_IPTABLES_NFT_BACKEND" = 1 ]; then
|
||||||
alias iptables=iptables-nft
|
alias iptables=iptables-nft
|
||||||
alias iptables-save=iptables-nft-save
|
alias iptables-save=iptables-nft-save
|
||||||
alias iptables-restore=iptables-nft-restore
|
|
||||||
alias ip6tables=ip6tables-nft
|
alias ip6tables=ip6tables-nft
|
||||||
alias ip6tables-save=ip6tables-nft-save
|
alias ip6tables-save=ip6tables-nft-save
|
||||||
alias ip6tables-restore=ip6tables-nft-restore
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user