当前位置: 技术问答>linux和unix
启动OpenVPN时出错~ 待高人相助
来源: 互联网 发布时间:2016-05-21
本文导语: 租的国外的VPSLink 系统是 Fedora 9 这是 server.conf 文件 local 209.59.209.243 port 1194 proto udp dev tun ca /etc/openvpn/ca.crt cert /etc/openvpn/server.crt key /etc/openvpn/server.key # This file should be kept secret dh /etc/openvpn/dh1024.pem...
租的国外的VPSLink
系统是 Fedora 9
这是 server.conf 文件
local 209.59.209.243
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/ipp.txt
client-to-client
keepalive 10 120
comp-lzo
max-clients 10
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 4
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DNS 64.79.200.111"
push "dhcp-option DNS 64.79.200.113"
这是启动VPN时的出错信息
# openvpn /etc/openvpn/server.conf
Fri Feb 27 20:42:25 2009 us=138164 Current Parameter Settings:
Fri Feb 27 20:42:25 2009 us=138233 config = '/etc/openvpn/server.conf'
Fri Feb 27 20:42:25 2009 us=138246 mode = 1
Fri Feb 27 20:42:25 2009 us=138257 persist_config = DISABLED
Fri Feb 27 20:42:25 2009 us=138268 persist_mode = 1
Fri Feb 27 20:42:25 2009 us=138278 show_ciphers = DISABLED
Fri Feb 27 20:42:25 2009 us=138288 show_digests = DISABLED
Fri Feb 27 20:42:25 2009 us=138298 show_engines = DISABLED
Fri Feb 27 20:42:25 2009 us=138308 genkey = DISABLED
Fri Feb 27 20:42:25 2009 us=138318 key_pass_file = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138329 show_tls_ciphers = DISABLED
Fri Feb 27 20:42:25 2009 us=138339 proto = 0
Fri Feb 27 20:42:25 2009 us=138349 local = '209.59.209.243'
Fri Feb 27 20:42:25 2009 us=138359 remote_list = NULL
Fri Feb 27 20:42:25 2009 us=138371 remote_random = DISABLED
Fri Feb 27 20:42:25 2009 us=138382 local_port = 1194
Fri Feb 27 20:42:25 2009 us=138397 remote_port = 1194
Fri Feb 27 20:42:25 2009 us=138408 remote_float = DISABLED
Fri Feb 27 20:42:25 2009 us=138418 ipchange = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138428 bind_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138438 bind_local = ENABLED
Fri Feb 27 20:42:25 2009 us=138448 dev = 'tun'
Fri Feb 27 20:42:25 2009 us=138457 dev_type = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138467 dev_node = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138477 lladdr = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138487 topology = 1
Fri Feb 27 20:42:25 2009 us=138497 tun_ipv6 = DISABLED
Fri Feb 27 20:42:25 2009 us=138507 ifconfig_local = '10.8.0.1'
Fri Feb 27 20:42:25 2009 us=138519 ifconfig_remote_netmask = '10.8.0.2'
Fri Feb 27 20:42:25 2009 us=138530 ifconfig_noexec = DISABLED
Fri Feb 27 20:42:25 2009 us=138539 ifconfig_nowarn = DISABLED
Fri Feb 27 20:42:25 2009 us=138549 shaper = 0
Fri Feb 27 20:42:25 2009 us=138559 tun_mtu = 1500
Fri Feb 27 20:42:25 2009 us=138569 tun_mtu_defined = ENABLED
Fri Feb 27 20:42:25 2009 us=138579 link_mtu = 1500
Fri Feb 27 20:42:25 2009 us=138589 link_mtu_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138599 tun_mtu_extra = 0
Fri Feb 27 20:42:25 2009 us=138609 tun_mtu_extra_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138619 fragment = 0
Fri Feb 27 20:42:25 2009 us=138629 mtu_discover_type = -1
Fri Feb 27 20:42:25 2009 us=138638 mtu_test = 0
Fri Feb 27 20:42:25 2009 us=138651 mlock = DISABLED
Fri Feb 27 20:42:25 2009 us=138662 keepalive_ping = 10
Fri Feb 27 20:42:25 2009 us=138672 keepalive_timeout = 120
Fri Feb 27 20:42:25 2009 us=138682 inactivity_timeout = 0
Fri Feb 27 20:42:25 2009 us=138692 ping_send_timeout = 10
Fri Feb 27 20:42:25 2009 us=138702 ping_rec_timeout = 240
Fri Feb 27 20:42:25 2009 us=138711 ping_rec_timeout_action = 2
Fri Feb 27 20:42:25 2009 us=138721 ping_timer_remote = DISABLED
Fri Feb 27 20:42:25 2009 us=138731 remap_sigusr1 = 0
Fri Feb 27 20:42:25 2009 us=138741 explicit_exit_notification = 0
Fri Feb 27 20:42:25 2009 us=138750 persist_tun = ENABLED
Fri Feb 27 20:42:25 2009 us=138760 persist_local_ip = DISABLED
Fri Feb 27 20:42:25 2009 us=138770 persist_remote_ip = DISABLED
Fri Feb 27 20:42:25 2009 us=138779 persist_key = ENABLED
Fri Feb 27 20:42:25 2009 us=138789 mssfix = 1450
Fri Feb 27 20:42:25 2009 us=138799 passtos = DISABLED
Fri Feb 27 20:42:25 2009 us=138809 resolve_retry_seconds = 1000000000
Fri Feb 27 20:42:25 2009 us=138819 connect_retry_seconds = 5
Fri Feb 27 20:42:25 2009 us=138829 connect_timeout = 10
Fri Feb 27 20:42:25 2009 us=138838 connect_retry_max = 0
Fri Feb 27 20:42:25 2009 us=138848 username = 'nobody'
Fri Feb 27 20:42:25 2009 us=138858 groupname = 'nobody'
Fri Feb 27 20:42:25 2009 us=138868 chroot_dir = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138877 cd_dir = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138887 writepid = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138897 up_script = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138907 down_script = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138916 down_pre = DISABLED
Fri Feb 27 20:42:25 2009 us=139105 up_restart = DISABLED
Fri Feb 27 20:42:25 2009 us=139117 up_delay = DISABLED
Fri Feb 27 20:42:25 2009 us=139128 daemon = DISABLED
Fri Feb 27 20:42:25 2009 us=139138 inetd = 0
Fri Feb 27 20:42:25 2009 us=139148 log = DISABLED
Fri Feb 27 20:42:25 2009 us=139157 suppress_timestamps = DISABLED
Fri Feb 27 20:42:25 2009 us=139167 nice = 0
Fri Feb 27 20:42:25 2009 us=139177 verbosity = 4
Fri Feb 27 20:42:25 2009 us=139187 mute = 0
Fri Feb 27 20:42:25 2009 us=139197 gremlin = 0
Fri Feb 27 20:42:25 2009 us=139206 status_file = '/var/log/openvpn/openvpn-status.log'
Fri Feb 27 20:42:25 2009 us=139216 status_file_version = 1
Fri Feb 27 20:42:25 2009 us=139226 status_file_update_freq = 60
Fri Feb 27 20:42:25 2009 us=139236 occ = ENABLED
Fri Feb 27 20:42:25 2009 us=139246 rcvbuf = 65536
Fri Feb 27 20:42:25 2009 us=139256 sndbuf = 65536
系统是 Fedora 9
这是 server.conf 文件
local 209.59.209.243
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/ipp.txt
client-to-client
keepalive 10 120
comp-lzo
max-clients 10
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 4
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DNS 64.79.200.111"
push "dhcp-option DNS 64.79.200.113"
这是启动VPN时的出错信息
# openvpn /etc/openvpn/server.conf
Fri Feb 27 20:42:25 2009 us=138164 Current Parameter Settings:
Fri Feb 27 20:42:25 2009 us=138233 config = '/etc/openvpn/server.conf'
Fri Feb 27 20:42:25 2009 us=138246 mode = 1
Fri Feb 27 20:42:25 2009 us=138257 persist_config = DISABLED
Fri Feb 27 20:42:25 2009 us=138268 persist_mode = 1
Fri Feb 27 20:42:25 2009 us=138278 show_ciphers = DISABLED
Fri Feb 27 20:42:25 2009 us=138288 show_digests = DISABLED
Fri Feb 27 20:42:25 2009 us=138298 show_engines = DISABLED
Fri Feb 27 20:42:25 2009 us=138308 genkey = DISABLED
Fri Feb 27 20:42:25 2009 us=138318 key_pass_file = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138329 show_tls_ciphers = DISABLED
Fri Feb 27 20:42:25 2009 us=138339 proto = 0
Fri Feb 27 20:42:25 2009 us=138349 local = '209.59.209.243'
Fri Feb 27 20:42:25 2009 us=138359 remote_list = NULL
Fri Feb 27 20:42:25 2009 us=138371 remote_random = DISABLED
Fri Feb 27 20:42:25 2009 us=138382 local_port = 1194
Fri Feb 27 20:42:25 2009 us=138397 remote_port = 1194
Fri Feb 27 20:42:25 2009 us=138408 remote_float = DISABLED
Fri Feb 27 20:42:25 2009 us=138418 ipchange = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138428 bind_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138438 bind_local = ENABLED
Fri Feb 27 20:42:25 2009 us=138448 dev = 'tun'
Fri Feb 27 20:42:25 2009 us=138457 dev_type = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138467 dev_node = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138477 lladdr = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138487 topology = 1
Fri Feb 27 20:42:25 2009 us=138497 tun_ipv6 = DISABLED
Fri Feb 27 20:42:25 2009 us=138507 ifconfig_local = '10.8.0.1'
Fri Feb 27 20:42:25 2009 us=138519 ifconfig_remote_netmask = '10.8.0.2'
Fri Feb 27 20:42:25 2009 us=138530 ifconfig_noexec = DISABLED
Fri Feb 27 20:42:25 2009 us=138539 ifconfig_nowarn = DISABLED
Fri Feb 27 20:42:25 2009 us=138549 shaper = 0
Fri Feb 27 20:42:25 2009 us=138559 tun_mtu = 1500
Fri Feb 27 20:42:25 2009 us=138569 tun_mtu_defined = ENABLED
Fri Feb 27 20:42:25 2009 us=138579 link_mtu = 1500
Fri Feb 27 20:42:25 2009 us=138589 link_mtu_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138599 tun_mtu_extra = 0
Fri Feb 27 20:42:25 2009 us=138609 tun_mtu_extra_defined = DISABLED
Fri Feb 27 20:42:25 2009 us=138619 fragment = 0
Fri Feb 27 20:42:25 2009 us=138629 mtu_discover_type = -1
Fri Feb 27 20:42:25 2009 us=138638 mtu_test = 0
Fri Feb 27 20:42:25 2009 us=138651 mlock = DISABLED
Fri Feb 27 20:42:25 2009 us=138662 keepalive_ping = 10
Fri Feb 27 20:42:25 2009 us=138672 keepalive_timeout = 120
Fri Feb 27 20:42:25 2009 us=138682 inactivity_timeout = 0
Fri Feb 27 20:42:25 2009 us=138692 ping_send_timeout = 10
Fri Feb 27 20:42:25 2009 us=138702 ping_rec_timeout = 240
Fri Feb 27 20:42:25 2009 us=138711 ping_rec_timeout_action = 2
Fri Feb 27 20:42:25 2009 us=138721 ping_timer_remote = DISABLED
Fri Feb 27 20:42:25 2009 us=138731 remap_sigusr1 = 0
Fri Feb 27 20:42:25 2009 us=138741 explicit_exit_notification = 0
Fri Feb 27 20:42:25 2009 us=138750 persist_tun = ENABLED
Fri Feb 27 20:42:25 2009 us=138760 persist_local_ip = DISABLED
Fri Feb 27 20:42:25 2009 us=138770 persist_remote_ip = DISABLED
Fri Feb 27 20:42:25 2009 us=138779 persist_key = ENABLED
Fri Feb 27 20:42:25 2009 us=138789 mssfix = 1450
Fri Feb 27 20:42:25 2009 us=138799 passtos = DISABLED
Fri Feb 27 20:42:25 2009 us=138809 resolve_retry_seconds = 1000000000
Fri Feb 27 20:42:25 2009 us=138819 connect_retry_seconds = 5
Fri Feb 27 20:42:25 2009 us=138829 connect_timeout = 10
Fri Feb 27 20:42:25 2009 us=138838 connect_retry_max = 0
Fri Feb 27 20:42:25 2009 us=138848 username = 'nobody'
Fri Feb 27 20:42:25 2009 us=138858 groupname = 'nobody'
Fri Feb 27 20:42:25 2009 us=138868 chroot_dir = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138877 cd_dir = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138887 writepid = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138897 up_script = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138907 down_script = '[UNDEF]'
Fri Feb 27 20:42:25 2009 us=138916 down_pre = DISABLED
Fri Feb 27 20:42:25 2009 us=139105 up_restart = DISABLED
Fri Feb 27 20:42:25 2009 us=139117 up_delay = DISABLED
Fri Feb 27 20:42:25 2009 us=139128 daemon = DISABLED
Fri Feb 27 20:42:25 2009 us=139138 inetd = 0
Fri Feb 27 20:42:25 2009 us=139148 log = DISABLED
Fri Feb 27 20:42:25 2009 us=139157 suppress_timestamps = DISABLED
Fri Feb 27 20:42:25 2009 us=139167 nice = 0
Fri Feb 27 20:42:25 2009 us=139177 verbosity = 4
Fri Feb 27 20:42:25 2009 us=139187 mute = 0
Fri Feb 27 20:42:25 2009 us=139197 gremlin = 0
Fri Feb 27 20:42:25 2009 us=139206 status_file = '/var/log/openvpn/openvpn-status.log'
Fri Feb 27 20:42:25 2009 us=139216 status_file_version = 1
Fri Feb 27 20:42:25 2009 us=139226 status_file_update_freq = 60
Fri Feb 27 20:42:25 2009 us=139236 occ = ENABLED
Fri Feb 27 20:42:25 2009 us=139246 rcvbuf = 65536
Fri Feb 27 20:42:25 2009 us=139256 sndbuf = 65536
|
Fri Feb 27 20:42:25 2009 us=138371 remote_random = DISABLED
服务器那边连的上不?貌似VPN服务方的随机源都发不过来。
服务器那边连的上不?貌似VPN服务方的随机源都发不过来。