Community discussions

MikroTik App
 
ramon82
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Fri Apr 30, 2010 2:19 pm

How can I setup my RB450G for e-mail purposes?

Thu Apr 28, 2011 5:51 pm

Hi all

I got an RB450G and want to use it as firewall between the Internet and a mail server. I need to open specifically these ports and drop everything else:

Port 80 forwarded to mail server (for webmail)
SMTP
POP3
DNS

Can someone advise correct command? The below are all the relevant IP addresses (not actual for security purposes):

External: 77.21.20.2 /29
Gateway: 77.21.20.100
Internal: 192.168.0.10 /24
Mail server: 192.168.0.100 /24
Primary DNS: 70.20.1.20
Secondary DNS: 70.20.1.21







Thanks
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: How can I setup my RB450G for e-mail purposes?

Fri Apr 29, 2011 11:54 pm

/ip fireall filter
add chain=input in-interface=WAN1 action=accept
add chain=input in-interface=WAN2 action=accept
add chain=forward in-interface=WAN1 action=accept
add chain=forward in-interface=WAN2 action=accept
add chain=forward src-address=192.168.0.100 action=accept
add chain=forward action drop
/ip firewall nat
add chain=dstnat protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.0.100 to-ports=80

Who is online

Users browsing this forum: megabytenet and 191 guests