歡迎您光臨本站 註冊首頁

在windows2003上建立openvpn時出現的問題!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

在windows2003上建立openvpn時出現的問題!

我在用windows做openvpn伺服器的時候出現這樣的問題,做好橋接后,開啟openvpn伺服器,在cmd狀態下用ipconfig這個命令查看時,網橋上面只有我在橋接後手動設置的內網這一個ip,而vpn伺服器啟動后,右下角彈出得到ip的提示,在cmd狀態下看不到vpn伺服器自動分配的ip,這是為什麼?請大家幫個忙,我被這個問題跑了好多腿!系統也重新做了,什麼東西都沒裝,結果還是一樣!
附上vpn伺服器的配置文件
port 2500
proto udp
;dev tap
dev tap-bridge
client-to-client
server 192.168.10.0 255.255.255.0
duplicate-cn
push "route 192.168.10.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.10.1"
keepalive 20 180
ca f:\\bak\\KEY\\ca.crt
cert f:\\bak\\KEY\\server.crt
key f:\\bak\\KEY\\server.key
dh f:\\bak\\KEY\\dh1024.pem
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.10.1"
mode server
tls-server
status F:\\bak\\log\\openvpn-status.log
comp-lzo
verb 4

運行后openvpn-status文件裡面的東西
Sun Apr 22 22:53:15 2007 us=375397 Current Parameter Settings:
Sun Apr 22 22:53:15 2007 us=375445   config = 'server.ovpn'
Sun Apr 22 22:53:15 2007 us=375459   mode = 1
Sun Apr 22 22:53:15 2007 us=375471   show_ciphers = DISABLED
Sun Apr 22 22:53:15 2007 us=375483   show_digests = DISABLED
Sun Apr 22 22:53:15 2007 us=375494   show_engines = DISABLED
Sun Apr 22 22:53:15 2007 us=375505   genkey = DISABLED
Sun Apr 22 22:53:15 2007 us=375517   key_pass_file = ''
Sun Apr 22 22:53:15 2007 us=375528   show_tls_ciphers = DISABLED
Sun Apr 22 22:53:15 2007 us=375540   proto = 0
Sun Apr 22 22:53:15 2007 us=375551   local = ''
Sun Apr 22 22:53:15 2007 us=375562   remote_list = NULL
Sun Apr 22 22:53:15 2007 us=375574   remote_random = DISABLED
Sun Apr 22 22:53:15 2007 us=375585   local_port = 2500
Sun Apr 22 22:53:15 2007 us=375596   remote_port = 2500
Sun Apr 22 22:53:15 2007 us=375608   remote_float = DISABLED
Sun Apr 22 22:53:15 2007 us=375620   ipchange = ''
Sun Apr 22 22:53:15 2007 us=375631   bind_local = ENABLED
Sun Apr 22 22:53:15 2007 us=375643   dev = 'tap-bridge'
Sun Apr 22 22:53:15 2007 us=375655   dev_type = ''
Sun Apr 22 22:53:15 2007 us=375666   dev_node = ''
Sun Apr 22 22:53:15 2007 us=375678   tun_ipv6 = DISABLED
Sun Apr 22 22:53:15 2007 us=375690   ifconfig_local = '192.168.10.1'
Sun Apr 22 22:53:15 2007 us=375703   ifconfig_remote_netmask = '255.255.255.0'
Sun Apr 22 22:53:15 2007 us=375714   ifconfig_noexec = DISABLED
Sun Apr 22 22:53:15 2007 us=375726   ifconfig_nowarn = DISABLED
Sun Apr 22 22:53:15 2007 us=375737   shaper = 0
Sun Apr 22 22:53:15 2007 us=375748   tun_mtu = 1500
Sun Apr 22 22:53:15 2007 us=375760   tun_mtu_defined = ENABLED
Sun Apr 22 22:53:15 2007 us=375772   link_mtu = 1500
Sun Apr 22 22:53:15 2007 us=375783   link_mtu_defined = DISABLED
Sun Apr 22 22:53:15 2007 us=375796   tun_mtu_extra = 32
Sun Apr 22 22:53:15 2007 us=375807   tun_mtu_extra_defined = ENABLED
Sun Apr 22 22:53:15 2007 us=375819   fragment = 0
Sun Apr 22 22:53:15 2007 us=375831   mtu_discover_type = -1
Sun Apr 22 22:53:15 2007 us=375843   mtu_test = 0
Sun Apr 22 22:53:15 2007 us=375854   mlock = DISABLED
Sun Apr 22 22:53:15 2007 us=375867   keepalive_ping = 20
Sun Apr 22 22:53:15 2007 us=375878   keepalive_timeout = 180
Sun Apr 22 22:53:15 2007 us=375890   inactivity_timeout = 0
Sun Apr 22 22:53:15 2007 us=375902   ping_send_timeout = 20
Sun Apr 22 22:53:15 2007 us=375915   ping_rec_timeout = 360
Sun Apr 22 22:53:15 2007 us=375927   ping_rec_timeout_action = 2
Sun Apr 22 22:53:15 2007 us=375939   ping_timer_remote = DISABLED
Sun Apr 22 22:53:15 2007 us=375951   remap_sigusr1 = 0
Sun Apr 22 22:53:15 2007 us=375963   explicit_exit_notification = 0
Sun Apr 22 22:53:15 2007 us=375975   persist_tun = DISABLED
Sun Apr 22 22:53:15 2007 us=375987   persist_local_ip = DISABLED
Sun Apr 22 22:53:15 2007 us=375999   persist_remote_ip = DISABLED
Sun Apr 22 22:53:15 2007 us=376010   persist_key = DISABLED
Sun Apr 22 22:53:15 2007 us=376022   mssfix = 1450
Sun Apr 22 22:53:15 2007 us=376035   resolve_retry_seconds = 1000000000
Sun Apr 22 22:53:15 2007 us=376047   connect_retry_seconds = 5
Sun Apr 22 22:53:15 2007 us=376059   username = ''
Sun Apr 22 22:53:15 2007 us=376071   groupname = ''
Sun Apr 22 22:53:15 2007 us=376083   chroot_dir = ''
Sun Apr 22 22:53:15 2007 us=376094   cd_dir = ''
Sun Apr 22 22:53:15 2007 us=376106   writepid = ''
Sun Apr 22 22:53:15 2007 us=376118   up_script = ''
Sun Apr 22 22:53:15 2007 us=376130   down_script = ''
Sun Apr 22 22:53:15 2007 us=376142   down_pre = DISABLED
Sun Apr 22 22:53:15 2007 us=376153   up_restart = DISABLED
Sun Apr 22 22:53:15 2007 us=376165   up_delay = DISABLED
Sun Apr 22 22:53:15 2007 us=376181   daemon = DISABLED
Sun Apr 22 22:53:15 2007 us=376194   inetd = 0
Sun Apr 22 22:53:15 2007 us=376205   log = DISABLED
Sun Apr 22 22:53:15 2007 us=376217   suppress_timestamps = DISABLED
Sun Apr 22 22:53:15 2007 us=376229   nice = 0
Sun Apr 22 22:53:15 2007 us=376241   verbosity = 4
Sun Apr 22 22:53:15 2007 us=576065   mute = 0
Sun Apr 22 22:53:15 2007 us=576094   gremlin = 0
Sun Apr 22 22:53:15 2007 us=576126   status_file = 'D:\wzn\log\openvpn-status.log'
Sun Apr 22 22:53:15 2007 us=576141   status_file_version = 1
Sun Apr 22 22:53:15 2007 us=576152   status_file_update_freq = 60
Sun Apr 22 22:53:15 2007 us=576163   occ = ENABLED
Sun Apr 22 22:53:15 2007 us=576176   rcvbuf = 0
Sun Apr 22 22:53:15 2007 us=576189   sndbuf = 0
Sun Apr 22 22:53:15 2007 us=576202   socks_proxy_server = ''
Sun Apr 22 22:53:15 2007 us=576224   socks_proxy_port = 0
Sun Apr 22 22:53:15 2007 us=576237   socks_proxy_retry = DISABLED
Sun Apr 22 22:53:15 2007 us=576249   fast_io = DISABLED
Sun Apr 22 22:53:15 2007 us=576260   comp_lzo = ENABLED
Sun Apr 22 22:53:15 2007 us=576273   comp_lzo_adaptive = ENABLED
Sun Apr 22 22:53:15 2007 us=576285   route_script = ''
Sun Apr 22 22:53:15 2007 us=576298   route_default_gateway = ''
Sun Apr 22 22:53:15 2007 us=576309   route_noexec = DISABLED
Sun Apr 22 22:53:15 2007 us=600791   route_delay = 0
Sun Apr 22 22:53:15 2007 us=600813   route_delay_window = 30
Sun Apr 22 22:53:15 2007 us=600828   route_delay_defined = DISABLED
Sun Apr 22 22:53:15 2007 us=600847   management_addr = ''
Sun Apr 22 22:53:15 2007 us=600858   management_port = 0
Sun Apr 22 22:53:15 2007 us=600869   management_user_pass = ''
Sun Apr 22 22:53:15 2007 us=600881   management_log_history_cache = 250
Sun Apr 22 22:53:15 2007 us=600893   management_echo_buffer_size = 100
Sun Apr 22 22:53:15 2007 us=600904   management_query_passwords = DISABLED
Sun Apr 22 22:53:15 2007 us=600915   management_hold = DISABLED
Sun Apr 22 22:53:15 2007 us=600926   shared_secret_file = ''
Sun Apr 22 22:53:15 2007 us=600938   key_direction = 0
Sun Apr 22 22:53:15 2007 us=600950   ciphername_defined = ENABLED
Sun Apr 22 22:53:15 2007 us=600963   ciphername = 'BF-CBC'
Sun Apr 22 22:53:15 2007 us=600975   authname_defined = ENABLED
Sun Apr 22 22:53:15 2007 us=615332   authname = 'SHA1'
Sun Apr 22 22:53:15 2007 us=615743   keysize = 0
Sun Apr 22 22:53:15 2007 us=616054   engine = DISABLED
Sun Apr 22 22:53:15 2007 us=616071   replay = ENABLED
Sun Apr 22 22:53:15 2007 us=616117   mute_replay_warnings = DISABLED
Sun Apr 22 22:53:15 2007 us=616133   replay_window = 64
Sun Apr 22 22:53:15 2007 us=616150   replay_time = 15
Sun Apr 22 22:53:15 2007 us=616166   packet_id_file = ''
Sun Apr 22 22:53:15 2007 us=616180   use_iv = ENABLED
Sun Apr 22 22:53:15 2007 us=616582   test_crypto = DISABLED
Sun Apr 22 22:53:15 2007 us=616600   tls_server = ENABLED
Sun Apr 22 22:53:15 2007 us=616935   tls_client = DISABLED
Sun Apr 22 22:53:15 2007 us=617017   key_method = 2
Sun Apr 22 22:53:15 2007 us=617417   ca_file = 'D:\wzn\KEY\ca.crt'
Sun Apr 22 22:53:15 2007 us=617443   dh_file = 'D:\wzn\KEY\dh1024.pem'
Sun Apr 22 22:53:15 2007 us=617739   cert_file = 'D:\wzn\KEY\server.crt'
Sun Apr 22 22:53:15 2007 us=629939   priv_key_file = 'D:\wzn\KEY\server.key'
Sun Apr 22 22:53:15 2007 us=630022   pkcs12_file = ''
Sun Apr 22 22:53:15 2007 us=630412   cryptoapi_cert = ''
Sun Apr 22 22:53:15 2007 us=630534   cipher_list = ''
Sun Apr 22 22:53:15 2007 us=630548   tls_verify = ''
Sun Apr 22 22:53:15 2007 us=630559   tls_remote = ''
Sun Apr 22 22:53:15 2007 us=630570   crl_file = ''
Sun Apr 22 22:53:15 2007 us=630580   ns_cert_type = 0
Sun Apr 22 22:53:15 2007 us=630593   tls_timeout = 2
Sun Apr 22 22:53:15 2007 us=630604   renegotiate_bytes = 0
Sun Apr 22 22:53:15 2007 us=630615   renegotiate_packets = 0
Sun Apr 22 22:53:15 2007 us=630625   renegotiate_seconds = 3600
Sun Apr 22 22:53:15 2007 us=630636   handshake_window = 60
Sun Apr 22 22:53:15 2007 us=630647   transition_window = 3600
Sun Apr 22 22:53:15 2007 us=630658   single_session = DISABLED
Sun Apr 22 22:53:15 2007 us=630671   tls_exit = DISABLED
Sun Apr 22 22:53:15 2007 us=645972   tls_auth_file = ''
Sun Apr 22 22:53:15 2007 us=646437   server_network = 192.168.10.0
Sun Apr 22 22:53:15 2007 us=646770   server_netmask = 255.255.255.0
Sun Apr 22 22:53:15 2007 us=646791   server_bridge_ip = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=646838   server_bridge_netmask = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=646856   server_bridge_pool_start = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=646874   server_bridge_pool_end = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=646894   push_list = 'route 192.168.10.0 255.255.255.0,redirect-gateway def1,dhcp-option DNS 192.168.10.1,redirect-gateway def1,dhcp-option DNS 192.168.10.1,route-gateway 192.168.10.1,ping 20,ping-restart 180'
Sun Apr 22 22:53:15 2007 us=646973   ifconfig_pool_defined = ENABLED
Sun Apr 22 22:53:15 2007 us=647367   ifconfig_pool_start = 192.168.10.2
Sun Apr 22 22:53:15 2007 us=647698   ifconfig_pool_end = 192.168.10.254
Sun Apr 22 22:53:15 2007 us=647791   ifconfig_pool_netmask = 255.255.255.0
Sun Apr 22 22:53:15 2007 us=672332   ifconfig_pool_persist_filename = ''
Sun Apr 22 22:53:15 2007 us=672361   ifconfig_pool_persist_refresh_freq = 600
Sun Apr 22 22:53:15 2007 us=672386   ifconfig_pool_linear = DISABLED
Sun Apr 22 22:53:15 2007 us=672421   n_bcast_buf = 256
Sun Apr 22 22:53:15 2007 us=672440   tcp_queue_limit = 64
Sun Apr 22 22:53:15 2007 us=672454   real_hash_size = 256
Sun Apr 22 22:53:15 2007 us=672492   virtual_hash_size = 256
Sun Apr 22 22:53:15 2007 us=672510   client_connect_script = ''
Sun Apr 22 22:53:15 2007 us=672527   learn_address_script = ''
Sun Apr 22 22:53:15 2007 us=672539   client_disconnect_script = ''
Sun Apr 22 22:53:15 2007 us=672551   client_config_dir = ''
Sun Apr 22 22:53:15 2007 us=672562   ccd_exclusive = DISABLED
Sun Apr 22 22:53:15 2007 us=672573   tmp_dir = ''
Sun Apr 22 22:53:15 2007 us=672585   push_ifconfig_defined = DISABLED
Sun Apr 22 22:53:15 2007 us=672599   push_ifconfig_local = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=687220   push_ifconfig_remote_netmask = 0.0.0.0
Sun Apr 22 22:53:15 2007 us=687256   enable_c2c = ENABLED
Sun Apr 22 22:53:15 2007 us=687272   duplicate_cn = ENABLED
Sun Apr 22 22:53:15 2007 us=687286   cf_max = 0
Sun Apr 22 22:53:15 2007 us=687314   cf_per = 0
Sun Apr 22 22:53:15 2007 us=687331   max_clients = 1024
Sun Apr 22 22:53:15 2007 us=687344   max_routes_per_client = 256
Sun Apr 22 22:53:15 2007 us=687357   client_cert_not_required = DISABLED
Sun Apr 22 22:53:15 2007 us=687373   username_as_common_name = DISABLED
Sun Apr 22 22:53:15 2007 us=687387   auth_user_pass_verify_script = ''
Sun Apr 22 22:53:15 2007 us=687406   auth_user_pass_verify_script_via_file = DISABLED
Sun Apr 22 22:53:15 2007 us=687417   client = DISABLED
Sun Apr 22 22:53:15 2007 us=687429   pull = DISABLED
Sun Apr 22 22:53:15 2007 us=687441   auth_user_pass_file = ''
Sun Apr 22 22:53:15 2007 us=687456   show_net_up = DISABLED
Sun Apr 22 22:53:15 2007 us=704661   route_method = 0
Sun Apr 22 22:53:15 2007 us=704699   ip_win32_defined = DISABLED
Sun Apr 22 22:53:15 2007 us=704717   ip_win32_type = 3
Sun Apr 22 22:53:15 2007 us=704731   dhcp_masq_offset = 0
Sun Apr 22 22:53:15 2007 us=704761   dhcp_lease_time = 31536000
Sun Apr 22 22:53:15 2007 us=704777   tap_sleep = 10
Sun Apr 22 22:53:15 2007 us=704791   dhcp_options = DISABLED
Sun Apr 22 22:53:15 2007 us=704804   dhcp_renew = DISABLED
Sun Apr 22 22:53:15 2007 us=704818   dhcp_pre_release = DISABLED
Sun Apr 22 22:53:15 2007 us=704831   dhcp_release = DISABLED
Sun Apr 22 22:53:15 2007 us=704847   domain = ''
Sun Apr 22 22:53:15 2007 us=704858   netbios_scope = ''
Sun Apr 22 22:53:15 2007 us=704869   netbios_node_type = 0
Sun Apr 22 22:53:15 2007 us=704879   disable_nbt = DISABLED
Sun Apr 22 22:53:15 2007 us=704900 OpenVPN 2.0.9 Win32-MinGW built on Oct  1 2006
Sun Apr 22 22:53:15 2007 us=767726 Diffie-Hellman initialized with 1024 bit key
Sun Apr 22 22:53:15 2007 us=769598 TLS-Auth MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Apr 22 22:53:15 2007 us=775929 TAP-WIN32 device [本地連接 2] opened: \\.\Global\{D8C10C40-A75C-4D11-8FA0-EB1177CCE12C}.tap
Sun Apr 22 22:53:15 2007 us=775955 TAP-Win32 Driver Version 8.1
Sun Apr 22 22:53:15 2007 us=775973 TAP-Win32 MTU=1500
Sun Apr 22 22:53:15 2007 us=775996 Notified TAP-Win32 driver to set a DHCP IP/netmask of 192.168.10.1/255.255.255.0 on interface {D8C10C40-A75C-4D11-8FA0-EB1177CCE12C}
Sun Apr 22 22:53:15 2007 us=776050 Sleeping for 10 seconds...
Sun Apr 22 22:53:25 2007 us=778177 NOTE: could not get adapter index for \DEVICE\TCPIP_{D8C10C40-A75C-4D11-8FA0-EB1177CCE12C}, status=55 : 指定的網路資源或設備不再可用。  
Sun Apr 22 22:53:25 2007 us=779127 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Sun Apr 22 22:53:25 2007 us=779218 Socket Buffers: R= S=
Sun Apr 22 22:53:25 2007 us=779249 UDPv4 link local (bound): :2500
Sun Apr 22 22:53:25 2007 us=779260 UDPv4 link remote:
Sun Apr 22 22:53:25 2007 us=779273 MULTI: multi_init called, r=256 v=256
Sun Apr 22 22:53:25 2007 us=779313 IFCONFIG POOL: base=192.168.10.2 size=253
Sun Apr 22 22:53:25 2007 us=779348 Initialization Sequence Completed

