15-03-2012, 16:36
|
|
|
חבר מתאריך: 27.01.03
הודעות: 775
|
|
OpenVPN על Fedora16
ברצוני להתחבר מרחוק למחשב הביתי שמריץ כרגע Fedora16.
ניסיתי להתקין OpenVPN Server עליו על פי ההוראות הנ"ל:
http://fedoraproject.org/wiki/Openvpn
כשאני כותב
קוד:
service openvpn start
הוא כותב לי את השגיאה הבאה:
קוד:
# service openvpn start
Redirecting to /bin/systemctl start openvpn.service
Failed to issue method call: Unit openvpn.service failed to load: No such file or directory. See system logs and 'systemctl status openvpn.service' for details.
systemctl status openvpn.service:
קוד:
openvpn.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
היות ואני חובבן לינוקס בלבד, אצרף גם את קובץ השרת server.conf ואשמח אם מישהו יוכל לומר לי היכן טעיתי...
server.conf
קוד:
########################################
# Sample OpenVPN config file for
# 2.0-style multi-client udp server
#
# Adapted from http://openvpn.sourceforge.net/20notes.html
#
# tun-style tunnel
port 1194
dev tun
# Use "local" to set the source address on multi-homed hosts
#local [IP address]
# TLS parms
tls-server
ca /etc/openvpn/keys/tmp-ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
# Tell OpenVPN to be a multi-client udp server
mode server
# The server's virtual endpoints
ifconfig 10.8.0.1 10.8.0.2
# Pool of /30 subnets to be allocated to clients.
# When a client connects, an --ifconfig command
# will be automatically generated and pushed back to
# the client.
ifconfig-pool 10.8.0.4 10.8.0.255
# Push route to client to bind it to our local
# virtual endpoint.
push "route 10.8.0.1 255.255.255.255"
# Push any routes the client needs to get in
# to the local network.
push "route 192.168.0.0 255.255.255.0"
# Push DHCP options to Windows clients.
push "dhcp-option DOMAIN example.com"
push "dhcp-option DNS 192.168.0.1"
push "dhcp-option WINS 192.168.0.1"
# Client should attempt reconnection on link
# failure.
keepalive 10 60
# Delete client instances after some period
# of inactivity.
inactive 600
# Route the --ifconfig pool range into the
# OpenVPN server.
route 10.8.0.0 255.255.255.0
# The server doesn't need privileges
user openvpn
group openvpn
# Keep TUN devices and keys open across restarts.
persist-tun
persist-key
verb 4
נערך לאחרונה ע"י sza בתאריך 15-03-2012 בשעה 16:39.
|