centos 6 server port/firewall
#1

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.
Reply
#2

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

tcp port 7777 as well.
Reply
#4

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

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).
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)