Server Complete, LLC | Customer Forums: I blocked myself out of my firewall, HELP! - Server Complete, LLC | Customer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I blocked myself out of my firewall, HELP!

#1 User is offline   Daniel Icon

  • SC Staff
  • Icon
  • Group: Administrators
  • Posts: 24
  • Joined: 25-January 10
  • LocationFlorida

Posted 01 February 2010 - 12:36 AM

Have no fear, Mission Control is here! (corny, yes I know)

We get numerous tickets every week regarding people blocking themselves out of their firewall and being unable to access their server. Well, we have a solution for that :) It is called the Out-of-Band Terminal Console!

1) Login to Mission Control
2) Select "Terminal Console" under the "Tools" menu
3) At the login prompt, input your VirtualComplete/VSXPathway login details
4) Select the Server ID of the VPS in question
5) Select to enter the console

6) Now here is where it changes up a bit:
  • CentOS/Fedora --
    • At the prompt, type the following: /etc/init.d/iptables stop
  • Debian/Ubuntu --
    • Save the firewall rules:
      • iptables-save > /root/firewall.rules
    • Clear all iptables blocks:
      • iptables -X
        iptables -t nat -F
        iptables -t nat -X
        iptables -t mangle -F
        iptables -t mangle -X
        iptables -P INPUT ACCEPT
        iptables -P FORWARD ACCEPT
        iptables -P OUTPUT ACCEPT
    • To restore the firewall rules later:
      • iptables-restore < /root/firewall.rules


You have now unblocked yourself from your firewall and may proceed to correcting those rogue firewall rules :)
Daniel | Chief Executive Officer
Server Complete, LLC || Not happy with something? Email me: daniel [ @ ] servercomplete [ . ] com
Virtualized to Perfection in multiple United States datacenters!
55 Marietta (Atlanta, GA) || Latisys (Chicago, IL) || DataBank (Dallas, TX) || SVTIX (San Jose, CA)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users