LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can block my SMTP Traffic? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-block-my-smtp-traffic-195071/)

krishnakishore 06-18-2004 02:12 PM

How can block my SMTP Traffic?
 
Hi
I have a linux box with RH 9.0 and it is havinf two ethernets, eth0, eth1, where as eth 0 is connected to internet and eth1 is connected to my local lan.

I want to block the SMTP traffic from my Local LAN to internet at my Linux box. What Changes i have to made to my firewall file.

Please Help me out......

advance thanx,,

myguest 06-19-2004 02:56 AM

if you have a firewall you can add a rule to drop all SMTP traffic

maxut 06-19-2004 04:02 AM

iptables -A FORWARD -i eth1 -p tcp --dport 25 -j DROP

or

iptables -A FORWARD -i eth1 -p tcp --dport 25 -j REJECT

ppuru 06-19-2004 07:49 AM

You can also use /etc/hosts.deny

smtp: <network address>

For example

smtp: 192.168.100.


All times are GMT -5. The time now is 05:44 PM.