LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2004, 07:47 PM   #1
bezaleel
Member
 
Registered: Jan 2004
Location: South Carolina
Distribution: Fedora Core 2
Posts: 30

Rep: Reputation: 15
Opening firewall ports


How do I open firewall ports? I need to open port 25. I'm using Fedora Core 1 in KDE.
 
Old 02-15-2004, 10:04 PM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
# iptables -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
# iptables -A INPUT -p tcp -m tcp --sport 25 -j ACCEPT
 
Old 02-16-2004, 07:14 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
# iptables -A INPUT -p tcp -m tcp --sport 25 -j ACCEPT
Unless you want to restrict traffic to that originating on port 25, you don't need this line. All this rule does is prevent a remote user from running their service on a different port. If that is what you want to do, fine, otherwise just stick with the first line.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
opening ports I think jleipert Linux - Security 7 09-04-2005 09:14 AM
Opening ports lunke Linux - Security 10 06-07-2005 03:04 AM
Opening ports on Fedora Firewall ProgramGeek Fedora 2 07-22-2004 10:40 PM
MDK 9.2 firewall and opening ports kalock Linux - Networking 11 12-02-2003 12:20 PM
Opening Ports george3k Linux - Newbie 7 02-16-2003 01:59 PM


All times are GMT -5. The time now is 08:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration