Hello evreyone
i had install OpenVpn on VPS (CentOs) , VPS install on OpenVZ
i had solve the issue to sent suppourts to enable tun0
after the when i want connect from my client i had problem
from my server
output :
Code:
[root@vpn ~]# tail /var/log/messages
Oct 9 14:07:55 vpn openvpn[7363]: UID set to nobody
Oct 9 14:07:55 vpn openvpn[7363]: UDPv4 link local (bound): [undef]
Oct 9 14:07:55 vpn openvpn[7363]: UDPv4 link remote: [undef]
Oct 9 14:07:55 vpn openvpn[7363]: MULTI: multi_init called, r=256 v=256
Oct 9 14:07:55 vpn openvpn[7363]: IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Oct 9 14:07:55 vpn openvpn[7363]: ifconfig_pool_read(), in='user1,10.8.0.4', TODO: IPv6
Oct 9 14:07:55 vpn openvpn[7363]: succeeded -> ifconfig_pool_set()
Oct 9 14:07:55 vpn openvpn[7363]: IFCONFIG POOL LIST
Oct 9 14:07:55 vpn openvpn[7363]: user1,10.8.0.4
Oct 9 14:07:55 vpn openvpn[7363]: Initialization Sequence Completed
openvpn started
output
Code:
[root@vpn openvpn]# openvpn server.conf
Wed Oct 9 14:11:18 2013 OpenVPN 2.3.2 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jun 3 2013
Wed Oct 9 14:11:18 2013 Diffie-Hellman initialized with 1024 bit key
Wed Oct 9 14:11:18 2013 Socket Buffers: R=[245760->131072] S=[245760->131072]
Wed Oct 9 14:11:18 2013 TCP/UDP: Socket bind failed on local address [undef]: Address already in use
Wed Oct 9 14:11:18 2013 Exiting due to fatal error
then cannot connect from my client ,
but when disable openvpn , it's works and client connect but can't browsing !
output after disable :
Code:
[root@vpn openvpn]# openvpn server.conf
Wed Oct 9 14:15:26 2013 OpenVPN 2.3.2 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jun 3 2013
Wed Oct 9 14:15:26 2013 Diffie-Hellman initialized with 1024 bit key
Wed Oct 9 14:15:26 2013 Socket Buffers: R=[245760->131072] S=[245760->131072]
Wed Oct 9 14:15:26 2013 ROUTE_GATEWAY ON_LINK IFACE=venet0 HWADDR=00:00:00:00:00:00
Wed Oct 9 14:15:26 2013 TUN/TAP device tun0 opened
Wed Oct 9 14:15:26 2013 TUN/TAP TX queue length set to 100
Wed Oct 9 14:15:26 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Oct 9 14:15:26 2013 /sbin/ip link set dev tun0 up mtu 1500
Wed Oct 9 14:15:26 2013 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Wed Oct 9 14:15:26 2013 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Wed Oct 9 14:15:26 2013 GID set to nobody
Wed Oct 9 14:15:26 2013 UID set to nobody
Wed Oct 9 14:15:26 2013 UDPv4 link local (bound): [undef]
Wed Oct 9 14:15:26 2013 UDPv4 link remote: [undef]
Wed Oct 9 14:15:26 2013 MULTI: multi_init called, r=256 v=256
Wed Oct 9 14:15:26 2013 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Wed Oct 9 14:15:26 2013 ifconfig_pool_read(), in='user1,10.8.0.4', TODO: IPv6
Wed Oct 9 14:15:26 2013 succeeded -> ifconfig_pool_set()
Wed Oct 9 14:15:26 2013 IFCONFIG POOL LIST
Wed Oct 9 14:15:26 2013 user1,10.8.0.4
Wed Oct 9 14:15:26 2013 Initialization Sequence Completed
output routes
[CODE]
[root@vpn openvpn]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
link-local * 255.255.0.0 U 1002 0 0 venet0
default * 0.0.0.0 U 0 0 0 venet0
[CODE]
and client works , i don't know what is the problem !
should stop openvpn or enable i don't use or set iptables rules
or maybe routing !
./Regard