Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-14-2004, 08:47 PM   #1
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, 11:04 PM   #2
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, 08:14 AM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
# 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.


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 10:14 AM
Opening ports lunke Linux - Security 10 06-07-2005 04:04 AM
Opening ports on Fedora Firewall ProgramGeek Fedora 2 07-22-2004 11:40 PM
MDK 9.2 firewall and opening ports kalock Linux - Networking 11 12-02-2003 01:20 PM
Opening Ports george3k Linux - Newbie 7 02-16-2003 02:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

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