• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Iptables for gameports

swordman

Member
Joined
Jun 5, 2011
Messages
394
Reaction score
7
Hello,

I want to ask if someone have a nice iptable to filter the gameports (7172,7171).

A friend of me tried this iptable rules:
PHP:
iptables -I INPUT -p tcp --dport 7172 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 7172 -i eth0 -m state --state NEW -m recent --update --hitcount 10 -j DROP
and
PHP:
iptables -I INPUT -p tcp --dport 7171 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 7171 -i eth0 -m state --state NEW -m recent --update --hitcount 10 -j DROP

but, he told me that alot of people had problems while logging in such as; Connection timeout and the character list is loading to long.
If anyone has a nice iptable rule which will help a bit organizing the packets that gets sended to the gameports without making any problems
as I said above, would be very good and im sure another people are also interresed in this iptable rule.


Linux debian 6

Thank u for reading
 
Someone told me this one could be ok to:

PHP:
iptables -I INPUT -p tcp tcp --dport 7172 -i eth0 -m state --state NEW,ESTABLISHED -m recent --set -j ACCEPT
iptables -I INPUT -p tcp --dport 7172  -m state --state NEW -m recent --update --seconds 3 --hitcount 20 -j DROP

Any comments for this one?
 
Back
Top