I setup openvpn on CentOs for our office. I'm using it without any problem, can ping all PCs and servers, network printers.

Recently I installed Elastix Phone System to our office, it's in the same IP range and I can ping Elastix server and open it's web interface within office network but not through openvpn.

It's strange that I can still ping all PCs, servers, printers even the network phones that are connected to Elastix but can't ping Elastix itself through openvpn

I checked the firewall on Elastix, it's all turned off. I even tried to turn it on and allow openvpn port but still no luck.

Does anyone happen to have same or similar issue or can guess what might be the problem?


Edit: Here is the route table.     *      U         0 0          0 eth2   *        U         0 0          0 eth0
default         UG        0 0          0 eth2
  • If you do a traceroute, where does the failure happen? From the Elastix box can you do a traceroute to an OpenVPN client? – Zoredache Oct 13 '11 at 18:10
  • Ok I did that, elastix has eth2 is for sip trunk, and eth0 is connected to local network. Even though dns and gateway is correct on eth0, tracert tries to exit from eth2 and cannot reach internet, and cannot ping google or other IPs, but local works. It tries to exit using eth2, not eth0, why? – Ergec Oct 13 '11 at 18:49
  • I would probably guess that you have tried to assign multiple gateways, or you have bad routes setup on that machine. Can you show us the route table? – Zoredache Oct 13 '11 at 18:50
  • Ok I put route table into the question – Ergec Oct 13 '11 at 19:02

The route table on your Elastix is probably wrong. If packets from the OpenVPN network are coming via eth0, and your OpenVPN is using a routed setup, then the OpenVPN clients are not on your /24 subnet.

The answer might be as simple as adding a route on your Elastix box for the subnet used by the OpenVPN server.

To temporarily add a route use a command like /bin/ip route add via as in /bin/ip route add network/bits via gateway. If don't have any other routers, then use your OpenVPN box as the gateway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.