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,, |
if you have a firewall you can add a rule to drop all SMTP traffic
|
iptables -A FORWARD -i eth1 -p tcp --dport 25 -j DROP
or iptables -A FORWARD -i eth1 -p tcp --dport 25 -j REJECT |
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. |