Hi,
i have installed openvpn on centos-7. when i connect it form my PC, i am unable to ping to vpn server nor able to browse internet site.
here is the output of ipconfig on Windows machine
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Windows Adapter V9
Physical Address. . . . . . . . . : 00-FF-7C-5C-05-D8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::d8f1:8e4e:fb77:bb39%11(Preferred)
IPv4 Address. . . . . . . . . . . : 10.8.0.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, December 15, 2016 9:39:44 PM
Lease Expires . . . . . . . . . . : Friday, December 15, 2017 9:39:44 PM
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 10.8.0.5
DHCPv6 IAID . . . . . . . . . . . : 184614780
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-57-8F-25-B8-6B-23-31-E3-84
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Enabled
C:\Users\LT1>ping 10.8.0.5
Pinging 10.8.0.5 with 32 bytes of data:
Request timed out.
Request timed out.
Ping statistics for 10.8.0.5:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
C:\Users\LT1>ping 10.8.0.5
[root]# cat /proc/sys/net/ipv4/ip_forward
1
[root@connect ~]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.8.0.0/24 anywhere
Server.conf
server 10.8.0.0 255.255.255.0
thanks