Community discussions

MikroTik App
 
ropeba
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Sat Jul 29, 2006 4:13 pm

SMTP problem, how?

Sat Jul 29, 2006 4:28 pm

Does anyne know how could I set sending only via SMTP server of my provider, and all others must be rejected. I did following, but it's not working

/ ip firewall filter
add chain=forward protocol=tcp dst-port=25 dst-address-list=SMTP action=drop comment="" disabled=no

/ ip firewall address-list
add list=SMTP address=PROVIDERIP/32 comment="ISP SMTP" disabled=no
 
BurstNET

Sat Jul 29, 2006 4:31 pm

Order of the rules should probably be reversed, as you are rejecting everything before you are allowing what you want. Allow first, then reject the rest?

SMA
 
ropeba
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Sat Jul 29, 2006 4:13 pm

Sat Jul 29, 2006 4:38 pm

but can you tell me which order should I use?
how should I configure that?

thanks
 
ropeba
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Sat Jul 29, 2006 4:13 pm

Sat Jul 29, 2006 4:48 pm

I got it, first I add rule for forwarding of port 25 to Ip form provider, and then I add rule for blocking of all bandwith on port 25
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Sat Jul 29, 2006 10:50 pm

Thiis type of thing is good in WinBox - just drag 'em where you want 'em.

Mike
 
savage
Forum Guru
Forum Guru
Posts: 1263
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Sun Jul 30, 2006 11:44 am

Why not just use one rule?
/ ip firewall filter 
add chain=forward protocol=tcp dst-port=25 dst-address-list=!SMTP action=drop comment="" disabled=no
Drop everything outgoing on port 25 *not* going to dst-address-list ? ;)

Who is online

Users browsing this forum: No registered users and 123 guests