Link to home
Start Free TrialLog in
Avatar of Darren Wall
Darren Wall

asked on

ssh port and iptable

hello
i don't have much knowledge to iptables and i managed to lock my self out few times
and im trying get a way to go back into the server if i missed something up
i fhave found this way:
http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/
but im not really sure ifts working on my system or not, so i have to be sure
and i don't have a linux on my house or another server to test it on it
anyone can confirm me that script is working probably ? or a way to stop iptables every 10 min? so i can log back in and fix stuff

thank you
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

You can set a cronjob to flush iptables every five minutes if you like.


*/5 * * * * /sbin/iptables -F
Avatar of Darren Wall
Darren Wall

ASKER

if  i flush it, i wont be able to connect remotely thro ssh? or  im mistaken?
cause there will be no rule to allow remote access to shh?
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What kind of linux is that? Is it same machine under DDOS attack?