File tree Expand file tree Collapse file tree
en/docs/prologue/installation
zh-cn/docs/prologue/installation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ weight: '15'
1313toc : ' true'
1414---
1515
16- <!-- {{% notice info %}}
16+ {{% notice info %}}
1717If you want to install from Snap Store, you can visit:
1818< https://snapcraft.io/v2raya >
19- {{% /notice %}} -->
19+ {{% /notice %}}
2020
2121## Install V2Ray core / Xray core
2222
@@ -85,10 +85,18 @@ sudo apt install /path/download/installer_debian_xxx_vxxx.deb ### Replace the ac
8585 sudo systemctl enable v2raya.service
8686 ` ` `
8787
88- # # Switch iptables to iptables-nft
88+ < ! -- # # Switch iptables to iptables-nft
8989
9090For Debian11 users, iptables has been deprecated. Use nftables as the backend of iptables for adaptation:
9191
92+ Install iptables, automatically enabling iptables-nft:
93+
94+ ` ` ` bash
95+ apt install iptables
96+ ` ` `
97+
98+ It is also possible to manually set up nftables as the backend for iptables for adaptation:
99+
92100` ` ` bash
93101update-alternatives --set iptables /usr/sbin/iptables-nft
94102update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
@@ -105,4 +113,8 @@ update-alternatives --set arptables /usr/sbin/arptables-legacy
105113update-alternatives --set ebtables /usr/sbin/ebtables-legacy
106114` ` `
107115
108- Restart after switching.
116+ Restart after switching. -->
117+
118+ # # Use nftables
119+
120+ If you already have ` nftables` firewall on your system, then v2rayA will use ` nft` command first to create firewall rules. You can use the ` --nftables-support` parameter or ` V2RAYA_NFTABLES_SUPPORT` to control whether to enable nftables support.
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ weight: 15
1313toc : true
1414---
1515
16- <!-- {{% notice info %}}
16+ {{% notice info %}}
1717如果你想使用 Snap 包,那么你可以参考以下链接:
1818< https://snapcraft.io/v2raya >
19- 以下内容为经典安装方式。
20- {{% /notice %}} -->
19+ {{% /notice %}}
2120
2221## 安装 V2Ray 内核
2322
@@ -86,7 +85,7 @@ sudo apt install /path/download/installer_debian_xxx_vxxx.deb ### 自行替换 d
8685 sudo systemctl enable v2raya.service
8786 ```
8887
89- ## 切换 iptables 为 iptables-nft
88+ <!-- ## 切换 iptables 为 iptables-nft
9089
9190对于 Debian11 用户来说,iptables 已被弃用。安装 iptables 后,Debian 会自动设置使用 iptables-nft 作为后端。
9291
@@ -114,4 +113,8 @@ update-alternatives --set arptables /usr/sbin/arptables-legacy
114113update-alternatives --set ebtables /usr/sbin/ebtables-legacy
115114```
116115
117- 切换后重启即可。
116+ 切换后重启即可。 -->
117+
118+ ## 使用 nftables
119+
120+ 如果你的系统上已经有了 ` nftables ` 防火墙,那么 v2rayA 将优先使用 ` nft ` 命令来创建防火墙规则。可以使用 ` --nftables-support ` 参数或者 ` V2RAYA_NFTABLES_SUPPORT ` 来进行控制是否开启 nftables 支持。
You can’t perform that action at this time.
0 commit comments