3 # A sample OpenVPN startup script
6 # openvpn config file directory
12 # load TUN/TAP kernel module
15 # enable IP forwarding
16 echo 1 > /proc
/sys
/net
/ipv
4/ip_forward
18 # Invoke openvpn for each VPN tunnel
19 # in daemon mode. Alternatively,
20 # you could remove "--daemon" from
21 # the command line and add "daemon"
24 # Each tunnel should run on a separate
25 # UDP port. Use the "port" option
26 # to control this. Like all of
27 # OpenVPN's options, you can
28 # specify "--port 8000" on the command
29 # line or "port 8000" in the config
32 openvpn
--cd $dir --daemon --config vpn1.conf
33 openvpn
--cd $dir --daemon --config vpn2.conf
34 openvpn
--cd $dir --daemon --config vpn2.conf