Community discussions

MikroTik App
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

FTP server behind mikrotik rate limit problem

Wed May 02, 2012 9:34 pm

respected Seniors.

i have configured mikrotik router os with hotspot. and i setup my ftp server behind mikrotik router os. by giving below rules.

mikrotik server
—————-
Enterface1= WAN (192.168.11.8/24)
Enterface2=LAN (192.168.200.1/24) Hotspot and DHCP
Enterface3=Ftp (192.168.250.1/24)

FTP server
———
Enterface1=
ip address=192.168.250.2
subnetmask=255.255.255.0
prefered DNS=192.168.250.1

/ip firewall mangle add chain=prerouting src-address=192.168.200.1/24 dst-address=192.168.250.0/24 action=mark-packet new-packet-mark=ftp-up

/ip firewall mangle add chain=postrouting dst-address=192.168.200.1/24 src-address=192.168.250.0/24 action=mark-packet new-packet-mark=ftp-down

/queue type add name=ftp-exempt kind=sfq

/queue tree add name=ftp-up parent=global-in packet-mark=ftp-up queue=ftp-exempt max-limit=1G

/queue tree add name=ftp-down parent=global-out packet-mark=ftp-down queue=ftp-exempt max-limit=1G


i have tried this with hotspot. but its not working well. hotspot users getting same speed limit as define in profile.

hotspot is working fine. and giving the speed limit as defined inside profile speed limit on internet trafic. after adding ftp server. i have aded above mangle and quee rules. but i m getting these 2 errors.

1= when i try to open \\server its not respond and when i type \\192.168.250.2 then ftp server goes open. why its not opening with name of the computer instead of the ip?

2= rate limit as defined in hotspot profile is still applying on the ftp trafic. even i have aded the quee rulles as you mentioned above.. but still the same.

Kindly trouble shoot about this scenario
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: FTP server behind mikrotik rate limit problem

Wed May 02, 2012 9:37 pm

respected Seniors.
1= when i try to open \\server its not respond and when i type \\192.168.250.2 then ftp server goes open. why its not opening with name of the computer instead of the ip?
The computer names are not going to travel across a routed network. That's how windows works. You have to manually add them to dns or use a seperate wins server.

2= rate limit as defined in hotspot profile is still applying on the ftp trafic. even i have aded the quee rulles as you mentioned above.. but still the same.
You need to rearrange some rules so your ftp rules get hit before the main hotspot rules.
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Thu May 03, 2012 10:53 pm

But Sir in above method there is only quees there is not other choice.

kindly guide me if there is another method to that the same?

some1 else have an idea????
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: FTP server behind mikrotik rate limit problem

Fri May 04, 2012 12:10 am

But Sir in above method there is only quees there is not other choice.

kindly guide me if there is another method to that the same?

some1 else have an idea????

you are rate-limiting in the hotspot profile? that is seperate from the queues.
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Fri May 04, 2012 10:01 am

YEa i have create multi profiles in hotspot for limiting the rate.

and when i try to access the ftp then the same rate limit is applied also for that ftp trafic. i want to exempt the rate limit for ftp server trafic. and want to assign a new rate limit for that trafic goes to ftp server.
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Sat May 05, 2012 12:47 pm

still waiting for som1s guidance
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: FTP server behind mikrotik rate limit problem

Mon May 07, 2012 11:08 am

Mark traffic for FTP server's IP.
then create queue rule to allocate unlimited bandwidth for these marked packets.
You can get some basic ideas from below URL (Its for pppoe , but you can use the same logic for hostspot users)

http://aacable.wordpress.com/2011/08/04 ... ic-queues/
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Tue May 08, 2012 2:05 pm

i have tried a lot i also try to create pcq queue

everything is working fine.but still failed to control limit via quee..

always rate limit is applied as define in hotspot profile
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Thu May 10, 2012 11:09 pm

Iz There Any solution???

kindly guide me..

still waiting for your replies Sir,

if my method is wrong then please send me again complete procedure with hotspot.
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Mon Jun 10, 2013 11:04 am

i have done the Above Senario and i successfully can open ftp server via \\ip address and also i m able to exempt rate limit of hotspot.

but now im faceing a problem. i can connect only one session at a time.

mean to say. from a client-1 pc i open \\ server and if i m coping a file from ftp server behind Mikrotik then on the same time i open \\server from another client-2 pc then it breaks prevoius session and file copying gives error "there is a problem accessing \\server"

how can i troubleshot it????
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: FTP server behind mikrotik rate limit problem

Tue Jun 11, 2013 12:15 pm

do you have any NAT rules?
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Tue Jun 11, 2013 10:28 pm

No i didnt create any NAT rule for FTP trafic.

Kindly Guide Me. What NAT rule i have to Added so that FTP server can open from multi Client computers
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: FTP server behind mikrotik rate limit problem

Wed Jun 12, 2013 1:51 pm

I meant, wrong NAT could break things.

can you ping the server when problem occurs?

p.s. \\server is not FTP. it's CIFS
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Thu Jun 13, 2013 12:01 am

ping to server ip 192.168.150.2 is continuly ok without any request time out on both pc

but when i try to copy a file from \\server on client one it start downloading. and when i try to open server from 2nd pc. then one pc 1 its gives me error "there is an error in assessing \\server"

one Thing more. when hotspot clients are not active then i feel its opens on both pcs and when more then 50 hotspot clients comes online its act as i said. one connection limit. its i feel so but not sure.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: FTP server behind mikrotik rate limit problem

Fri Jun 14, 2013 1:22 am

do you have some limiting firewall rules?..
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Fri Jun 14, 2013 8:40 am

Nop There are only those rules in firewall which is created by Hotspot

i just few drom rules to block mac address.

if my this senario is not able to resolved then kindly view this one

http://forum.mikrotik.com/viewtopic.php?f=2&t=73635

Both ways i try to use just to control file server bandwidth but both ways make me in trouble. read the above post
 
farazhamzaa
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Apr 01, 2012 9:31 am

Re: FTP server behind mikrotik rate limit problem

Mon Jun 17, 2013 11:54 am

Bump............

Who is online

Users browsing this forum: lele, pvillarragut, vic666 and 120 guests