⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 openvpn-startup.sh

📁 一个开源的VPN原码
💻 SH
字号:
#!/bin/bash# A sample OpenVPN startup script# for Linux.# openvpn config file directorydir=/etc/openvpn# load the firewall$dir/firewall.sh# load TUN/TAP kernel modulemodprobe tun# enable IP forwardingecho 1 > /proc/sys/net/ipv4/ip_forward# Invoke openvpn for each VPN tunnel# in daemon mode.  Alternatively,# you could remove "--daemon" from# the command line and add "daemon"# to the config file.## Each tunnel should run on a separate# UDP port.  Use the "port" option# to control this.  Like all of# OpenVPN's options, you can# specify "--port 8000" on the command# line or "port 8000" in the config# file.openvpn --cd $dir --daemon --config vpn1.confopenvpn --cd $dir --daemon --config vpn2.confopenvpn --cd $dir --daemon --config vpn2.conf

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -