Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blacklisted server...help me block port 25 outbound.

Status
Not open for further replies.

petrosky

Technical User
Joined
Aug 1, 2001
Messages
512
Location
AU
Hi,

I need some advice on editing my ipfw.conf file.

I have a windows machine which is apparently spewing out spam.
I would like to block all outbound SMTP traffic whilst still allowing genuine email traffic out through my freebsd gateway.

Also...if anyone could tell me which logs I can check to ascertain the infected machine/s on my lan it would be great.

I am a newbie, so please be gentle.

Some more info should it be required.

Freebsd 4.8 Gateway running NAT, firewall & postfix mail.
XP SP2 clients running Outlook 2000 internet mail pointing at the BSD box.

Thanks in advance for any help.

I want to stop spam as much as the next person.

Regards,

Peter

Remember- It's nice to be important,
but it's important to be nice :)
 
Hi,

I ended up getting offsite technical support on this issue as I wasn't comfortable editing the ipfw.conf file.

The following was done logged in as root.

postfix stop (to stop legit traffic)
ipfw add 150 deny log tcp from 192.168.1.0/24 to any 25 in recv fxp0 (a rule to block outgoing traffic on port 25)
dmesg -a | grep :25 (to display the machine/s connecting on 25)
the machine was then rebooted.

It turned out to be machines from a remote office connecting back via vpn.

Hope this helps any other newbies out there.

Regards,

Peter

Remember- It's nice to be important,
but it's important to be nice :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top