File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ function installQuestions () {
280
280
echo " 5) Quad9 uncensored (Anycast: worldwide)"
281
281
echo " 6) FDN (France)"
282
282
echo " 7) DNS.WATCH (Germany)"
283
- echo " 8) OpenDNS (Anycast: worldwide) "
283
+ echo " 8) 114DNS "
284
284
echo " 9) Google (Anycast: worldwide)"
285
285
echo " 10) Yandex Basic (Russia)"
286
286
echo " 11) AdGuard DNS (Russia)"
@@ -800,8 +800,16 @@ verb 3" >> /etc/openvpn/server.conf
800
800
if [[ " $IPV6_SUPPORT " = ' y' ]]; then
801
801
echo ' net.ipv6.conf.all.forwarding=1' >> /etc/sysctl.d/20-openvpn.conf
802
802
fi
803
+
803
804
# Avoid an unneeded reboot
804
805
sysctl --system
806
+ sysctl -a | grep " net.ipv4.ip_forward = 1"
807
+ if [ $? = 0 ]
808
+ then
809
+ echo " 路由功能开启成功"
810
+ else
811
+ echo " 路由功能开启失败,请检查/etc/sysctl.conf 或者 /etc/sysctl.d/ 文件"
812
+ fi
805
813
806
814
# If SELinux is enabled and a custom port was selected, we need this
807
815
if hash sestatus 2> /dev/null; then
You can’t perform that action at this time.
0 commit comments