#!/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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
README | File | 131 B | 0644 |
|
client.conf | File | 3.5 KB | 0644 |
|
firewall.sh | File | 3.48 KB | 0755 |
|
home.up | File | 62 B | 0755 |
|
loopback-client | File | 672 B | 0644 |
|
loopback-server | File | 675 B | 0644 |
|
office.up | File | 62 B | 0755 |
|
openvpn-shutdown.sh | File | 63 B | 0755 |
|
openvpn-startup.sh | File | 776 B | 0755 |
|
server.conf.gz | File | 4.25 KB | 0644 |
|
static-home.conf | File | 1.74 KB | 0644 |
|
static-office.conf | File | 1.68 KB | 0644 |
|
tls-home.conf | File | 1.89 KB | 0644 |
|
tls-office.conf | File | 1.9 KB | 0644 |
|
xinetd-client-config | File | 199 B | 0644 |
|
xinetd-server-config | File | 989 B | 0644 |
|