Lost SSH Access on AWS EC2 Instance Due to iptables restrictions

1

I have an Debian Linux EC2 instance on Amazon Web Services, and I am using iptables to open ports only from specific IP addresses. Unfortunately, all of the allowed IP addresses changed and I now can no longer access the system from anywhere.

Is there a way I can get access to my system again?

Brady Osborne

Posted 2016-09-30T17:57:10.183

Reputation: 31

they have Security Groups to do this better. – Skaperen – 2016-10-09T03:52:36.157

Answers

3

Stop your instance and disassociate the EBS volume from that instance. Mount the existing root volume as a data drive on a new instance. Change the configuration of IPTables, then turn that instance off and disassociate it from the second instance. Reattach it to the first instance, or a new instance, and run.

Tim

Posted 2016-09-30T17:57:10.183

Reputation: 529