Hello!
Please, help me with settings for openvpn+freeradius, if you can.
I use openvpn openvpn-2.3.10, freeradius 2.2.5 and radiusplugin
http://www.nongnu.org/radiusplugin/
When i installed openvpn server and freeradius server in the same subnet with real IP, it works.
When i installed openvpn server and freeradius server NOT in the same subnet with real ip, it doesnt work.
There is no firewalls between my freeradius and openvpn servers; iptables are fully disabled. They can ping themselve.
server.conf
local x.x.x.x #this openvpn server's white ip
port 443
proto tcp
dev tun0
ca ca.crt
cert server1.crt
key server1.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tcp-queue-limit 256
tun-mtu 1400
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /etc/openvpn/openvpn-status.log
log /etc/openvpn/openvpn.log
verb 6
plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf
client.ovpn
client
dev tun
proto tcp
remote x.x.x.x 443 #openvpn server ip
nobind
persist-key
persist-tun
auth-user-pass
comp-lzo
reneg-sec 0
tun-mtu 1400
verb 6
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
radiusplugin.cong
# The NAS identifier which is sent to the RADIUS server
NAS-Identifier=OpenVpn
# The service type which is sent to the RADIUS server
Service-Type=5
# The framed protocol which is sent to the RADIUS server
Framed-Protocol=1
# The NAS port type which is sent to the RADIUS server
NAS-Port-Type=5
# The NAS IP address which is sent to the RADIUS server
NAS-IP-Address=x.x.x.x #ip of my openvpn server
# Path to the OpenVPN configfile. The plugin searches there for
# client-config-dir PATH (searches for the path)
# status FILE (searches for the file, version must be 1)
# client-cert-not-required (if the option is used or not)
# username-as-common-name (if the option is used or not)
OpenVPNConfig=/etc/openvpn/server.conf
# Support for topology option in OpenVPN 2.1
# If you don't specify anything, option "net30" (default in OpenVPN) is used.
# You can only use one of the options at the same time.
# If you use topology option "subnet", fill in the right netmask, e.g. from OpenVPN option "--server NETWORK NETMASK"
subnet=255.255.255.0
# If you use topology option "p2p", fill in the right network, e.g. from OpenVPN option "--server NETWORK NETMASK"
# p2p=10.8.0.1
# Allows the plugin to overwrite the client config in client config file directory,
# default is true
overwriteccfiles=true
# Allows the plugin to use auth control files if OpenVPN (>= 2.1 rc8) provides them.
# default is false
# useauthcontrolfile=false
# Only the accouting functionality is used, if no user name to forwarded to the plugin, the common name of certificate is used
# as user name for radius accounting.
# default is false
# accountingonly=false
# If the accounting is non essential, nonfatalaccounting can be set to true.
# If set to true all errors during the accounting procedure are ignored, which can be
# - radius accounting can fail
# - FramedRouted (if configured) maybe not configured correctly
# - errors during vendor specific attributes script execution are ignored
# But if set to true the performance is increased because OpenVPN does not block during the accounting procedure.
# default is false
nonfatalaccounting=false
# Path to a script for vendor specific attributes.
# Leave it out if you don't use an own script.
# vsascript=/root/workspace/radiusplugin_v2.0.5_beta/vsascript.pl
# Path to the pipe for communication with the vsascript.
# Leave it out if you don't use an own script.
# vsanamedpipe=/tmp/vsapipe
# A radius server definition, there could be more than one.
# The priority of the server depends on the order in this file. The first one has the highest priority.
server
{
# The UDP port for radius accounting.
acctport=1813
# The UDP port for radius authentication.
authport=1812
# The name or ip address of the radius server.
name=y.y.y.y #ip of my freeradius server
# How many times should the plugin send the if there is no response?
retry=3
# How long should the plugin wait for a response?
wait=3
# The shared secret.
sharedsecret = my_pass
}
feeradius clients.conf
# -*- text -*-
##
## clients.conf -- client configuration directives
##
## $Id: 729c15d3e84c6cdb54a5f3652d93a2d7f8725fd4 $
#######################################################################
#
# Define RADIUS clients (usually a NAS, Access Point, etc.).
#
# Defines a RADIUS client.
#
# '127.0.0.1' is another name for 'localhost'. It is enabled by default,
# to allow testing of the server after an initial installation. If you
# are not going to be permitting RADIUS queries from localhost, we suggest
# that you delete, or comment out, this entry.
#
#
#
# Each client has a "short name" that is used to distinguish it from
# other clients.
#
# In version 1.x, the string after the word "client" was the IP
# address of the client. In 2.0, the IP address is configured via
# the "ipaddr" or "ipv6addr" fields. For compatibility, the 1.x
# format is still accepted.
#
client localhost {
# Allowed values are:
# dotted quad (1.2.3.4)
# hostname (radius.example.com)
ipaddr = 127.0.0.1
# OR, you can use an IPv6 address, but not both
# at the same time.
# ipv6addr = :: # any. ::1 == localhost
#
# A note on DNS: We STRONGLY recommend using IP addresses
# rather than host names. Using host names means that the
# server will do DNS lookups when it starts, making it
# dependent on DNS. i.e. If anything goes wrong with DNS,
# the server won't start!
#
# The server also looks up the IP address from DNS once, and
# only once, when it starts. If the DNS record is later
# updated, the server WILL NOT see that update.
#
# One client definition can be applied to an entire network.
# e.g. 127/8 should be defined with "ipaddr = 127.0.0.0" and
# "netmask = 8"
#
# If not specified, the default netmask is 32 (i.e. /32)
#
# We do NOT recommend using anything other than 32. There
# are usually other, better ways to achieve the same goal.
# Using netmasks of other than 32 can cause security issues.
#
# You can specify overlapping networks (127/8 and 127.0/16)
# In that case, the smallest possible network will be used
# as the "best match" for the client.
#
# Clients can also be defined dynamically at run time, based
# on any criteria. e.g. SQL lookups, keying off of NAS-Identifier,
# etc.
# See raddb/sites-available/dynamic-clients for details.
#
# netmask = 32
#
# The shared secret use to "encrypt" and "sign" packets between
# the NAS and FreeRADIUS. You MUST change this secret from the
# default, otherwise it's not a secret any more!
#
# The secret can be any string, up to 8k characters in length.
#
# Control codes can be entered vi octal encoding,
# e.g. "\101\102" == "AB"
# Quotation marks can be entered by escaping them,
# e.g. "foo\"bar"
#
# A note on security: The security of the RADIUS protocol
# depends COMPLETELY on this secret! We recommend using a
# shared secret that is composed of:
#
# upper case letters
# lower case letters
# numbers
#
# And is at LEAST 8 characters long, preferably 16 characters in
# length. The secret MUST be random, and should not be words,
# phrase, or anything else that is recognizable.
#
# The default secret below is only for testing, and should
# not be used in any real environment.
#
# secret = testing123
secret = testing123
#
# Old-style clients do not send a Message-Authenticator
# in an Access-Request. RFC 5080 suggests that all clients
# SHOULD include it in an Access-Request. The configuration
# item below allows the server to require it. If a client
# is required to include a Message-Authenticator and it does
# not, then the packet will be silently discarded.
#
# allowed values: yes, no
require_message_authenticator = no
#
# The short name is used as an alias for the fully qualified
# domain name, or the IP address.
#
# It is accepted for compatibility with 1.x, but it is no
# longer necessary in 2.0
#
# shortname = localhost
#
# the following three fields are optional, but may be used by
# checkrad.pl for simultaneous use checks
#
#
# The nastype tells 'checkrad.pl' which NAS-specific method to
# use to query the NAS for simultaneous use.
#
# Permitted NAS types are:
#
# cisco
# computone
# livingston
# juniper
# max40xx
# multitech
# netserver
# pathras
# patton
# portslave
# tc
# usrhiper
# other # for all other types
#
nastype = other # localhost isn't usually a NAS...
#
# The following two configurations are for future use.
# The 'naspasswd' file is currently used to store the NAS
# login name and password, which is used by checkrad.pl
# when querying the NAS for simultaneous use.
#
# login = !root
# password = someadminpas
#
# As of 2.0, clients can also be tied to a virtual server.
# This is done by setting the "virtual_server" configuration
# item, as in the example below.
#
# virtual_server = home1
#
# A pointer to the "home_server_pool" OR a "home_server"
# section that contains the CoA configuration for this
# client. For an example of a coa home server or pool,
# see raddb/sites-available/originate-coa
# coa_server = coa
}
# IPv6 Client
#client ::1 {
# secret = testing123
# shortname = localhost
#}
#
# All IPv6 Site-local clients
#client fe80::/16 {
# secret = testing123
# shortname = localhost
#}
#client some.host.org {
# secret = testing123
# shortname = localhost
#}
#
# You can now specify one secret for a network of clients.
# When a client request comes in, the BEST match is chosen.
# i.e. The entry from the smallest possible network.
#
#client 192.168.0.0/24 {
# secret = testing123-1
# shortname = private-network-1
#}
#
#client 192.168.0.0/16 {
# secret = testing123-2
# shortname = private-network-2
#}
#client 10.10.10.10 {
# # secret and password are mapped through the "secrets" file.
# secret = testing123
# shortname = liv1
# # the following three fields are optional, but may be used by
# # checkrad.pl for simultaneous usage checks
# nastype = livingston
# login = !root
# password = someadminpas
#}
#######################################################################
#
# Per-socket client lists. The configuration entries are exactly
# the same as above, but they are nested inside of a section.
#
# You can have as many per-socket client lists as you have "listen"
# sections, or you can re-use a list among multiple "listen" sections.
#
# Un-comment this section, and edit a "listen" section to add:
# "clients = per_socket_clients". That IP address/port combination
# will then accept ONLY the clients listed in this section.
#
#clients per_socket_clients {
# client 192.168.3.4 {
# secret = testing123
# }
#}
#ip of my openvpn server
client x.x.x.x {
secret = my_pass
nastype = other
}
when i connect my openvpn client, i see, thah freeradius doesnt see anything: i started freeradius -X on the server:
...
...
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
}
listen {
type = "acct"
ipaddr = *
port = 0
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
... adding new socket proxy address * port 51042
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Ready to process requests.
On the client:
Tue Apr 26 13:49:18 2016 us=35524 Current Parameter Settings:
Tue Apr 26 13:49:18 2016 us=35570 config = 'o.ovpn'
Tue Apr 26 13:49:18 2016 us=35581 mode = 0
Tue Apr 26 13:49:18 2016 us=35590 persist_config = DISABLED
Tue Apr 26 13:49:18 2016 us=35599 persist_mode = 1
Tue Apr 26 13:49:18 2016 us=35607 show_ciphers = DISABLED
Tue Apr 26 13:49:18 2016 us=35616 show_digests = DISABLED
Tue Apr 26 13:49:18 2016 us=35624 show_engines = DISABLED
Tue Apr 26 13:49:18 2016 us=35632 genkey = DISABLED
Tue Apr 26 13:49:18 2016 us=35640 key_pass_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35649 show_tls_ciphers = DISABLED
Tue Apr 26 13:49:18 2016 us=35657 Connection profiles [default]:
Tue Apr 26 13:49:18 2016 us=35665 proto = tcp-client
Tue Apr 26 13:49:18 2016 us=35674 local = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35682 local_port = 0
Tue Apr 26 13:49:18 2016 us=35689 remote = 'x.x.x.x'
Tue Apr 26 13:49:18 2016 us=35697 remote_port = 443
Tue Apr 26 13:49:18 2016 us=35705 remote_float = DISABLED
Tue Apr 26 13:49:18 2016 us=35713 bind_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=35721 bind_local = DISABLED
Tue Apr 26 13:49:18 2016 us=35729 connect_retry_seconds = 5
Tue Apr 26 13:49:18 2016 us=35737 connect_timeout = 10
Tue Apr 26 13:49:18 2016 us=35745 connect_retry_max = 0
Tue Apr 26 13:49:18 2016 us=35753 socks_proxy_server = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35762 socks_proxy_port = 0
Tue Apr 26 13:49:18 2016 us=35769 socks_proxy_retry = DISABLED
Tue Apr 26 13:49:18 2016 us=35778 tun_mtu = 1400
Tue Apr 26 13:49:18 2016 us=35786 tun_mtu_defined = ENABLED
Tue Apr 26 13:49:18 2016 us=35794 link_mtu = 1500
Tue Apr 26 13:49:18 2016 us=35802 link_mtu_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=35811 tun_mtu_extra = 0
Tue Apr 26 13:49:18 2016 us=35819 tun_mtu_extra_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=35842 mtu_discover_type = -1
Tue Apr 26 13:49:18 2016 us=35852 fragment = 0
Tue Apr 26 13:49:18 2016 us=35868 mssfix = 1450
Tue Apr 26 13:49:18 2016 us=35877 explicit_exit_notification = 0
Tue Apr 26 13:49:18 2016 us=35885 Connection profiles END
Tue Apr 26 13:49:18 2016 us=35892 remote_random = DISABLED
Tue Apr 26 13:49:18 2016 us=35900 ipchange = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35907 dev = 'tun'
Tue Apr 26 13:49:18 2016 us=35915 dev_type = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35922 dev_node = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35930 lladdr = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35937 topology = 1
Tue Apr 26 13:49:18 2016 us=35945 tun_ipv6 = DISABLED
Tue Apr 26 13:49:18 2016 us=35952 ifconfig_local = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35960 ifconfig_remote_netmask = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35968 ifconfig_noexec = DISABLED
Tue Apr 26 13:49:18 2016 us=35976 ifconfig_nowarn = DISABLED
Tue Apr 26 13:49:18 2016 us=35984 ifconfig_ipv6_local = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=35991 ifconfig_ipv6_netbits = 0
Tue Apr 26 13:49:18 2016 us=35999 ifconfig_ipv6_remote = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36007 shaper = 0
Tue Apr 26 13:49:18 2016 us=36014 mtu_test = 0
Tue Apr 26 13:49:18 2016 us=36022 mlock = DISABLED
Tue Apr 26 13:49:18 2016 us=36029 keepalive_ping = 0
Tue Apr 26 13:49:18 2016 us=36037 keepalive_timeout = 0
Tue Apr 26 13:49:18 2016 us=36045 inactivity_timeout = 0
Tue Apr 26 13:49:18 2016 us=36052 ping_send_timeout = 0
Tue Apr 26 13:49:18 2016 us=36060 ping_rec_timeout = 0
Tue Apr 26 13:49:18 2016 us=36067 ping_rec_timeout_action = 0
Tue Apr 26 13:49:18 2016 us=36075 ping_timer_remote = DISABLED
Tue Apr 26 13:49:18 2016 us=36082 remap_sigusr1 = 0
Tue Apr 26 13:49:18 2016 us=36090 persist_tun = ENABLED
Tue Apr 26 13:49:18 2016 us=36097 persist_local_ip = DISABLED
Tue Apr 26 13:49:18 2016 us=36105 persist_remote_ip = DISABLED
Tue Apr 26 13:49:18 2016 us=36113 persist_key = ENABLED
Tue Apr 26 13:49:18 2016 us=36120 passtos = DISABLED
Tue Apr 26 13:49:18 2016 us=36128 resolve_retry_seconds = 1000000000
Tue Apr 26 13:49:18 2016 us=36135 username = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36143 groupname = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36150 chroot_dir = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36158 cd_dir = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36165 writepid = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36173 up_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36180 down_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36188 down_pre = DISABLED
Tue Apr 26 13:49:18 2016 us=36195 up_restart = DISABLED
Tue Apr 26 13:49:18 2016 us=36202 up_delay = DISABLED
Tue Apr 26 13:49:18 2016 us=36210 daemon = DISABLED
Tue Apr 26 13:49:18 2016 us=36217 inetd = 0
Tue Apr 26 13:49:18 2016 us=36225 log = DISABLED
Tue Apr 26 13:49:18 2016 us=36233 suppress_timestamps = DISABLED
Tue Apr 26 13:49:18 2016 us=36240 nice = 0
Tue Apr 26 13:49:18 2016 us=36248 verbosity = 6
Tue Apr 26 13:49:18 2016 us=36256 mute = 0
Tue Apr 26 13:49:18 2016 us=36263 gremlin = 0
Tue Apr 26 13:49:18 2016 us=36271 status_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36278 status_file_version = 1
Tue Apr 26 13:49:18 2016 us=36286 status_file_update_freq = 60
Tue Apr 26 13:49:18 2016 us=36293 occ = ENABLED
Tue Apr 26 13:49:18 2016 us=36301 rcvbuf = 0
Tue Apr 26 13:49:18 2016 us=36308 sndbuf = 0
Tue Apr 26 13:49:18 2016 us=36316 mark = 0
Tue Apr 26 13:49:18 2016 us=36323 sockflags = 0
Tue Apr 26 13:49:18 2016 us=36330 fast_io = DISABLED
Tue Apr 26 13:49:18 2016 us=36338 lzo = 7
Tue Apr 26 13:49:18 2016 us=36345 route_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36353 route_default_gateway = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36361 route_default_metric = 0
Tue Apr 26 13:49:18 2016 us=36369 route_noexec = DISABLED
Tue Apr 26 13:49:18 2016 us=36377 route_delay = 0
Tue Apr 26 13:49:18 2016 us=36384 route_delay_window = 30
Tue Apr 26 13:49:18 2016 us=36392 route_delay_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=36399 route_nopull = DISABLED
Tue Apr 26 13:49:18 2016 us=36407 route_gateway_via_dhcp = DISABLED
Tue Apr 26 13:49:18 2016 us=36415 max_routes = 100
Tue Apr 26 13:49:18 2016 us=36423 allow_pull_fqdn = DISABLED
Tue Apr 26 13:49:18 2016 us=36431 management_addr = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36438 management_port = 0
Tue Apr 26 13:49:18 2016 us=36446 management_user_pass = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36453 management_log_history_cache = 250
Tue Apr 26 13:49:18 2016 us=36461 management_echo_buffer_size = 100
Tue Apr 26 13:49:18 2016 us=36469 management_write_peer_info_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36477 management_client_user = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36485 management_client_group = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36493 management_flags = 0
Tue Apr 26 13:49:18 2016 us=36500 shared_secret_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36508 key_direction = 0
Tue Apr 26 13:49:18 2016 us=36515 ciphername_defined = ENABLED
Tue Apr 26 13:49:18 2016 us=36523 ciphername = 'BF-CBC'
Tue Apr 26 13:49:18 2016 us=36531 authname_defined = ENABLED
Tue Apr 26 13:49:18 2016 us=36538 authname = 'SHA1'
Tue Apr 26 13:49:18 2016 us=36546 prng_hash = 'SHA1'
Tue Apr 26 13:49:18 2016 us=36554 prng_nonce_secret_len = 16
Tue Apr 26 13:49:18 2016 us=36561 keysize = 0
Tue Apr 26 13:49:18 2016 us=36569 engine = DISABLED
Tue Apr 26 13:49:18 2016 us=36577 replay = ENABLED
Tue Apr 26 13:49:18 2016 us=36584 mute_replay_warnings = DISABLED
Tue Apr 26 13:49:18 2016 us=36592 replay_window = 64
Tue Apr 26 13:49:18 2016 us=36600 replay_time = 15
Tue Apr 26 13:49:18 2016 us=36607 packet_id_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36615 use_iv = ENABLED
Tue Apr 26 13:49:18 2016 us=36623 test_crypto = DISABLED
Tue Apr 26 13:49:18 2016 us=36630 tls_server = DISABLED
Tue Apr 26 13:49:18 2016 us=36637 tls_client = ENABLED
Tue Apr 26 13:49:18 2016 us=36645 key_method = 2
Tue Apr 26 13:49:18 2016 us=36653 ca_file = '[[INLINE]]'
Tue Apr 26 13:49:18 2016 us=36660 ca_path = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36667 dh_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36675 cert_file = '[[INLINE]]'
Tue Apr 26 13:49:18 2016 us=36682 extra_certs_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36690 priv_key_file = '[[INLINE]]'
Tue Apr 26 13:49:18 2016 us=36698 pkcs12_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36706 cipher_list = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36713 tls_verify = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36720 tls_export_cert = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36728 verify_x509_type = 0
Tue Apr 26 13:49:18 2016 us=36735 verify_x509_name = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36743 crl_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36750 ns_cert_type = 0
Tue Apr 26 13:49:18 2016 us=36758 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36765 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36773 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36780 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36787 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36794 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36801 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36808 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36815 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36823 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36830 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36837 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36844 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36852 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36859 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36866 remote_cert_ku[i] = 0
Tue Apr 26 13:49:18 2016 us=36873 remote_cert_eku = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36881 ssl_flags = 0
Tue Apr 26 13:49:18 2016 us=36888 tls_timeout = 2
Tue Apr 26 13:49:18 2016 us=36896 renegotiate_bytes = 0
Tue Apr 26 13:49:18 2016 us=36903 renegotiate_packets = 0
Tue Apr 26 13:49:18 2016 us=36911 renegotiate_seconds = 0
Tue Apr 26 13:49:18 2016 us=36918 handshake_window = 60
Tue Apr 26 13:49:18 2016 us=36926 transition_window = 3600
Tue Apr 26 13:49:18 2016 us=36933 single_session = DISABLED
Tue Apr 26 13:49:18 2016 us=36941 push_peer_info = DISABLED
Tue Apr 26 13:49:18 2016 us=36949 tls_exit = DISABLED
Tue Apr 26 13:49:18 2016 us=36957 tls_auth_file = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=36965 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=36973 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=36981 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=36989 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=36997 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37005 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37012 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37020 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37028 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37035 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37043 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37051 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37059 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37067 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37074 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37082 pkcs11_protected_authentication = DISABLED
Tue Apr 26 13:49:18 2016 us=37090 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37098 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37106 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37113 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37121 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37128 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37136 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37143 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37151 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37158 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37165 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37173 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37180 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37188 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37196 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37203 pkcs11_private_mode = 00000000
Tue Apr 26 13:49:18 2016 us=37210 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37218 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37225 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37232 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37239 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37247 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37254 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37261 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37269 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37276 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37283 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37290 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37298 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37305 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37312 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37320 pkcs11_cert_private = DISABLED
Tue Apr 26 13:49:18 2016 us=37327 pkcs11_pin_cache_period = -1
Tue Apr 26 13:49:18 2016 us=37335 pkcs11_id = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37342 pkcs11_id_management = DISABLED
Tue Apr 26 13:49:18 2016 us=37352 server_network = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37360 server_netmask = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37374 server_network_ipv6 = ::
Tue Apr 26 13:49:18 2016 us=37383 server_netbits_ipv6 = 0
Tue Apr 26 13:49:18 2016 us=37391 server_bridge_ip = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37400 server_bridge_netmask = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37408 server_bridge_pool_start = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37417 server_bridge_pool_end = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37425 ifconfig_pool_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=37433 ifconfig_pool_start = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37441 ifconfig_pool_end = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37450 ifconfig_pool_netmask = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37457 ifconfig_pool_persist_filename = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37465 ifconfig_pool_persist_refresh_freq = 600
Tue Apr 26 13:49:18 2016 us=37474 ifconfig_ipv6_pool_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=37482 ifconfig_ipv6_pool_base = ::
Tue Apr 26 13:49:18 2016 us=37489 ifconfig_ipv6_pool_netbits = 0
Tue Apr 26 13:49:18 2016 us=37497 n_bcast_buf = 256
Tue Apr 26 13:49:18 2016 us=37504 tcp_queue_limit = 64
Tue Apr 26 13:49:18 2016 us=37512 real_hash_size = 256
Tue Apr 26 13:49:18 2016 us=37519 virtual_hash_size = 256
Tue Apr 26 13:49:18 2016 us=37527 client_connect_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37535 learn_address_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37543 client_disconnect_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37550 client_config_dir = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37558 ccd_exclusive = DISABLED
Tue Apr 26 13:49:18 2016 us=37565 tmp_dir = '/tmp'
Tue Apr 26 13:49:18 2016 us=37573 push_ifconfig_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=37582 push_ifconfig_local = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37590 push_ifconfig_remote_netmask = 0.0.0.0
Tue Apr 26 13:49:18 2016 us=37598 push_ifconfig_ipv6_defined = DISABLED
Tue Apr 26 13:49:18 2016 us=37606 push_ifconfig_ipv6_local = ::/0
Tue Apr 26 13:49:18 2016 us=37615 push_ifconfig_ipv6_remote = ::
Tue Apr 26 13:49:18 2016 us=37622 enable_c2c = DISABLED
Tue Apr 26 13:49:18 2016 us=37630 duplicate_cn = DISABLED
Tue Apr 26 13:49:18 2016 us=37637 cf_max = 0
Tue Apr 26 13:49:18 2016 us=37645 cf_per = 0
Tue Apr 26 13:49:18 2016 us=37652 max_clients = 1024
Tue Apr 26 13:49:18 2016 us=37660 max_routes_per_client = 256
Tue Apr 26 13:49:18 2016 us=37667 auth_user_pass_verify_script = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37675 auth_user_pass_verify_script_via_file = DISABLED
Tue Apr 26 13:49:18 2016 us=37683 port_share_host = '[UNDEF]'
Tue Apr 26 13:49:18 2016 us=37690 port_share_port = 0
Tue Apr 26 13:49:18 2016 us=37698 client = ENABLED
Tue Apr 26 13:49:18 2016 us=37706 pull = ENABLED
Tue Apr 26 13:49:18 2016 us=37713 auth_user_pass_file = 'stdin'
Tue Apr 26 13:49:18 2016 us=37722 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016
Tue Apr 26 13:49:18 2016 us=37734 library versions: OpenSSL 1.0.2g-fips 1 Mar 2016, LZO 2.08
Enter Auth Username: ****
Enter Auth Password: ****
Tue Apr 26 13:49:21 2016 us=594959 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Apr 26 13:49:21 2016 us=595628 LZO compression initialized
Tue Apr 26 13:49:21 2016 us=595651 WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1400)
Tue Apr 26 13:49:21 2016 us=595731 Control Channel MTU parms [ L:1444 D:1210 EF:40 EB:0 ET:0 EL:3 ]
Tue Apr 26 13:49:21 2016 us=595786 Socket Buffers: R=[87380->87380] S=[16384->16384]
Tue Apr 26 13:49:21 2016 us=595816 Data Channel MTU parms [ L:1444 D:1444 EF:44 EB:143 ET:0 EL:3 AF:3/1 ]
Tue Apr 26 13:49:21 2016 us=595873 Local Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Apr 26 13:49:21 2016 us=595890 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Apr 26 13:49:21 2016 us=595918 Local Options hash (VER=V4): '7dfc3732'
Tue Apr 26 13:49:21 2016 us=595941 Expected Remote Options hash (VER=V4): '347277f0'
Tue Apr 26 13:49:21 2016 us=595967 Attempting to establish TCP connection with [AF_INET]x.x.x.x:443 [nonblock]
Tue Apr 26 13:49:22 2016 us=596114 TCP connection established with [AF_INET]x.x.x.x:443
Tue Apr 26 13:49:22 2016 us=596157 TCPv4_CLIENT link local: [undef]
Tue Apr 26 13:49:22 2016 us=596170 TCPv4_CLIENT link remote: [AF_INET]x.x.x.x:443
Tue Apr 26 13:49:22 2016 us=596215 TCPv4_CLIENT WRITE [14] to [AF_INET]x.x.x.x:443: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Tue Apr 26 13:49:22 2016 us=658370 TCPv4_CLIENT READ [26] from [AF_INET]x.x.x.x:443: P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
Tue Apr 26 13:49:22 2016 us=658415 TLS: Initial packet from [AF_INET]x.x.x.x:443, sid=eeb2e948 0fbbddfe
Tue Apr 26 13:49:22 2016 us=658515 TCPv4_CLIENT WRITE [22] to [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 0 ]
Tue Apr 26 13:49:22 2016 us=658572 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Apr 26 13:49:22 2016 us=658611 TCPv4_CLIENT WRITE [315] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=301
Tue Apr 26 13:49:22 2016 us=846741 TCPv4_CLIENT READ [1196] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ 1 ] pid=1 DATA len=1170
Tue Apr 26 13:49:22 2016 us=846994 TCPv4_CLIENT WRITE [22] to [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 1 ]
Tue Apr 26 13:49:22 2016 us=848493 TCPv4_CLIENT READ [1184] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=2 DATA len=1170
Tue Apr 26 13:49:22 2016 us=848633 TCPv4_CLIENT WRITE [22] to [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 2 ]
Tue Apr 26 13:49:22 2016 us=909415 TCPv4_CLIENT READ [1184] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=3 DATA len=1170
Tue Apr 26 13:49:22 2016 us=910488 VERIFY OK: depth=1, C=HK, ST=HK, L=Heg, O=ITs, OU=myou, CN=ITs CA, name=EasyRSA, emailAddress=no@no.net
Tue Apr 26 13:49:22 2016 us=910939 VERIFY OK: depth=0, C=HK, ST=HK, L=Heg, O=ITs, OU=myou, CN=server1, name=EasyRSA, emailAddress=no@no.net
Tue Apr 26 13:49:22 2016 us=911079 TCPv4_CLIENT WRITE [22] to [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 3 ]
Tue Apr 26 13:49:22 2016 us=911201 TCPv4_CLIENT READ [322] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=4 DATA len=308
Tue Apr 26 13:49:22 2016 us=938624 TCPv4_CLIENT WRITE [1196] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ 4 ] pid=2 DATA len=1170
Tue Apr 26 13:49:22 2016 us=938709 TCPv4_CLIENT WRITE [1184] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=3 DATA len=1170
Tue Apr 26 13:49:22 2016 us=938801 TCPv4_CLIENT WRITE [959] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=4 DATA len=945
Tue Apr 26 13:49:23 2016 us=18992 TCPv4_CLIENT READ [22] from [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 2 ]
Tue Apr 26 13:49:23 2016 us=115788 TCPv4_CLIENT READ [22] from [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 3 ]
Tue Apr 26 13:49:23 2016 us=115967 TCPv4_CLIENT READ [77] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ 4 ] pid=5 DATA len=51
Tue Apr 26 13:49:23 2016 us=116186 TCPv4_CLIENT WRITE [361] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ 5 ] pid=5 DATA len=335
Tue Apr 26 13:49:24 2016 us=184675 TCPv4_CLIENT READ [263] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ 5 ] pid=6 DATA len=237
Tue Apr 26 13:49:24 2016 us=185057 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Apr 26 13:49:24 2016 us=185095 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Apr 26 13:49:24 2016 us=185212 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Apr 26 13:49:24 2016 us=185239 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Apr 26 13:49:24 2016 us=185291 TCPv4_CLIENT WRITE [22] to [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 6 ]
Tue Apr 26 13:49:24 2016 us=185365 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Tue Apr 26 13:49:24 2016 us=185398 [server1] Peer Connection Initiated with [AF_INET]x.x.x.x:443
Tue Apr 26 13:49:26 2016 us=559922 SENT CONTROL [server1]: 'PUSH_REQUEST' (status=1)
Tue Apr 26 13:49:26 2016 us=560047 TCPv4_CLIENT WRITE [56] to [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=6 DATA len=42
Tue Apr 26 13:49:26 2016 us=621539 TCPv4_CLIENT READ [22] from [AF_INET]x.x.x.x:443: P_ACK_V1 kid=0 [ 6 ]
Tue Apr 26 13:49:26 2016 us=720010 TCPv4_CLIENT READ [55] from [AF_INET]x.x.x.x:443: P_CONTROL_V1 kid=0 [ ] pid=7 DATA len=41
Tue Apr 26 13:49:26 2016 us=720129 AUTH: Received control message: AUTH_FAILED
Tue Apr 26 13:49:26 2016 us=720404 TCP/UDP: Closing socket
Tue Apr 26 13:49:26 2016 us=720506 SIGTERM[soft,auth-failure] received, process exiting
on the openvpn server:
Tue Apr 26 13:45:23 2016 us=82799 MULTI: multi_create_instance called
Tue Apr 26 13:45:23 2016 us=82865 Re-using SSL/TLS context
Tue Apr 26 13:45:23 2016 us=82891 LZO compression initialized
Tue Apr 26 13:45:23 2016 us=82910 WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1400)
Tue Apr 26 13:45:23 2016 us=82978 Control Channel MTU parms [ L:1444 D:1210 EF:40 EB:0 ET:0 EL:3 ]
Tue Apr 26 13:45:23 2016 us=83002 Data Channel MTU parms [ L:1444 D:1444 EF:44 EB:143 ET:0 EL:3 AF:3/1 ]
Tue Apr 26 13:45:23 2016 us=83032 Local Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Apr 26 13:45:23 2016 us=83045 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Apr 26 13:45:23 2016 us=83067 Local Options hash (VER=V4): '347277f0'
Tue Apr 26 13:45:23 2016 us=83087 Expected Remote Options hash (VER=V4): '7dfc3732'
Tue Apr 26 13:45:23 2016 us=83111 TCP connection established with [AF_INET]176.126.252.12:51040
Tue Apr 26 13:45:23 2016 us=83127 TCPv4_SERVER link local: [undef]
Tue Apr 26 13:45:23 2016 us=83142 TCPv4_SERVER link remote: [AF_INET]176.126.252.12:51040
Tue Apr 26 13:45:25 2016 us=807118 176.126.252.12:51040 Connection reset, restarting [0]
Tue Apr 26 13:45:25 2016 us=807150 176.126.252.12:51040 SIGUSR1[soft,connection-reset] received, client-instance restarting
Tue Apr 26 13:45:25 2016 us=807220 TCP/UDP: Closing socket
Tue Apr 26 13:49:21 2016 us=678712 MULTI: multi_create_instance called
Tue Apr 26 13:49:21 2016 us=678779 Re-using SSL/TLS context
Tue Apr 26 13:49:21 2016 us=678806 LZO compression initialized
Tue Apr 26 13:49:21 2016 us=678824 WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1400)
Tue Apr 26 13:49:21 2016 us=678896 Control Channel MTU parms [ L:1444 D:1210 EF:40 EB:0 ET:0 EL:3 ]
Tue Apr 26 13:49:21 2016 us=678920 Data Channel MTU parms [ L:1444 D:1444 EF:44 EB:143 ET:0 EL:3 AF:3/1 ]
Tue Apr 26 13:49:21 2016 us=678950 Local Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Apr 26 13:49:21 2016 us=678963 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1444,tun-mtu 1400,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Apr 26 13:49:21 2016 us=678986 Local Options hash (VER=V4): '347277f0'
Tue Apr 26 13:49:21 2016 us=679006 Expected Remote Options hash (VER=V4): '7dfc3732'
Tue Apr 26 13:49:21 2016 us=679031 TCP connection established with [AF_INET]z.z.z.z:57580
Tue Apr 26 13:49:21 2016 us=679047 TCPv4_SERVER link local: [undef]
Tue Apr 26 13:49:21 2016 us=679062 TCPv4_SERVER link remote: [AF_INET]z.z.z.z:57580
Tue Apr 26 13:49:22 2016 us=616768 z.z.z.z:57580 TCPv4_SERVER READ [14] from [AF_INET]z.z.z.z:57580: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Tue Apr 26 13:49:22 2016 us=616808 z.z.z.z:57580 TLS: Initial packet from [AF_INET]z.z.z.z:57580, sid=5f675680 b725a4be
Tue Apr 26 13:49:22 2016 us=616863 z.z.z.z:57580 TCPv4_SERVER WRITE [26] to [AF_INET]z.z.z.z:57580: P_CONTROL_HARD_RESET_SERVER_V2 kid=0 [ 0 ] pid=0 DATA len=0
Tue Apr 26 13:49:22 2016 us=678723 z.z.z.z:57580 TCPv4_SERVER READ [22] from [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 0 ]
Tue Apr 26 13:49:22 2016 us=781726 z.z.z.z:57580 TCPv4_SERVER READ [315] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=1 DATA len=301
Tue Apr 26 13:49:22 2016 us=804071 z.z.z.z:57580 TCPv4_SERVER WRITE [1196] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ 1 ] pid=1 DATA len=1170
Tue Apr 26 13:49:22 2016 us=804106 z.z.z.z:57580 TCPv4_SERVER WRITE [1184] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=2 DATA len=1170
Tue Apr 26 13:49:22 2016 us=804128 z.z.z.z:57580 TCPv4_SERVER WRITE [1184] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=3 DATA len=1170
Tue Apr 26 13:49:22 2016 us=804153 z.z.z.z:57580 TCPv4_SERVER WRITE [322] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=4 DATA len=308
Tue Apr 26 13:49:22 2016 us=866710 z.z.z.z:57580 TCPv4_SERVER READ [22] from [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 1 ]
Tue Apr 26 13:49:22 2016 us=929277 z.z.z.z:57580 TCPv4_SERVER READ [22] from [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 2 ]
Tue Apr 26 13:49:22 2016 us=971991 z.z.z.z:57580 TCPv4_SERVER READ [22] from [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 3 ]
Tue Apr 26 13:49:22 2016 us=972054 z.z.z.z:57580 TCPv4_SERVER READ [1196] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ 4 ] pid=2 DATA len=1170
Tue Apr 26 13:49:22 2016 us=972107 z.z.z.z:57580 TCPv4_SERVER WRITE [22] to [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 2 ]
Tue Apr 26 13:49:22 2016 us=985537 z.z.z.z:57580 TCPv4_SERVER READ [1184] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=3 DATA len=1170
Tue Apr 26 13:49:22 2016 us=985602 z.z.z.z:57580 TCPv4_SERVER WRITE [22] to [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 3 ]
Tue Apr 26 13:49:23 2016 us=32629 z.z.z.z:57580 TCPv4_SERVER READ [959] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=4 DATA len=945
Tue Apr 26 13:49:23 2016 us=33216 z.z.z.z:57580 VERIFY OK: depth=1, C=HK, ST=HK, L=Hong Kong, O=IT Privacy limited, OU=secretvpn, CN=IT Privacy limited CA, name=EasyRSA, emailAddress=support@secretvpn.net
Tue Apr 26 13:49:23 2016 us=33538 z.z.z.z:57580 VERIFY OK: depth=0, C=HK, ST=HK, L=Hong Kong, O=IT Privacy limited, OU=secretvpn, CN=igor, name=EasyRSA, emailAddress=support@secretvpn.net
Tue Apr 26 13:49:23 2016 us=46947 z.z.z.z:57580 TCPv4_SERVER WRITE [77] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ 4 ] pid=5 DATA len=51
Tue Apr 26 13:49:23 2016 us=141270 z.z.z.z:57580 TCPv4_SERVER READ [361] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ 5 ] pid=5 DATA len=335
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: FOREGROUND: OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY is called.
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: FOREGROUND: Key: z.z.z.z:57580.
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: FOREGROUND THREAD: New user from OpenVPN!
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: FOREGROUND THREAD: New user.
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: FOREGROUND THREAD: New user: username: igor, password: *****, newuser ip: z.z.z.z, newuser port: 57580 .
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: BACKGROUND AUTH: New user auth: username: igor, password: *****, calling station: z.z.z.z, commonname: igor.
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: radius_server().
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: Build password packet: password: *****, sharedSecret: *****.
Tue Apr 26 13:49:23 2016 RADIUS-PLUGIN: Send packet to y.y.y.y.
Tue Apr 26 13:49:24 2016 RADIUS-PLUGIN: Got no response from radius server.
Tue Apr 26 13:49:24 2016 Error: RADIUS-PLUGIN: BACKGROUND AUTH: Auth failed!.
Tue Apr 26 13:49:24 2016 RADIUS-PLUGIN: FOREGROUND THREAD: Error receiving auth confirmation from background process.
Tue Apr 26 13:49:24 2016 RADIUS-PLUGIN: FOREGROUND THREAD: Waiting for new user.
Tue Apr 26 13:49:24 2016 us=143347 z.z.z.z:57580 PLUGIN_CALL: POST /etc/openvpn/radiusplugin.so/PLUGIN_AUTH_USER_PASS_VERIFY status=1
Tue Apr 26 13:49:24 2016 us=143377 z.z.z.z:57580 PLUGIN_CALL: plugin function PLUGIN_AUTH_USER_PASS_VERIFY failed with status 1: /etc/openvpn/radiusplugin.so
Tue Apr 26 13:49:24 2016 us=143426 z.z.z.z:57580 TLS Auth Error: Auth Username/Password verification failed for peer
Tue Apr 26 13:49:24 2016 us=143497 z.z.z.z:57580 TCPv4_SERVER WRITE [263] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ 5 ] pid=6 DATA len=237
Tue Apr 26 13:49:24 2016 us=205051 z.z.z.z:57580 TCPv4_SERVER READ [22] from [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 6 ]
Tue Apr 26 13:49:24 2016 us=205093 z.z.z.z:57580 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Tue Apr 26 13:49:24 2016 us=205136 z.z.z.z:57580 [igor] Peer Connection Initiated with [AF_INET]z.z.z.z:57580
Tue Apr 26 13:49:26 2016 us=580345 z.z.z.z:57580 TCPv4_SERVER READ [56] from [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=6 DATA len=42
Tue Apr 26 13:49:26 2016 us=580403 z.z.z.z:57580 PUSH: Received control message: 'PUSH_REQUEST'
Tue Apr 26 13:49:26 2016 us=580427 z.z.z.z:57580 Delayed exit in 5 seconds
Tue Apr 26 13:49:26 2016 us=580453 z.z.z.z:57580 SENT CONTROL [igor]: 'AUTH_FAILED' (status=1)
Tue Apr 26 13:49:26 2016 us=580479 z.z.z.z:57580 TCPv4_SERVER WRITE [22] to [AF_INET]z.z.z.z:57580: P_ACK_V1 kid=0 [ 6 ]
Tue Apr 26 13:49:26 2016 us=580519 z.z.z.z:57580 TCPv4_SERVER WRITE [55] to [AF_INET]z.z.z.z:57580: P_CONTROL_V1 kid=0 [ ] pid=7 DATA len=41
Tue Apr 26 13:49:26 2016 us=740172 :57580 Connection reset, restarting [0]
Tue Apr 26 13:49:26 2016 us=740209 z.z.z.z:57580 SIGUSR1[soft,connection-reset] received, client-instance restarting
Tue Apr 26 13:49:26 2016 us=740327 TCP/UDP: Closing socket
x.x.x.x - my openvpn server
y.y.y.y -my freeradius server
z.z.z.z - my client's ip
i do not understand, why these configs working when freeradius and openvpn have x.x.x.A and x.x.x.B addresses but not working when openvpn has x.x.x.x address and freeradius has y.y.y.y address.
sorry for my english.
thanks.