[ 本帖最後由 qinsuenwen 於 2007-4-24 15:51 編輯 ]
《解決方案》

有人看沒人回,鬱悶了!
期待高手指點 ing。。。。。
《解決方案》

來個老鳥,幫幫忙啊!
《解決方案》

Sun Apr 22 22:53:15 2007 us=776050 Sleeping for 10 seconds...
Sun Apr 22 22:53:25 2007 us=778177 NOTE: could not get adapter index for \DEVICE\TCPIP_{D8C10C40-A75C-4D11-8FA0-EB1177CCE12C}, status=55 : 指定的網路資源或設備不再可用。  
Sun Apr 22 22:53:25 2007 us=779127 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]

換個機器試試,可能TAP這個虛擬網卡安裝得有問題
《解決方案》

我記得windows 2k上不能做橋接的,你要做橋接的話,最好是2003 server(xp也可以,但不專業)。

你看看我以前寫的貼子:
http://bbs.chinaunix.net/viewthread.php?tid=802401

或者把服務端與客戶端的日誌文件的最後一些拿出來,看看到底為什麼客戶端沒有拿到ip。

[ 本帖最後由 sailer_sh 於 2007-4-27 11:11 編輯 ]
《解決方案》

當初在linux下做,單網卡也做出問題了 ~~~~
《解決方案》

原帖由 dayerong 於 2007-4-27 12:33 發表
當初在linux下做,單網卡也做出問題了 ~~~~

Linux下單網卡橋接是沒有問題的哦

我剛用OpenVPN的時候做過
《解決方案》

也是這個問題
後來才發現是tap網卡被改過名了
自動建立的是本地連接6,後來改成2
所以註冊表裡面就不認識這個tap

[火星人 ] 在windows2003上建立openvpn時出現的問題!已經有313次圍觀

http://coctec.com/docs/service/show-post-27881.html