I have a server in my office that connected to my ADSL router, And I using this modem to my internet connection My Server is HP DL380 With CentOs 7 + Directadmin The modem is D-link DSL-2750U When I loading my DirectAdmin websites, I redirected to the modem what's wrong with this and why this has happened? All Sites are good in the internet and no problem I can see my websites only when I using a VPN Thank you, guys!
I understand you are trying to connect to a server located on your network. Since this works with a VPN this would almost certainly be a routing problem.
A few 'traceroutes' from your CentOS server to your wifi device would tell you where the traffic is failing. Here are some common issues that cause your routing problem.
1) CentOs server contains a subnet that overlaps the wifi network or vice versa. This doesn't work since the CentOS server believes the device on the wifi is on the same subnet when it isn't.
2) Cent OS server contains a default route other than to the D-link router (unlikely)
If you can't ping the CentOs server from your wifi device and these are not the issues please provide a network diagram that includes IP addresses and subnets or the wifi network, Server network, and VPN network.