OPENVPN TRAFFIC ISSUE : CAN ACCESS TRAAFIC THROUGH WINDOWS CLIENT NOT IN LINUX
-
Server configuration file
–-----------------------------
dev ovpns1
dev-type tun
dev-node /dev/tun1
writepid /var/run/openvpn_server1.pid
#user nobody
#group nobody
script-security 3
daemon
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
proto udp
cipher BF-CBC
up /usr/local/sbin/ovpn-linkup
down /usr/local/sbin/ovpn-linkdown
local x.x.x.x
tls-server
server 192.168.0.0 255.255.0.0
client-config-dir /var/etc/openvpn-csc
username-as-common-name
auth-user-pass-verify /var/etc/openvpn/server1.php via-env
tls-verify /var/etc/openvpn/server1.tls-verify.php
lport 34447
management /var/etc/openvpn/server1.sock unix
max-clients 10
push "route 10.1.0.0 255.255.0.0"
push "dhcp-option DNS 10.1.254.254"
push "dhcp-option DNS 8.8.8.8"
push "redirect-gateway def1"
client-to-client
ca /var/etc/openvpn/server1.ca
cert /var/etc/openvpn/server1.cert
key /var/etc/openvpn/server1.key
dh /etc/dh-parameters.1024
tls-auth /var/etc/openvpn/server1.tls-auth 0
comp-lzo
persist-remote-ip
floatWindows client Log
–-----------------------Fri Mar 01 00:45:55 2013 WARNING: Make sure you understand the semantics of --tls-remote before using it (see the man page).
Fri Mar 01 00:45:55 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Mar 01 00:45:56 2013 Control Channel Authentication: using 'gateway-udp-34447-vpnuser-tls.key' as a OpenVPN static key file
Fri Mar 01 00:45:56 2013 LZO compression initialized
Fri Mar 01 00:45:56 2013 UDPv4 link local (bound): [undef]:1194
Fri Mar 01 00:45:56 2013 UDPv4 link remote: x.x.x.x:34447
Fri Mar 01 00:45:56 2013 WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
Fri Mar 01 00:45:59 2013 [vpnuser] Peer Connection Initiated with x.x.x.x:34447
Fri Mar 01 00:46:02 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Mar 01 00:46:02 2013 open_tun, tt->ipv6=0
Fri Mar 01 00:46:02 2013 TAP-WIN32 device [Local Area Connection 2] opened: \.\Global{95612D45-D249-4BF9-B70B-4A5B4481F38A}.tap
Fri Mar 01 00:46:02 2013 Notified TAP-Win32 driver to set a DHCP IP/netmask of 192.168.0.6/255.255.255.252 on interface {95612D45-D249-4BF9-B70B-4A5B4481F38A} [DHCP-serv: 192.168.0.5, lease-time: 31536000]
Fri Mar 01 00:46:02 2013 Successful ARP Flush on interface [29] {95612D45-D249-4BF9-B70B-4A5B4481F38A}
Fri Mar 01 00:46:07 2013 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [status=160 if_index=29]
Fri Mar 01 00:46:07 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
OK!
Fri Mar 01 00:46:07 2013 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [status=160 if_index=29]
Fri Mar 01 00:46:07 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
OK!
Fri Mar 01 00:46:07 2013 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [status=160 if_index=29]
Fri Mar 01 00:46:07 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
OK!
Fri Mar 01 00:46:07 2013 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [status=160 if_index=29]
Fri Mar 01 00:46:07 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
OK!
Fri Mar 01 00:46:07 2013 Initialization Sequence CompletedUbuntu Client Log
–---------------------
[00:40:02 IST] Sreeraju : Fri Mar 1 00:39:00 2013 WARNING: Make sure you understand the semantics of –tls-remote before using it (see the man page).
Fri Mar 1 00:39:00 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Mar 1 00:39:00 2013 WARNING: file 'gateway-udp-34447-vpnuser.p12' is group or others accessible
Fri Mar 1 00:39:00 2013 WARNING: file 'gateway-udp-34447-vpnuser-tls.key' is group or others accessible
Fri Mar 1 00:39:00 2013 Control Channel Authentication: using 'gateway-udp-34447-vpnuser-tls.key' as a OpenVPN static key file
Fri Mar 1 00:39:00 2013 LZO compression initialized
Fri Mar 1 00:39:00 2013 UDPv4 link local (bound): [undef]
Fri Mar 1 00:39:00 2013 UDPv4 link remote: [AF_INET]x.x.x.x:34447
Fri Mar 1 00:39:01 2013 WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
Fri Mar 1 00:39:04 2013 [vpnuser] Peer Connection Initiated with [AF_INET]x.x.x.x:34447
Fri Mar 1 00:39:07 2013 TUN/TAP device tun0 opened
Fri Mar 1 00:39:07 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Mar 1 00:39:07 2013 /sbin/ifconfig tun0 192.168.0.6 pointopoint 192.168.0.5 mtu 1500
Fri Mar 1 00:39:07 2013 NOTE: unable to redirect default gateway – Cannot read current default gateway from system
Fri Mar 1 00:39:07 2013 Initialization Sequence CompletedI can access all Lan system through both windows and Ubuntu client system . Issue is i don't get any traffic through Ubuntu system but i get traffic in windows client system and also the public ip.CAn any one help me i am stucked in it
-
While connecting through ubuntu client system following error occured
NOTE: unable to redirect default gateway – Cannot read current default gateway from system
Is it causing the issue.Can any one help me.........