Community discussions

MikroTik App
 
User avatar
Adam McLaughlin
Member Candidate
Member Candidate
Topic Author
Posts: 149
Joined: Sat Mar 31, 2007 5:36 am
Location: Santa Rosa, California
Contact:

Port Specifications on a Masquerade Firewall

Fri Jun 08, 2007 4:55 am

Hey Guys,

Simple question really.

After I get a NAT firewall setup in the common way using masquerading, what do I have to do to enable all traffic through all ports?

Clients can't check their mail, they can only surf the web, etc. with the example NAT method.

Any suggestions? I think it ought to be simple.

Adam
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7199
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Port Specifications on a Masquerade Firewall

Fri Jun 08, 2007 12:19 pm

By default there are no rules that are blocking traffic on ports.
Check firewall filter rules, probably you have added rule that blocks other ports.
 
User avatar
Adam McLaughlin
Member Candidate
Member Candidate
Topic Author
Posts: 149
Joined: Sat Mar 31, 2007 5:36 am
Location: Santa Rosa, California
Contact:

Re: Port Specifications on a Masquerade Firewall

Fri Jun 08, 2007 5:42 pm

No, it is out of the box stock with the exception of it being configured with that src-nat masuqerade rule across the two devices.

Any other ideas?

Adam
 
User avatar
andrewluck
Forum Veteran
Forum Veteran
Posts: 700
Joined: Fri May 28, 2004 9:05 pm
Location: Norfolk, UK

Re: Port Specifications on a Masquerade Firewall

Fri Jun 08, 2007 7:22 pm

Post your NAT setup here.

Regards

Andrew
 
mazpiroz
just joined
Posts: 7
Joined: Sat Jun 09, 2007 4:25 am

Re: Port Specifications on a Masquerade Firewall

Wed Jun 20, 2007 5:31 pm

I've exactly the same problem, and here you have my nat config:

admin@MikroTik] > ip firewall export
# jun/20/2007 14:28:27 by RouterOS 2.9.6
# software id = XITP-3WT
#
/ ip firewall nat
add chain=srcnat action=masquerade comment="" disabled=no
/ ip firewall connection tracking
set enabled=yes tcp-syn-sent-timeout=2m tcp-syn-received-timeout=1m \
tcp-established-timeout=5d tcp-fin-wait-timeout=2m \
tcp-close-wait-timeout=1m tcp-last-ack-timeout=30s \
tcp-time-wait-timeout=2m tcp-close-timeout=10s udp-timeout=30s \
udp-stream-timeout=3m icmp-timeout=30s generic-timeout=10m
/ ip firewall service-port
set ftp ports=21 disabled=no
set tftp ports=69 disabled=no
set irc ports=6667 disabled=no
set h323 disabled=yes
set quake3 disabled=no
set mms disabled=no
set gre disabled=yes
set pptp disabled=yes

Thanks in advance
 
User avatar
andrewluck
Forum Veteran
Forum Veteran
Posts: 700
Joined: Fri May 28, 2004 9:05 pm
Location: Norfolk, UK

Re: Port Specifications on a Masquerade Firewall

Wed Jun 20, 2007 5:40 pm

You need to specify an interface in the masquerade nat rule. e.g. from the manual
[admin@MikroTik] ip firewall nat> add chain=srcnat action=masquerade out-interface=Public
Regards

Andrew
Last edited by andrewluck on Thu Jun 21, 2007 6:46 pm, edited 1 time in total.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Port Specifications on a Masquerade Firewall

Wed Jun 20, 2007 5:47 pm

i would also suggest to buy mikrotik RouterOS license, but if you want to try RouterOS then install latest version it will be usable for 24 hours (actual uptime of the router).