Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-03-2011, 09:52 PM
|
#1
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Rep:
|
After running iptables -F my server goes offline???
After running iptables -F my server goes offline???
Isn't that suppose to flush the iptables, so it will allow all traffic?
|
|
|
01-03-2011, 10:43 PM
|
#2
|
Member
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, Kali Linux, Raspbian
Posts: 166
Rep:
|
Do you run this command from SSH Client or from the server only ?
do you able to ping after flushing IPTables?
|
|
|
01-03-2011, 10:43 PM
|
#3
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
Quote:
Originally Posted by kaushalpatel1982
Do you run this command from SSH Client or from the server only ?
do you able to ping after flushing IPTables?
|
From an SSH client, I could not ping it afterwards.
|
|
|
01-04-2011, 12:24 AM
|
#4
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
Quote:
Originally Posted by abefroman
After running iptables -F my server goes offline???
Isn't that suppose to flush the iptables, so it will allow all traffic?
|
Not if you've set the INPUT chain POLICY to DROP.
The iptables(8) -F option flushes only rules, not policies.
|
|
|
01-04-2011, 12:28 AM
|
#5
|
Member
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Rep:
|
Quote:
Originally Posted by anomie
Not if you've set the INPUT chain POLICY to DROP.
The iptables(8) -F option flushes only rules, not policies.
|
Your'e a genius anomie, I've experienced this exact issue before and couldn't figure out why I got locked out after running iptables -F
|
|
|
01-04-2011, 12:30 AM
|
#6
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
I'm certainly not that.  But I have done enough stupid things (and locked myself out of enough servers) to have learnt me lesson.
|
|
|
01-04-2011, 02:12 AM
|
#7
|
Member
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246
Rep:
|
Quote:
Originally Posted by abefroman
After running iptables -F my server goes offline???
Isn't that suppose to flush the iptables, so it will allow all traffic?
|
Code:
service iptables stop
will do the trick.
The -F deletes all rules in the chain or all chains.
Worst scenario if you are logged in via ssh client.
|
|
|
01-04-2011, 05:14 AM
|
#8
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
Quote:
Originally Posted by anomie
Not if you've set the INPUT chain POLICY to DROP.
The iptables(8) -F option flushes only rules, not policies.
|
Thanks!
|
|
|
All times are GMT -5. The time now is 05:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|