Community discussions

MikroTik App
 
IMAELMoftary
just joined
Topic Author
Posts: 17
Joined: Tue Apr 05, 2011 11:09 pm

Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 4:35 am

I'm running hotspot on my LAN interface
each client have particular profile with bandwidth rate
recently i implemented a local HTTP server and setup a forum on it
i can upload and download file from it with full speed if i use the default profile
if i did not use the default profile i can't upload or download files fast
for example..
my profile is 256/64 so for normal download from the internet my speed will be 32kb
when i download from the internal server i download with the same speed 32kb

i want to separate the LAN from hotspot to download from internet with 32kb and download from internal server with maximum LAN speed, can it be???
thanks....
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 6:10 am

 
IMAELMoftary
just joined
Topic Author
Posts: 17
Joined: Tue Apr 05, 2011 11:09 pm

Re: Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 4:25 pm

thanks man for your help
i used this code but replace the IP of the network with the IP of the HTTP server
/ip firewall mangle
add chain=prerouting in-interface=LAN \
  dst-address=123.123.123.200 action=mark-packet \
  new-packet-mark=exempt-up
add chain=postrouting out-interface=LAN \
  src-address=123.123.123.200 action=mark-packet \
  new-packet-mark=exempt-down
/queue type
add name=exempt type=sfq
/queue tree
add name=hotspot-exempt-up parent=global-in \
  packet-mark=exempt-up queue=exempt max-limit=1G
add name=hotspot-exempt-down parent=global-out \
  packet-mark=exempt-down queue=exempt max-limit=1G
and works great internet downloads and uploads are limited by hotspot profiles
LAN upload use full LAN speed
LAN download use full LAN speed only if i downloaded using ftp protocol
when i download using HTTP protocol it limited by hotspot profile
i want to download from LAN with full speed using HTTP
thnx
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 5:07 pm

Add this:
/ip firewall nat add chain=pre-hotspot dst-address-type=!local hotspot=auth action=accept
 
IMAELMoftary
just joined
Topic Author
Posts: 17
Joined: Tue Apr 05, 2011 11:09 pm

Re: Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 5:28 pm

Add this:
/ip firewall nat add chain=pre-hotspot dst-address-type=!local hotspot=auth action=accept
thnx man
change nothing still the same
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot and LAN Problem, Please help

Fri Sep 30, 2011 5:41 pm

Huh. That should have worked. How about this:
/ip firewall nat add chain=pre-hotspot dst-address=123.123.123.200 action=accept
 
IMAELMoftary
just joined
Topic Author
Posts: 17
Joined: Tue Apr 05, 2011 11:09 pm

Re: Hotspot and LAN Problem, Please help

Sat Oct 01, 2011 1:46 am

it works fine
for HTTP and FTP it works greet

thnx man for your help
 
mohamedmm35
newbie
Posts: 26
Joined: Mon Jun 04, 2007 1:17 pm

Re: Hotspot and LAN Problem, Please help

Sun Apr 07, 2013 4:25 pm

thats config was work with me very willk but after i upgrade my routr os to 6.0rc12 the ftp server have the same speed for the clint. i need some help plz.

thats my config script:
ip firewall mangle
add chain=prerouting in-interface=LAN_5 \
dst-address=192.168.200.2 action=mark-packet \
new-packet-mark=exempt-up
add chain=postrouting out-interface=LAN_5 \
src-address=192.168.200.2 action=mark-packet \
new-packet-mark=exempt-down
/queue type
add name=exempt kind=sfq
/queue tree
add name=hotspot-exempt-up parent=global-in \
packet-mark=exempt-up queue=exempt max-limit=1G
add name=hotspot-exempt-down parent=global-out \
packet-mark=exempt-down queue=exempt max-limit=1G

/ip firewall nat add chain=pre-hotspot dst-address=192.168.200.2 action=accept
 
mohamedmm35
newbie
Posts: 26
Joined: Mon Jun 04, 2007 1:17 pm

Re: Hotspot and LAN Problem, Please help

Thu Apr 11, 2013 8:14 pm

up :shock:
i need some help.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Hotspot and LAN Problem, Please help

Thu Apr 11, 2013 8:22 pm

up :shock:
i need some help.
Is the interface ethernet or wireless?
Is your problem the same? Do you want to connect to hotspot interface localnet ips without logging in or bandwidth restrictions?
 
mohamedmm35
newbie
Posts: 26
Joined: Mon Jun 04, 2007 1:17 pm

Re: Hotspot and LAN Problem, Please help

Thu Apr 11, 2013 8:36 pm

my interface is ethernet,I want to connect to hotspot interface bandwidth restrictions.
 
mohamedmm35
newbie
Posts: 26
Joined: Mon Jun 04, 2007 1:17 pm

Re: Hotspot and LAN Problem, Please help

Sat Apr 13, 2013 9:41 pm

up :shock:
 
mohamedmm35
newbie
Posts: 26
Joined: Mon Jun 04, 2007 1:17 pm

Re: Hotspot and LAN Problem, Please help

Tue Apr 16, 2013 10:10 pm

I try to stdy that problm but I found no global-in or global-out in tab /queue tree i found only global parent the new ver 6.0rc13 !!! is that the Reason of the problm ????

Who is online

Users browsing this forum: Bing [Bot], NetworqAndy, voytecky and 70 guests