jens4626 Posted January 28, 2018 Share Posted January 28, 2018 So basicly I rebooted my VPS and now I don't have internet acces anymore. I fixed this before but I forgot how I did it. I tried adding port 80 to firewall but didn't work. Could really use some help, thanks Quote Link to comment Share on other sites More sharing options...
Butters Posted January 28, 2018 Share Posted January 28, 2018 6 minutes ago, jens4626 said: So basicly I rebooted my VPS and now I don't have internet acces anymore. I fixed this before but I forgot how I did it. I tried adding port 80 to firewall but didn't work. Could really use some help, thanks Internet access to what exactly? The http (or whatever) service running on your CentOS machine or the machine itself? Quote Link to comment Share on other sites More sharing options...
Charlotte Posted January 28, 2018 Share Posted January 28, 2018 Check if your network is disabled? Perhaps you have no ip from the dhcp server? Or you can try the following manually. chkconfig NetworkManager off chkconfig network on service NetworkManager stop service network start Quote Link to comment Share on other sites More sharing options...
Butters Posted January 28, 2018 Share Posted January 28, 2018 Just now, Charlotte said: Check if your network is disabled? Perhaps you have no ip from the dhcp server? Or you can try the following manually. chkconfig NetworkManager off chkconfig network on service NetworkManager stop service network start Very very likely that his firewall isn't setup to permanently allow certain ports, hence stopped working after reboot Quote Link to comment Share on other sites More sharing options...
Charlotte Posted January 28, 2018 Share Posted January 28, 2018 Just now, nosepicker said: Very very likely that his firewall isn't setup to permanently allow certain ports, hence stopped working after reboot No idea, it's been awhile since I have used linux. Quote Link to comment Share on other sites More sharing options...
jens4626 Posted January 28, 2018 Author Share Posted January 28, 2018 2 minutes ago, Charlotte said: Check if your network is disabled? Perhaps you have no ip from the dhcp server? Or you can try the following manually. chkconfig NetworkManager off chkconfig network on service NetworkManager stop service network start Didn't work, I believe it might be an issue with no IPv4 adress but not sure if it is that or how to enable it Quote Link to comment Share on other sites More sharing options...
jens4626 Posted January 28, 2018 Author Share Posted January 28, 2018 16 minutes ago, nosepicker said: Internet access to what exactly? The http (or whatever) service running on your CentOS machine or the machine itself? I cannot acces Google or osbot on the server Quote Link to comment Share on other sites More sharing options...
Butters Posted January 28, 2018 Share Posted January 28, 2018 https://wiki.centos.org/FAQ/CentOS6 try the #2 part Quote Link to comment Share on other sites More sharing options...
Vap0r Posted January 28, 2018 Share Posted January 28, 2018 7 minutes ago, jens4626 said: I cannot acces Google or osbot on the server What happens when attempting to ping 8.8.8.8? What happens when you attempt /etc/init.d/networking restart Check your static IP information located here: /etc/sysconfig/network-scripts/ifcfg-eth0: Quote Link to comment Share on other sites More sharing options...
Orlando Bloom Posted January 28, 2018 Share Posted January 28, 2018 Why 6th and not 7th? Also go with Debian, centos is legit af but requires tons of care. Quote Link to comment Share on other sites More sharing options...
Vap0r Posted January 28, 2018 Share Posted January 28, 2018 (edited) 9 minutes ago, Orlando Bloom said: Why 6th and not 7th? Also go with Debian, centos is legit af but requires tons of care. Install VNC, Desktop enviroment and Java, what is there to care for? Also its typically is always better to go with the 2nd most up to date release as newest are sometimes wacky Edited January 28, 2018 by Vap0r Quote Link to comment Share on other sites More sharing options...
jens4626 Posted January 28, 2018 Author Share Posted January 28, 2018 38 minutes ago, Vap0r said: What happens when attempting to ping 8.8.8.8? What happens when you attempt /etc/init.d/networking restart Check your static IP information located here: /etc/sysconfig/network-scripts/ifcfg-eth0: pinging 8.8.8.8 works fine. When doing /etc/init.d/networking restart it says no such file or directory When I'm doing the this /etc/sysconfig/network-scripts/ifcfg-eth0 I get permission denied Quote Link to comment Share on other sites More sharing options...
Vap0r Posted January 28, 2018 Share Posted January 28, 2018 (edited) 7 minutes ago, jens4626 said: pinging 8.8.8.8 works fine. When doing /etc/init.d/networking restart it says no such file or directory When I'm doing the this /etc/sysconfig/network-scripts/ifcfg-eth0 I get permission denied If pinging 8.8.8.8 works fine you have a DNS issue. First do these 2 commands: chkconfig NetworkManager off; service NetworkManager stop If you type: nano /etc/resolv.conf You Should see something like nameserver 202.169.33.220nameserver 202.169.33.222 I typically use google's DNS which is 8.8.8.8 8.8.4.4 Save changes and reboot VPS, you should be able to access web now. Let me know if still an issue Edited January 28, 2018 by Vap0r Quote Link to comment Share on other sites More sharing options...
jens4626 Posted January 28, 2018 Author Share Posted January 28, 2018 20 minutes ago, Vap0r said: If pinging 8.8.8.8 works fine you have a DNS issue. First do these 2 commands: chkconfig NetworkManager off; service NetworkManager stop If you type: nano /etc/resolv.conf You Should see something like nameserver 202.169.33.220nameserver 202.169.33.222 I typically use google's DNS which is 8.8.8.8 8.8.4.4 Save changes and reboot VPS, you should be able to access web now. Let me know if still an issue When I'm trying to stop networkmanger it says failed. This is my resolv.conf Quote Link to comment Share on other sites More sharing options...
Vap0r Posted January 28, 2018 Share Posted January 28, 2018 Remove the # infront of DNS1 DNS2 and domain Replace the X's with DNS1=8.8.8.8 DNS2=8.8.4.4 Domain=localdomain Quote Link to comment Share on other sites More sharing options...