OpenVPN client connection and CPanel
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Thu Feb 11, 2021 8:47 am
OpenVPN client connection and CPanel
Hello Community,
I`m new here, its my first post(usually I can find all the instructions for almost anything by googling, but this one was no success). So here is my situation.
I have couple of dedicate/vps servers in a project, where I want to use VPN network in order for them to communicate between each other via 10.8.0.0 IPs.
I used a simple configuration of OpenVPN server installation and was able to accomplish for them to communicate with each other via 10.8.0.0 IPs.
One of the dedicated servers is going to be a website, running CentOS 7 and CPanel installed. When trying to activate a license of CP, the public IP of the VPN server is recognized instead of the public IP of the Web Server. How can I solve this?
How to make all the OpenVPN clients to use VPN network only for communication between each other, without the use of the VPN server's IP address?
Looking forward to a response.
I`m new here, its my first post(usually I can find all the instructions for almost anything by googling, but this one was no success). So here is my situation.
I have couple of dedicate/vps servers in a project, where I want to use VPN network in order for them to communicate between each other via 10.8.0.0 IPs.
I used a simple configuration of OpenVPN server installation and was able to accomplish for them to communicate with each other via 10.8.0.0 IPs.
One of the dedicated servers is going to be a website, running CentOS 7 and CPanel installed. When trying to activate a license of CP, the public IP of the VPN server is recognized instead of the public IP of the Web Server. How can I solve this?
How to make all the OpenVPN clients to use VPN network only for communication between each other, without the use of the VPN server's IP address?
Looking forward to a response.
-
- OpenVPN Expert
- Posts: 685
- Joined: Tue May 01, 2012 9:30 pm
Re: OpenVPN client connection and CPanel
route 0.0.0.0 192.0.0.0 net_gateway
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway
Adding this into your client that is all you need
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway
Adding this into your client that is all you need
Last edited by 300000 on Thu Feb 11, 2021 10:59 am, edited 1 time in total.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN client connection and CPanel
The above is a stupid idea .. instead you need to understand --redirect-gateway
-
- OpenVPN Expert
- Posts: 685
- Joined: Tue May 01, 2012 9:30 pm
Re: OpenVPN client connection and CPanel
What if he one profile for over vpn and one profile not over vpn .how can you do that with .
"The above is a stupid idea .. instead you need to understand --redirect-gateway*
Here is one question you need to answer if you said that is not good and how do you do on this one.?
--redirect-gateway can't do in this situation ok
"Colleagues using Mac and Windows clients can, at least, select whether all not to send "All Traffic" over the VPN connection (and the more sophisticated can set up multiple configurations on their client, to send all traffic, just the 'internal' traffic, or the internal plus traffic to selected other destinations."
"The above is a stupid idea .. instead you need to understand --redirect-gateway*
Here is one question you need to answer if you said that is not good and how do you do on this one.?
--redirect-gateway can't do in this situation ok
"Colleagues using Mac and Windows clients can, at least, select whether all not to send "All Traffic" over the VPN connection (and the more sophisticated can set up multiple configurations on their client, to send all traffic, just the 'internal' traffic, or the internal plus traffic to selected other destinations."
Last edited by 300000 on Thu Feb 11, 2021 10:35 am, edited 1 time in total.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN client connection and CPanel
When you learn to use google translate then I will understand your rubbish.
-
- OpenVPN Expert
- Posts: 685
- Joined: Tue May 01, 2012 9:30 pm
Re: OpenVPN client connection and CPanel
With redirect-gateway it will never can do that requirement and you cant do that either so please answer my question first.?
There are more than one person can understand what I am writing in here and know exactly what it mean.
There are more than one person can understand what I am writing in here and know exactly what it mean.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN client connection and CPanel
Not the person asking the question do not know what you talk about.
You answer is a bad answer because it make complex problem more complex.
Simple answer is "Don't use redirect-gateway"
Better answer is "Learn what redirect-gateway does"
Better answer than yours is "use pull-filter ignore 'redirect-gateway'"
When people don't know how to use something then good answer is explain the problem .. not make it worse with stupid idea just because it work for you because you don't like the right way.
Last edited by TinCanTech on Thu Feb 11, 2021 10:54 am, edited 1 time in total.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Thu Feb 11, 2021 8:47 am
Re: OpenVPN client connection and CPanel
Appreciate your quick response. It worked! Thank you for your help!
-
- OpenVPN Expert
- Posts: 685
- Joined: Tue May 01, 2012 9:30 pm
Re: OpenVPN client connection and CPanel
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 4
- Joined: Thu Feb 11, 2021 8:47 am
Re: OpenVPN client connection and CPanel
Why?
-
- OpenVPN Expert
- Posts: 685
- Joined: Tue May 01, 2012 9:30 pm
Re: OpenVPN client connection and CPanel
I am using Redirect-gateway over 10 year ago in DW WRT router and I know how to use it . But this way is more easy to use route so make it work better. As soon as it work and security it will be ok .
Let him think he is the best and everything he wrote is bible but nobody care at all.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN client connection and CPanel
Installing Seven routes which achieve nothing is definitely the wrong way.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Thu Feb 11, 2021 8:47 am
Re: OpenVPN client connection and CPanel
What would be the correct alternative?TinCanTech wrote: ↑Thu Feb 11, 2021 6:10 pmInstalling Seven routes which achieve nothing is definitely the wrong way.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: OpenVPN client connection and CPanel
Read this post again.