LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2005, 07:38 PM   #1
PacMansRancor
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Rep: Reputation: 0
Disable Firewall in Redhat 9


Ok, I installed Redhat 9 and internet works fine, and so does the httpd. However I installed webCP and everything went fine. I'm not able to connect to any other port except 80 and 22 on the linux box from my pc? I'm using my PC to interact with the SSH. The box doesn't have a monitor, keyboard, or mouse. If there's a way to disable the firewall through SSH, please let me know, Thanks in advance
 
Old 09-26-2005, 08:05 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
running these commands should do the trick:
Code:
iptables -F
iptables -F -t nat
iptables -F -t mangle

iptables -X
iptables -X -t nat
iptables -X -t mangle

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
then to save the new iptables settings do a:
Code:
service iptables save
to learn about iptables go here: http://iptables-tutorial.frozentux.n...-tutorial.html

just my ...

PS: it's a much better idea to learn how to use iptables in such a way that you can configure it to allow ONLY the packets you want/need...
 
Old 09-26-2005, 08:14 PM   #3
PacMansRancor
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Original Poster
Rep: Reputation: 0
that must not have been the problem, because I still can't access port 81, or FTP for that matter, I appreciate the help though, who knows that may help me in the future.
 
Old 09-26-2005, 08:29 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
please post the output of these commands:
Code:
iptables -L

netstat -an | grep LISTEN

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable firewall in Redhat 8.0! -mk- Linux - Newbie 4 07-26-2004 05:09 PM
Disable Firewall dvong3 Linux - Networking 1 04-30-2004 08:27 AM
How to disable Redhat firewall? xbbd Linux - Newbie 3 03-05-2004 08:54 PM
Cannot disable firewall rnturn Linux - Security 6 03-19-2003 08:55 PM
how do you disable a firewall ? ICEAGE Linux - General 7 01-02-2003 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration