LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-02-2010, 07:13 PM   #1
s1cK
LQ Newbie
 
Registered: Oct 2007
Location: Belgrade/Serbia
Posts: 5

Rep: Reputation: 0
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
 
Old 01-02-2010, 07:25 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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?
 
Old 01-02-2010, 07:37 PM   #3
s1cK
LQ Newbie
 
Registered: Oct 2007
Location: Belgrade/Serbia
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MS3FGX View Post
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.
 
Old 01-03-2010, 01:07 AM   #4
jeff_k
Member
 
Registered: Jan 2008
Location: San Diego, CA USA
Distribution: Debian / Ubuntu
Posts: 51

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


Reply


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
total newbie papahonk LinuxQuestions.org Member Intro 5 10-10-2009 10:59 AM
total newbie needs help faiselm Linux - Newbie 5 03-09-2009 01:58 PM
total newbie jay_1978 Linux - Newbie 7 05-26-2007 03:49 AM
total newbie needs help Kaedynn Slackware 11 03-06-2004 10:08 PM


All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration