SA-MP Forums Archive
Ip tables firewall config - Can help for full server on linux. - 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: Ip tables firewall config - Can help for full server on linux. (/showthread.php?tid=551109)



Ip tables firewall config - Can help for full server on linux. - Blackaslan - 16.12.2014

The following is a command to only accept secures ports

Код:
iptables -restore <iptables
It allows access to secure ports , the rest will be dropped


Rate Limiting Connections:


you can have control of ip's connecting to your server

Example:

Код:
iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set
iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
This allows up to 3 connections from the same IP in a 60 second period. Any more than that are blocked (and not logged).

This work for me !


Re: Ip tables firewall config - Can help for full server on linux. - iKyle - 17.12.2014

Any way you can give me a code that works for Windows?


Re: Ip tables firewall config - Can help for full server on linux. - www - 17.12.2014

In Windows server you just have to go in the Control Panel and manage firewalll settings it's easier then Linux


Respuesta: Re: Ip tables firewall config - Can help for full server on linux. - Blackaslan - 17.12.2014

Quote:
Originally Posted by iKyle
Посмотреть сообщение
Any way you can give me a code that works for Windows?
Sorry buddy, I know a sh** about window , maybe you can get more info there : http://serverfault.com/questions/207...nt-of-iptables , good luck!


Re: Ip tables firewall config - Can help for full server on linux. - Circle - 17.12.2014

okay..