LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unblocking a port (https://www.linuxquestions.org/questions/linux-newbie-8/unblocking-a-port-343493/)

Solvaut 07-15-2005 12:27 PM

unblocking a port
 
I have a dedicated server with Fedora Core 3, Im getting no help from my server provider nor anyone around me, I have do a search on google and found little help :scratch: but not what I was looking for... :cry:

I want to unblock a port 12220 on my server, Im having problems on just getting this question answered "how do i unblock a port" firewall is the default one in fedora core 3, i just want to know how to unblock a port, I dont want anyone to do it for me just to give me instructions because i want to learn :cry: :study:

J_K9 07-15-2005 12:41 PM

You need to edit the file /etc/sysconfig/iptables-config. This is your iptables firewall configuration file, off which /etc/init.d/iptables reads from. Do "less /etc/sysconfig/iptables-config" in the terminal to read through it, and once you've found out what you need to edit (I would tell youexactly what, but my laptop currently has no battery as the charger is broken), then do the following:
Code:

$ su
Password:
# vi /etc/sysconfig/iptables-config
OR, if you prefer to do it via the GUI:
# gedit /etc/sysconfig/iptables-config

You can view the LQ Wiki for Iptables in Fedora here.

J_K9

P.S Welcom to LQ!! ;)

Solvaut 07-15-2005 03:30 PM

J_K9 ty, to unblock a port i am just enter these commands?

/sbin/iptables -
I INPUT
-p tcp --destination-port 12200:12200
-j ACCEPT/sbin/iptables
-I INPUT
-p udp --destination-port 12200:12200
-j ACCEPT

like this???

J_K9 07-15-2005 05:53 PM

Errr...to tell you the truth, I'm not actually sure. Could you please post everything returned from the command "less /etc/sysconfig/iptables-config" in terminal? From there I may be able to help you, because I'm not sure if that long command you posted would work...

J_K9


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