Page 1 of 1

I messed up, please help! (Changed IP Addresses and now I can't access anything)

Posted: Tue Apr 18, 2017 10:57 pm
by ohioiproject
The subject pretty much says it all, I went into the firewall and changed the 0.0.0.0\0 to my actual server IP, and now I can't access anything! Please help! I have access to a SSH shell if that will allow me to fix this (host allows an emergency shell for issues like this).

Re: I messed up, please help! (Changed IP Addresses and now I can't access anything)

Posted: Wed Apr 19, 2017 2:48 am
by sdayman
I've not tried this, but a cursory look shows it's using iptables:

iptables -L will show you what you have set.

Here's something I found that's supposed to open 443:

iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
service iptables save
service iptables restart

Re: I messed up, please help! (Changed IP Addresses and now I can't access anything)

Posted: Wed Apr 19, 2017 7:25 am
by mehargags
Edit this file

Code: Select all

nano /usr/local/vesta/data/firewall/rules.conf 
Change the faulty entry by hand, Save and Reboot your server