SA-MP Forums Archive
centos 6 server port/firewall - 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: centos 6 server port/firewall (/showthread.php?tid=636061)



centos 6 server port/firewall - fiha4155 - 19.06.2017

Hello, I bought a centos 6 server to test my gamemode with friends. I did everything with iptables but sites like "canyouseeme" or other sites which test ports cant see me. I cant see my server too. Heres my iptable;



I dont know should I do something with firewall but I need help. I can see my server is started on server.log.


Re: centos 6 server port/firewall - fiha4155 - 19.06.2017

Yo, I tested it with adding ip to favorites, I can see it. But it doesn't show up in internet/hosted list.


Re: centos 6 server port/firewall - Astralis - 19.06.2017

tcp port 7777 as well.


Re: centos 6 server port/firewall - Sew_Sumi - 19.06.2017

Quote:
Originally Posted by Astralis
Посмотреть сообщение
tcp port 7777 as well.
Please don't guess... SA-MP uses UDP.


Re: centos 6 server port/firewall - Vince - 19.06.2017

Rules are matched top to bottom. Therefore lo0 should be first or you're going to screw yourself over. Then you need to allow traffic with a connection state "related" or "established" and then you can start checking the ports. And instead of blacklisting use whitelisting: make exceptions for the things you want to allow through and then have an unconditional drop as the final rule (you can also set the default policy as drop, but that's dangerous).


Re: centos 6 server port/firewall - Blackaslan - 22.06.2017

iptables -A INPUT -p tcp --dport 7777 -j ACCEPT
iptables -A INPUT -p udp --dport 7777 -j ACCEPT