LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Opening port - total newbie (https://www.linuxquestions.org/questions/linux-newbie-8/opening-port-total-newbie-779469/)

s1cK 01-02-2010 06:13 PM

Opening port - total newbie
 
Hello,
I got my self a linux server, running CentOS 5.1.
I configured some online bot, but some ports are closed, and now I need to open them. Tho I'm big newbie, I would really need some help with it.
Port that I need to open is 6112 (if you really want to know, it's for hosting DotA Bot - warcraft3 mod game).

Hoping for fast reply,
- s1cK

MS3FGX 01-02-2010 06:25 PM

How is this server connected to the Internet? Are you sure the firewalling is being done on the local machine, and not some device sitting between the server and the WAN?

s1cK 01-02-2010 06:37 PM

Quote:

Originally Posted by MS3FGX (Post 3811961)
How is this server connected to the Internet? Are you sure the firewalling is being done on the local machine, and not some device sitting between the server and the WAN?

I knew that I missed some info :)

Basicly there is 'nothing' sitting between server and WAN.
I have router, on who i disabled firewall, and nat, since i have ip address range ( /29 ).
Only thing that can bug him is server firewall and closed port.

jeff_k 01-03-2010 12:07 AM

I'm not sure if you are giving out all of the information you need to... like, do you need to forward the traffic through the server?

At any rate, if all you need to do is open port 6112 on the server, you can use iptables, by issuing the following command (will need root or sudo privileges, and the proper path to the command):

iptables -A INPUT -i eth0 -p tcp -m tcp --dport 6112 -j ACCEPT
iptables -A INPUT -i eth0 -p udp -m udp --dport 6112 -j ACCEPT
assuming your interface name is eth0.


All times are GMT -5. The time now is 06:47 PM.