Код: Выделить всё
cd /dev/
make tun0
Код: Выделить всё
;server 10.10.10.0 255.255.255.0
Код: Выделить всё
openvpn.conf
port 2000
proto udp
dev tun0
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/openvpn.crt
key /usr/local/etc/openvpn/keys/openvpn.key
dh /usr/local/etc/openvpn/keys/dh.pem
tls-auth /usr/local/etc/openvpn/keys/ta.key
;server 10.10.10.0 255.255.255.0
keepalive 10 120
log /var/log/openvpn/openvpn.log
;log-append /var/log/openvpn/openvpn.log
verb 6
Код: Выделить всё
LOG
Fri Aug 12 11:39:32 2016 us=173359 Current Parameter Settings:
Fri Aug 12 11:39:32 2016 us=173589 config = '/usr/local/etc/openvpn/openvpn.conf'
Fri Aug 12 11:39:32 2016 us=173624 mode = 1
Fri Aug 12 11:39:32 2016 us=173647 show_ciphers = DISABLED
Fri Aug 12 11:39:32 2016 us=173668 show_digests = DISABLED
Fri Aug 12 11:39:32 2016 us=173688 show_engines = DISABLED
Fri Aug 12 11:39:32 2016 us=173708 genkey = DISABLED
Fri Aug 12 11:39:32 2016 us=173729 key_pass_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=173750 show_tls_ciphers = DISABLED
Fri Aug 12 11:39:32 2016 us=173770 Connection profiles [default]:
Fri Aug 12 11:39:32 2016 us=173791 proto = udp
Fri Aug 12 11:39:32 2016 us=173812 local = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=173832 local_port = 2000
Fri Aug 12 11:39:32 2016 us=173852 remote = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=173872 remote_port = 2000
Fri Aug 12 11:39:32 2016 us=173893 remote_float = DISABLED
Fri Aug 12 11:39:32 2016 us=173913 bind_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=173933 bind_local = ENABLED
Fri Aug 12 11:39:32 2016 us=173954 connect_retry_seconds = 5
Fri Aug 12 11:39:32 2016 us=173974 connect_timeout = 10
Fri Aug 12 11:39:32 2016 us=173994 connect_retry_max = 0
Fri Aug 12 11:39:32 2016 us=174015 socks_proxy_server = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174035 socks_proxy_port = 0
Fri Aug 12 11:39:32 2016 us=174055 socks_proxy_retry = DISABLED
Fri Aug 12 11:39:32 2016 us=174075 tun_mtu = 1500
Fri Aug 12 11:39:32 2016 us=174096 tun_mtu_defined = ENABLED
Fri Aug 12 11:39:32 2016 us=174116 link_mtu = 1500
Fri Aug 12 11:39:32 2016 us=174136 link_mtu_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=174157 tun_mtu_extra = 0
Fri Aug 12 11:39:32 2016 us=174177 tun_mtu_extra_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=174197 mtu_discover_type = -1
Fri Aug 12 11:39:32 2016 us=174217 fragment = 0
Fri Aug 12 11:39:32 2016 us=174237 mssfix = 1450
Fri Aug 12 11:39:32 2016 us=174258 explicit_exit_notification = 0
Fri Aug 12 11:39:32 2016 us=174278 Connection profiles END
Fri Aug 12 11:39:32 2016 us=174311 remote_random = DISABLED
Fri Aug 12 11:39:32 2016 us=174333 ipchange = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174354 dev = 'tun0'
Fri Aug 12 11:39:32 2016 us=174374 dev_type = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174394 dev_node = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174415 lladdr = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174435 topology = 1
Fri Aug 12 11:39:32 2016 us=174456 tun_ipv6 = DISABLED
Fri Aug 12 11:39:32 2016 us=174476 ifconfig_local = '10.10.10.1'
Fri Aug 12 11:39:32 2016 us=174497 ifconfig_remote_netmask = '10.10.10.2'
Fri Aug 12 11:39:32 2016 us=174529 ifconfig_noexec = DISABLED
Fri Aug 12 11:39:32 2016 us=174550 ifconfig_nowarn = DISABLED
Fri Aug 12 11:39:32 2016 us=174571 ifconfig_ipv6_local = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174591 ifconfig_ipv6_netbits = 0
Fri Aug 12 11:39:32 2016 us=174611 ifconfig_ipv6_remote = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=174631 shaper = 0
Fri Aug 12 11:39:32 2016 us=174652 mtu_test = 0
Fri Aug 12 11:39:32 2016 us=174672 mlock = DISABLED
Fri Aug 12 11:39:32 2016 us=174692 keepalive_ping = 10
Fri Aug 12 11:39:32 2016 us=174713 keepalive_timeout = 120
Fri Aug 12 11:39:32 2016 us=174733 inactivity_timeout = 0
Fri Aug 12 11:39:32 2016 us=174754 ping_send_timeout = 10
Fri Aug 12 11:39:32 2016 us=174774 ping_rec_timeout = 240
Fri Aug 12 11:39:32 2016 us=174795 ping_rec_timeout_action = 2
Fri Aug 12 11:39:32 2016 us=174815 ping_timer_remote = DISABLED
Fri Aug 12 11:39:32 2016 us=174836 remap_sigusr1 = 0
Fri Aug 12 11:39:32 2016 us=174856 persist_tun = DISABLED
Fri Aug 12 11:39:32 2016 us=174878 persist_local_ip = DISABLED
Fri Aug 12 11:39:32 2016 us=174913 persist_remote_ip = DISABLED
Fri Aug 12 11:39:32 2016 us=174943 persist_key = DISABLED
Fri Aug 12 11:39:32 2016 us=174973 passtos = DISABLED
Fri Aug 12 11:39:32 2016 us=175002 resolve_retry_seconds = 1000000000
Fri Aug 12 11:39:32 2016 us=175031 username = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175060 groupname = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175096 chroot_dir = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175126 cd_dir = '/usr/local/etc/openvpn'
Fri Aug 12 11:39:32 2016 us=175155 writepid = '/var/run/openvpn.pid'
Fri Aug 12 11:39:32 2016 us=175184 up_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175213 down_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175247 down_pre = DISABLED
Fri Aug 12 11:39:32 2016 us=175272 up_restart = DISABLED
Fri Aug 12 11:39:32 2016 us=175293 up_delay = DISABLED
Fri Aug 12 11:39:32 2016 us=175314 daemon = ENABLED
Fri Aug 12 11:39:32 2016 us=175334 inetd = 0
Fri Aug 12 11:39:32 2016 us=175355 log = ENABLED
Fri Aug 12 11:39:32 2016 us=175375 suppress_timestamps = DISABLED
Fri Aug 12 11:39:32 2016 us=175395 nice = 0
Fri Aug 12 11:39:32 2016 us=175415 verbosity = 6
Fri Aug 12 11:39:32 2016 us=175446 mute = 0
Fri Aug 12 11:39:32 2016 us=175468 gremlin = 0
Fri Aug 12 11:39:32 2016 us=175489 status_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175517 status_file_version = 1
Fri Aug 12 11:39:32 2016 us=175540 status_file_update_freq = 60
Fri Aug 12 11:39:32 2016 us=175561 occ = ENABLED
Fri Aug 12 11:39:32 2016 us=175581 rcvbuf = 0
Fri Aug 12 11:39:32 2016 us=175602 sndbuf = 0
Fri Aug 12 11:39:32 2016 us=175622 sockflags = 0
Fri Aug 12 11:39:32 2016 us=175642 fast_io = DISABLED
Fri Aug 12 11:39:32 2016 us=175663 lzo = 0
Fri Aug 12 11:39:32 2016 us=175683 route_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175703 route_default_gateway = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175724 route_default_metric = 0
Fri Aug 12 11:39:32 2016 us=175744 route_noexec = DISABLED
Fri Aug 12 11:39:32 2016 us=175764 route_delay = 0
Fri Aug 12 11:39:32 2016 us=175786 route_delay_window = 30
Fri Aug 12 11:39:32 2016 us=175811 route_delay_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=175832 route_nopull = DISABLED
Fri Aug 12 11:39:32 2016 us=175852 route_gateway_via_dhcp = DISABLED
Fri Aug 12 11:39:32 2016 us=175872 max_routes = 100
Fri Aug 12 11:39:32 2016 us=175897 allow_pull_fqdn = DISABLED
Fri Aug 12 11:39:32 2016 us=175920 route 10.10.10.0/255.255.255.0/nil/nil
Fri Aug 12 11:39:32 2016 us=175941 management_addr = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=175962 management_port = 0
Fri Aug 12 11:39:32 2016 us=175982 management_user_pass = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176003 management_log_history_cache = 250
Fri Aug 12 11:39:32 2016 us=176024 management_echo_buffer_size = 100
Fri Aug 12 11:39:32 2016 us=176044 management_write_peer_info_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176065 management_client_user = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176086 management_client_group = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176110 management_flags = 0
Fri Aug 12 11:39:32 2016 us=176147 shared_secret_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176184 key_direction = 0
Fri Aug 12 11:39:32 2016 us=176222 ciphername_defined = ENABLED
Fri Aug 12 11:39:32 2016 us=176258 ciphername = 'BF-CBC'
Fri Aug 12 11:39:32 2016 us=176292 authname_defined = ENABLED
Fri Aug 12 11:39:32 2016 us=176327 authname = 'SHA1'
Fri Aug 12 11:39:32 2016 us=176366 prng_hash = 'SHA1'
Fri Aug 12 11:39:32 2016 us=176403 prng_nonce_secret_len = 16
Fri Aug 12 11:39:32 2016 us=176433 keysize = 0
Fri Aug 12 11:39:32 2016 us=176455 engine = DISABLED
Fri Aug 12 11:39:32 2016 us=176475 replay = ENABLED
Fri Aug 12 11:39:32 2016 us=176496 mute_replay_warnings = DISABLED
Fri Aug 12 11:39:32 2016 us=176529 replay_window = 64
Fri Aug 12 11:39:32 2016 us=176551 replay_time = 15
Fri Aug 12 11:39:32 2016 us=176571 packet_id_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176592 use_iv = ENABLED
Fri Aug 12 11:39:32 2016 us=176612 test_crypto = DISABLED
Fri Aug 12 11:39:32 2016 us=176633 tls_server = ENABLED
Fri Aug 12 11:39:32 2016 us=176653 tls_client = DISABLED
Fri Aug 12 11:39:32 2016 us=176673 key_method = 2
Fri Aug 12 11:39:32 2016 us=176694 ca_file = '/usr/local/etc/openvpn/keys/ca.crt'
Fri Aug 12 11:39:32 2016 us=176717 ca_path = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176761 dh_file = '/usr/local/etc/openvpn/keys/dh.pem'
Fri Aug 12 11:39:32 2016 us=176801 cert_file = '/usr/local/etc/openvpn/keys/openvpn.crt'
Fri Aug 12 11:39:32 2016 us=176827 extra_certs_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176848 priv_key_file = '/usr/local/etc/openvpn/keys/openvpn.key'
Fri Aug 12 11:39:32 2016 us=176869 pkcs12_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176890 cipher_list = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176910 tls_verify = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176931 tls_export_cert = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=176953 verify_x509_type = 0
Fri Aug 12 11:39:32 2016 us=176991 verify_x509_name = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=177030 crl_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=177062 ns_cert_type = 0
Fri Aug 12 11:39:32 2016 us=177084 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177104 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177124 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177145 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177165 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177185 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177205 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177225 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177245 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177266 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177286 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177306 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177326 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177346 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177367 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177396 remote_cert_ku[i] = 0
Fri Aug 12 11:39:32 2016 us=177432 remote_cert_eku = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=177468 ssl_flags = 0
Fri Aug 12 11:39:32 2016 us=177491 tls_timeout = 2
Fri Aug 12 11:39:32 2016 us=177522 renegotiate_bytes = 0
Fri Aug 12 11:39:32 2016 us=177544 renegotiate_packets = 0
Fri Aug 12 11:39:32 2016 us=177570 renegotiate_seconds = 3600
Fri Aug 12 11:39:32 2016 us=177591 handshake_window = 60
Fri Aug 12 11:39:32 2016 us=177612 transition_window = 3600
Fri Aug 12 11:39:32 2016 us=177632 single_session = DISABLED
Fri Aug 12 11:39:32 2016 us=177652 push_peer_info = DISABLED
Fri Aug 12 11:39:32 2016 us=177672 tls_exit = DISABLED
Fri Aug 12 11:39:32 2016 us=177693 tls_auth_file = '/usr/local/etc/openvpn/keys/ta.key'
Fri Aug 12 11:39:32 2016 us=177716 server_network = 10.10.10.0
Fri Aug 12 11:39:32 2016 us=177738 server_netmask = 255.255.255.0
Fri Aug 12 11:39:32 2016 us=177763 server_network_ipv6 = ::
Fri Aug 12 11:39:32 2016 us=177784 server_netbits_ipv6 = 0
Fri Aug 12 11:39:32 2016 us=177806 server_bridge_ip = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=177828 server_bridge_netmask = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=177850 server_bridge_pool_start = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=177872 server_bridge_pool_end = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=177892 push_entry = 'route 10.10.10.1'
Fri Aug 12 11:39:32 2016 us=177913 push_entry = 'topology net30'
Fri Aug 12 11:39:32 2016 us=177933 push_entry = 'ping 10'
Fri Aug 12 11:39:32 2016 us=177953 push_entry = 'ping-restart 120'
Fri Aug 12 11:39:32 2016 us=177973 ifconfig_pool_defined = ENABLED
Fri Aug 12 11:39:32 2016 us=177996 ifconfig_pool_start = 10.10.10.4
Fri Aug 12 11:39:32 2016 us=178018 ifconfig_pool_end = 10.10.10.251
Fri Aug 12 11:39:32 2016 us=178039 ifconfig_pool_netmask = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=178060 ifconfig_pool_persist_filename = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=178081 ifconfig_pool_persist_refresh_freq = 600
Fri Aug 12 11:39:32 2016 us=178102 ifconfig_ipv6_pool_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=178123 ifconfig_ipv6_pool_base = ::
Fri Aug 12 11:39:32 2016 us=178143 ifconfig_ipv6_pool_netbits = 0
Fri Aug 12 11:39:32 2016 us=178163 n_bcast_buf = 256
Fri Aug 12 11:39:32 2016 us=178184 tcp_queue_limit = 64
Fri Aug 12 11:39:32 2016 us=178210 real_hash_size = 256
Fri Aug 12 11:39:32 2016 us=178231 virtual_hash_size = 256
Fri Aug 12 11:39:32 2016 us=178252 client_connect_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=178272 learn_address_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=182763 client_disconnect_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=182793 client_config_dir = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=182815 ccd_exclusive = DISABLED
Fri Aug 12 11:39:32 2016 us=182835 tmp_dir = '/tmp'
Fri Aug 12 11:39:32 2016 us=182856 push_ifconfig_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=182878 push_ifconfig_local = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=182901 push_ifconfig_remote_netmask = 0.0.0.0
Fri Aug 12 11:39:32 2016 us=182921 push_ifconfig_ipv6_defined = DISABLED
Fri Aug 12 11:39:32 2016 us=182943 push_ifconfig_ipv6_local = ::/0
Fri Aug 12 11:39:32 2016 us=182964 push_ifconfig_ipv6_remote = ::
Fri Aug 12 11:39:32 2016 us=182984 enable_c2c = DISABLED
Fri Aug 12 11:39:32 2016 us=183005 duplicate_cn = DISABLED
Fri Aug 12 11:39:32 2016 us=183026 cf_max = 0
Fri Aug 12 11:39:32 2016 us=183046 cf_per = 0
Fri Aug 12 11:39:32 2016 us=183067 max_clients = 1024
Fri Aug 12 11:39:32 2016 us=183087 max_routes_per_client = 256
Fri Aug 12 11:39:32 2016 us=183108 auth_user_pass_verify_script = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=183128 auth_user_pass_verify_script_via_file = DISABLED
Fri Aug 12 11:39:32 2016 us=183149 port_share_host = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=183179 port_share_port = 0
Fri Aug 12 11:39:32 2016 us=183214 client = DISABLED
Fri Aug 12 11:39:32 2016 us=183249 pull = DISABLED
Fri Aug 12 11:39:32 2016 us=183288 auth_user_pass_file = '[UNDEF]'
Fri Aug 12 11:39:32 2016 us=183322 OpenVPN 2.3.11 i386-portbld-freebsd8.4 [SSL (OpenSSL)] [LZO] [MH] [IPv6] built on Aug 9 2016
Fri Aug 12 11:39:32 2016 us=183373 library versions: OpenSSL 0.9.8y 5 Feb 2013, LZO 2.09
Fri Aug 12 11:39:32 2016 us=238435 Diffie-Hellman initialized with 2048 bit key
P.S. Я Виндосовод, если что то недокинул - напишите