Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.