Results 1 to 5 of 5
I have Fedora 14, and am trying to connect to my Fedora machine using a netbook that I have. For some reason, port 22 is closed on my computer. I ...
- 02-13-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 1
Opening Ports in Fedora
I have Fedora 14, and am trying to connect to my Fedora machine using a netbook that I have. For some reason, port 22 is closed on my computer. I know enough to realize this is required for SSH, and would like to open it. Does anyone know how to do this?
(Also, my netbook has Ubuntu Netbook 10.10, just in case it makes any difference)
- 02-15-2011 #2
Check and see if the firewall is running...
Check to see if the SSH service is running...Code:service iptables status
If it is then you need to edit the firewall and add a rule to allow port 22 throughCode:servie sshd status
Have a look at system-config-securitylevel
- 02-16-2011 #3Just Joined!
- Join Date
- Nov 2010
- Posts
- 4
By default sshd may not be running on your system as said above check the status
if it is off run
If it is on you should check your IPTables Configuration. This can be done by disabling iptables temporarily withCode:service sshd start
if it is your IPTables Configuration you need to open the port using iptablesCode:service iptables stop
Code:[root@fedora ~]# iptables -I INPUT -p tcp --dport 25 -j ACCEPT [root@fedora ~]# iptables save
- 02-18-2011 #4
Why the temporary stopping of the firewall? You think this is necessary? You can check your rules without shutting off the firewall.
Some ways to check your firewall;
Code:service iptables status or iptables -L
While I can understand your excitement at maybe being able to help someone, you should really have an understanding of what you are asking them to do. The default port for SSH is 22 not 25. This can also be changed by the users as long as they understand how and where to make the change.if it is your IPTables Configuration you need to open the port using iptables
Code:[root@fedora ~]# iptables -I INPUT -p tcp --dport 25 -j ACCEPT
Here is a Port Listing for you to look over.
Also you should start thinking about using a STATEFUL firewall that uses NEW, ESTABLISHED, RELATED and INVALID rules.
See this TUTORIAL on this topic.
RH does not save the firewall rules like this unless they have recently changed something. You should useCode:[root@fedora ~]# iptables save
Which will store the current running firewall rules in /etc/sysconf/iptables.Code:service iptables save
When the firewall is restarted with service iptables start/restart this file is read.
A lot of people believe in running a script to start and configure their firewalls. I believe that you can use a script to configure the firewall at first then you should save and restore the rules using the system calls as designed.
- 02-18-2011 #5Just Joined!
- Join Date
- Nov 2010
- Posts
- 4


Reply With Quote
