Open ports Linux/Centos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Open ports Linux/Centos (
/showthread.php?tid=583047)
Open ports Linux/Centos -
Rodri99 - 25.07.2015
Hi Guys, i am having this problem from lot time and untill today i haven't solved it yet, i need to open my ports without disable all Centos Firewall (iptables), someone knows which code will open a specify port without off the full firewall of my VPS?
Infact, my server shows online when i disable the firewall, and when i active it and open specify ports it's doesn't show online....
Thanks to all repliers
Re: Open ports Linux/Centos -
MustangV10 - 25.07.2015
Hello,
iptables -A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT
/etc/init.d/iptables save
You can use the above to open port 7777 (the SA:MP default), and then save the rule to ensure it's persistent upon the iptables service getting restarted.
To check the status of a port, you may like to check out:
http://www.yougetsignal.com/tools/open-ports/
For what it's worth, IPTables can be flushed and disables using:
iptables -F
service iptables save
service iptables stop
Re: Open ports Linux/Centos -
LinuxViper - 25.07.2015
Quote:
Originally Posted by MustangV10
Hello,
iptables -A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT
/etc/init.d/iptables save
You can use the above to open port 7777 (the SA:MP default), and then save the rule to ensure it's persistent upon the iptables service getting restarted.
To check the status of a port, you may like to check out: http://www.yougetsignal.com/tools/open-ports/
For what it's worth, IPTables can be flushed and disables using:
iptables -F
service iptables save
service iptables stop
|
SA-MP Server use UDP protocol over IPv4 and not TCP !
Rodri99,
You can add this iptables rule (into your iptables Shell script or your firewall rules) to allow incoming traffic for 7777 (you can change it) destination port.
Код:
iptables -A INPUT -p udp --dport 7777 -j ACCEPT
If you still having problems, pleas let us to know.
Re: Open ports Linux/Centos -
Sublime - 26.07.2015
Quote:
Originally Posted by LinuxViper
SA-MP Server use UDP protocol over IPv4 and not TCP !
|
announce uses tcp to query to sa-mp master list
right
Re: Open ports Linux/Centos -
Rodri99 - 27.07.2015
Thanks a lot guys, i will try it when my server will got some few players on