iptables -A INPUT -j DROP -p tcp -m tcp -s ! <isp_ip> --dport 25
Nice day,
Andreas.
-- On 20.03.2003 16:25:01 +0100 david@xxxxxx wrote:
Hi everybody, I would like to know how can I filter the mail relay received in my port 25 with the firewall,.. I want only accept the packets from only one ip, my ISP. This is possible this rule with iptables ??
Thanks
-- "Ich denke, man hat kein Recht, andere zu kontrollieren oder Ihnen etwas aufzuzwingen, den eigenen Glauben oder die eigene Art zu leben." - Dalai Lama "Begegnungen". ------------------------------------------------------------------- Andreas Czerniak <cognac@xxxxxxxxxxx> - Kiel - FRG - Fax:+49-431-2000447 PGPkey: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xEDB224EC