How to reset the VPS server to original state using SSH - linux

My client recently purchased a VPS server and started configuring the WHM/cPanel related settings and unfortunately mis configured it (added a wrong DNS/ip details/and cpanel settings.) to an extent that its not reconfigurable through WHM login.
Although, the SSH connectivity is intact and works fine so far. Now, I would like to know if there is a way to reset the VPS back to its original state so that we can start configuring the WHM login again.
additional info : This is a linux host and I am able to login via ssh as root and operate. As far as I understood from my client we have added wrong domain name,some 5 Ips.
Thanks in advance.
Please let me know if you need any additional information from my end.

Try to login your server through WHM with http://serverip:2086 URL and removed your domain which you have added wrong and delete the IP's from WHM,
And if you want to reinstall your VPS, Than you will have contact your VPS provider. They will reinstall your server so that you can start it again.

Related

How to access a gitlab-ce running on a machine behind a router?

I have installed gitlab on my ubuntu server and as far as I can tell its up and running. I'm trying to configure it so that I can access it via my static IP from anywhere. What should I put in the external_url in gitlab.rb ? Should be the local static ip of the server followed by the port number? Basically I want to be able to type http://staticIp:portNum and acces the web interface.
Also if I reconfigure will I loose the root password that was generated for me? I know that the file will be deleted so I copied the pass over just to be safe.
As illustrated by gitlab-org/omnibus-gitlab issue 4932, you would need to:
use a static IP of a FQDN (fully qualified name) of your server, as explained in "Configure the external URL for GitLab"
Configure your NGiNX
Reconfiguring GitLab should not reset the initial root password set on installation.

vps nameserver setup not working

I am a noob in the VPS-DNS world.
I purchased a VPS (with one ip) and logged into WHM to setup for production. I configured nameservers to "ns1.a-domain-i-have.com" and "ns2.a-domain-i-have.com".
Then logged into that domain account at my register where I
- set default nameservers from the registrar
- in DNS manager I set ns1, A , my server IP and ns2, A, the same server IP
After creating a host account in WHM using "another-domain-I-have.com", I registered "ns1.a-domain-i-have.com" and "ns2.a-domain-i-have.com" in the custom nameservers.
But my new website refuse to work/ nothing works, I did all these based on the understanding of tutorials I googled.
I have tried
- reinstalled the VPS
- used the default nameserver that came with the VPS host. Although, this nameserver ip is unknown.
- update cPanel
I need some help!
I already got it. It works now. The steps I mentioned aboved did it. Maybe am supposed to take this down but I'll leave it for newbies like me.

Accessing a server using VPN connection

I am trying to connect to a university server using a VPN client. I can connect to the client. Also, if I ping the server by name and by IP address, they both work:
ping servername
ping serveripaddress
However, I cannot access the server from the browser if I type:
\servername
\serveripaddress
and also I do not see anything in Network apart from my own computer. I changed my Workgroup to the correct Workgroup, and it still doesn't work.
Also, as my DNS suffix I use the domain name as well as the FQDN, but it doesn't work either.
I restarted after each of these changes, but it didn't help.
I read that when I have a VPN connection working and I am also able to ping the server to which I want to connect, it is most probably DNS resolution problem. But I do not know anymore what to do (I checked and tried the correct DNS suffixes).
Do you know what should I do more? I am using Windows 7.
Thank you.
It sounds like you're trying to use UNC pathing. Assuming that you're getting your network settings from DHCP, are you getting a WINS server?

Proxy over a proxy in linux

How to use two proxies with authentication in a linux terminal?
My college uses cyberroam with squid proxy server and it blocks all legitemate terminal requests such that basic commands like apt-get install libvirt kvm dont work.
So i was thinking of either running a vpn or a private proxy server on google app engine and connecting to it via the terminal but i need to go through the squid proxy to reach the internet.
Any ideas as to how to implement this.
PS: We already tried reasoning with the college authorities they say they cant help directly but we can always bypass it wihtout their knowing. And we really need this for our project so please help. Thank you
I'm not sure if NTLMAPS will work for you but it works for me on bypassing company proxy with the use of public proxy servers.
Another thing, my friend's company is using domain controller to authenticate internet users and he told me that NTLMAPS also works for him and able to access the net via linux terminal.
Good luck.
I setup the proxy in my ubuntu machine as below:
https://gopukrish.wordpress.com/2014/05/22/configure-proxy-in-ubuntu-14-04/
Following are the contents in-case the link becomes unusable in future.
Download and install cntlm package from : http://sourceforge.net/projects/cntlm/
Edit /etc/cntlm.conf
Give credentials in the below fields
username
domain
password
proxy IP:Port
Note down the Listen port… say it is 3128
save
Select Network options in Ubuntu and choose network proxy
Give 127.0.0.1 port 3128 for all the protocols
/etc/init.d/cntlm restart
This worked for me after the restart

Domains not loading - server working fine...any ideas?

I run a high volume website and since yesterday it's not working.
My server (for example) 100.0.0.1 is working fine, I can access WHM etc, rootssh no problem....
Yet none of the domains are working, they say cannot find page.
I have my name server setup at Godaddy using domainname.com
Pointing to 3 IPS, 100.0.0.1, 100.0.0.2, 100.0.0.3
All my domains then have ns1.domainname.com, ns2.domainname.com, ns3.domainname.com
As their Nameserver entries.
This was working fine yesterday, now...nothing.
Any ideas on what I can do? Troubleshoot.
Thank you, I am losing alot of trade as I run an high traffic eCommerce website, so would like to get this fixed as soon as possible.
Have you tried using the IP of the server instead of the domain name? Could roll out a DNS issue. You said you can gain root access fine.
Have you checked your firewall to ensure the correct ports are still open?
If you run a netstat command to check what type of traffic is occurring.
Run this command and then try to access the domain or IP to see if the connection is established or if the service is listening. (watch -n 1 netstat -nat)

Resources