Empulse Group a collection of notes from a sys admin, musician, and father


Tricks with iptables

Use iptables to force mail out a specific ip address:

[root@www ~]# iptables -t nat -A POSTROUTING -p tcp --dport 25 -j SNAT --to-source

Rate limit port 80, 100 connection limit:

[root@www ~]# iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 100 -j DROP
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.