LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-10-2005, 10:49 AM   #1
pegan
LQ Newbie
 
Registered: Feb 2005
Location: west bend, wi
Distribution: fedora 2
Posts: 13

Rep: Reputation: 0
open special ports


I am new at fedora, but am trying hard to learn.

I need to add several ports.
I did the iptables:
"iptables -A INPUT -p tcp -s 192.168.3/24 -i eth0 --dport 8181 -j ACCEPT"
then I did:
"service iptables save" (got an OK message)
When I go to do "nmap -sTU 192.168.3.200" the port does not show up as open.


Where did I go wrong?
Paul
 
Old 02-10-2005, 11:33 AM   #2
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
Is the service listening on port 8181 running? 'cos the port won't show as open until it is.
Another way is to cheat, download webmin (www.webmin.com) and use the Firewall gui to setup iptables.

*Edit*
I have just thought of another way in Fedora,
run 'setup'
choose 'firewall configuration' then 'Custom'
you would add 8181 to the 'other ports' list

Last edited by skunkburner; 02-10-2005 at 11:42 AM.
 
Old 02-10-2005, 01:36 PM   #3
pegan
LQ Newbie
 
Registered: Feb 2005
Location: west bend, wi
Distribution: fedora 2
Posts: 13

Original Poster
Rep: Reputation: 0
that would be good if I had that option. I need to do it by code.
 
Old 02-10-2005, 01:45 PM   #4
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
OK I typed the command line you specified and webmin shows the following entry: -

Accept if protocol is TCP and source is 192.168.0.0/255.255.255.0 and input interface is eth0 and destination port is 8181
^
Lookey here!!

try

"iptables -A INPUT -p tcp -s 192.168.3.0/24 -i eth0 --dport 8181 -j ACCEPT"
^
try adding an extra '.0' to complete the ip address

edit* Bugger it is removing my spaces : (
you are lookey here'ing at the -s 192.168.0.0
I assume you are adding the Class C net 192.168.3.0 rather than the C 192.168.0.0

Last edited by skunkburner; 02-10-2005 at 01:48 PM.
 
Old 02-14-2005, 01:40 PM   #5
pegan
LQ Newbie
 
Registered: Feb 2005
Location: west bend, wi
Distribution: fedora 2
Posts: 13

Original Poster
Rep: Reputation: 0
tank you I will try that
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 10:38 AM
How go i open ports ? jchikoti Linux - Security 2 06-09-2005 08:56 AM
Open Ports excidy Linux - General 1 04-02-2005 07:40 PM
How to open a terminal in a special folder under nautilus? kevinqian Linux - Newbie 1 12-04-2003 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:54 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