Block port 25 [how to?]

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
tman
Posts: 1
Joined: Thu Mar 15, 2012 5:12 am

Block port 25 [how to?]

Post by tman »

Hello,

I need to block outgoing connection on port 25 (spambots on some computers within local network; all computers are currently configured to use port 587 for email protocol)

I don't know how to achieve that.

I use TP-Link WD1043ND router with gargoyle 1.5.2 installed.

I would very appreciate for help and/or suggestions.

(sorry for my english:)

Best regards,

Tom

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: Block port 25 [how to?]

Post by mix »

You can probably do this in /etc/config/firewall, but I am not really sure of the exact syntax. I do know it's a much longer syntax than this... Here is how to do it with iptables. ssh into your router. Execute the command below:

/usr/sbin/iptables -A FORWARD -p TCP --dport 25 -j DROP
WRT54GL v1.1
Gargoyle 1.4.7

Post Reply