This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Block Port 25 On Public Interface?

Hello,

I've tried to block (with no success) the SMTP port on the public interface of ASL adding a rule to drop any request
on the interface public for port 25...

The idea is that from the inside, everyone can relay on
ASL and ASL will then deliver to the public internet.

This is because ASL is receiving mails on an ADSL line and
will deliver thru a Cable Line.

At the moment I can manage this quite good...but the problem is that on the cable side port 25 results open.

Is there any way to lock it?

Thank you in advance!   


This thread was automatically locked due to age.
Parents Reply
  • I've tried this... I've added only the internal network as allowed to relay...

    the result is that of course nobody can relay on the external interface... but port still results open... my goal would be to 
    have a "stealth" port 25...

    No luck yet [:(]  
Children
  • You could try using the /sbin/init.d/ipfilter.local file.
    Create a file > touch /sbin/init.d/ipfilter.local
    and use joe or vi to add your own filter rule to the INPUT chain or AUTO_INPUT chain. Try one or the other and DROP traffic to the external interface for port 25.
    Assuming your external interface is eth1...

    iptables -I INPUT -i eth1 -p tcp --dport 25 -j DROP
    iptables -I INPUT -i eth1 -p udp --dport 25 -j DROP

    These should drop all port 25 traffic inbound on eth1.
    Hope this helps.