Community discussions

MikroTik App
 
yri
newbie
Topic Author
Posts: 42
Joined: Wed Jun 28, 2006 1:19 pm

How to Allow SMTP/POP3 only in NAT for some local IP`s

Sat Jul 01, 2006 8:02 pm

Need to give only SMTP/POP3 access to the internet to some local IP`s and deny all over traffick
How to pleaseImage
 
pedja
Long time Member
Long time Member
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Sun Jul 02, 2006 2:42 am

When setting masquarade you have an option to set protocol (set it to TCP) and then option to set port is available (you neet 25 and 110)
 
yri
newbie
Topic Author
Posts: 42
Joined: Wed Jun 28, 2006 1:19 pm

Sun Jul 02, 2006 7:19 am

I need to do this
-----------------------
Local - 192.168.0.0/24

IP - 192.168.0.100 - 192.168.0.250 Should have access only to SMTP and POP3 on internet
IP - 192.168.0.0 - 192.168.0.99 - full access

If i do like you sad it will work for all IP range but i need to do it for some Ip`s only
 
yancho
Member Candidate
Member Candidate
Posts: 208
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Mon Jul 03, 2006 10:09 am

/ ip firewall filter 
add chain=forward src-address-list=all_services action=accept comment="allow 192.168.0.x full access" disabled=no 
add chain=forward protocol=tcp dst-port=110 src-address-list=mail action=accept comment="allow pop3 to 192.168.0.y" disabled=no 
add chain=forward protocol=tcp dst-port=25 src-address-list=mail action=accept comment="allow smtp to 192.168.0.y" disabled=no 
add chain=forward src-address-list=mail action=drop comment="drop all other from 192.168.0.y" disabled=no

/ ip firewall address-list 
add list=all_services address=192.168.0.x comment="full access list" disabled=no
add list=mail address=192.168.0.y comment="mail access list" disabled=no 
 
yri
newbie
Topic Author
Posts: 42
Joined: Wed Jun 28, 2006 1:19 pm

Mon Jul 03, 2006 10:52 am

Thank you Image
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6630
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Mon Jul 03, 2006 3:20 pm

These links (1,2).
will help you to understand/use MikroTik firewall.

Who is online

Users browsing this forum: Bing [Bot], eworm, mcgoebel, Renfrew, Znevna and 280 guests