SRCDS Steam group

can anyone help me with iptables
Alright I'm a complete novice when it comes to iptables on linux centos. I've been working with Windows all this time and decided to switch to linux recently. I've learned how to set up games server, startup scripts, web servers, and all the other goodies. The only thing I'm confused on now is the iptables and how to forward ports, block ports, and other types of stuff.

My current problem is that people are unable to connect to my website and game servers. They can connect if I run the command "service iptables stop" but I want iptables to be running at all times.

This is my current iptables configuration. Could anyone configure it to work for game servers and a website? It would really be appreciated.
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
Get free clan themes & templates @ Gamer Templates
Get free fast download @ DropBox
You could try using UFW, it makes firewall configuration bit easier but I'm not sure if it can be installed on centos distros.
IPTables is a pain to configure. I suggest you install CSF Firewall ( It's a wrapper for IPTables that makes it insanely easy to configure ports and includes a ton of security features like account login failures, RBL support, etc.

Forum Jump:

Users browsing this thread: 1 Guest(s)