mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
6fbf66fad3
It includes the --topology feature, and TAP-Win32 driver changes to allow non-admin access. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@580 e7ae566f-a301-0410-adde-c780ea21d3b5
35 lines
776 B
Bash
Executable File
35 lines
776 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# A sample OpenVPN startup script
|
|
# for Linux.
|
|
|
|
# openvpn config file directory
|
|
dir=/etc/openvpn
|
|
|
|
# load the firewall
|
|
$dir/firewall.sh
|
|
|
|
# load TUN/TAP kernel module
|
|
modprobe tun
|
|
|
|
# enable IP forwarding
|
|
echo 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.conf
|
|
openvpn --cd $dir --daemon --config vpn2.conf
|
|
openvpn --cd $dir --daemon --config vpn2.conf
|