LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2004, 02:12 PM   #1
krishnakishore
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
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,,
 
Old 06-19-2004, 02:56 AM   #2
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Rep: Reputation: 15
if you have a firewall you can add a rule to drop all SMTP traffic
 
Old 06-19-2004, 04:02 AM   #3
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
iptables -A FORWARD -i eth1 -p tcp --dport 25 -j DROP

or

iptables -A FORWARD -i eth1 -p tcp --dport 25 -j REJECT
 
Old 06-19-2004, 07:49 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
You can also use /etc/hosts.deny

smtp: <network address>

For example

smtp: 192.168.100.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
possible to block msn traffic? flamesrock Linux - Software 3 05-26-2005 09:10 PM
Block outgoing traffic through router? Micro420 Linux - Networking 3 03-15-2005 07:01 AM
how to block an ip from using SMTP woho Linux - Networking 4 03-05-2004 10:48 AM
Setting ip tables to block all traffic LinuxBAH Linux - Security 1 02-07-2004 06:15 AM
Block Kazaa2 traffic jekyl Linux - Security 4 03-13-2003 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration