Community discussions

MikroTik App
 
wifipn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sun Jul 23, 2006 5:01 am

Web Proxy + 2 Gateways Trouble

Sat Apr 21, 2007 5:26 am

I have two gateways, one for P2P traffic and one for normal surfing traffic..
I'm trying to make the Web Proxy run on the web gateway but it's not going..

I followed instructions from other users...

Mangle Rule:

add chain=output protocol=tcp dst-port=8080
action=mark-routing new-routing-mark=Web passthrough=no

NAT Rule:

add chain=dstnat protocol=tcp dst-port=80
action=redirect to-ports=8080

And the result I got was that pages would start to load but will halt at "Website found. Waiting for reply..." and would never get past that point. Turn the rules off and everything goes fine.. what's missing/incorrect?
 
bawolek
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Thu Mar 29, 2007 3:33 pm
Location: Poland/Wroclaw

Sat Apr 21, 2007 9:20 pm

ip web-proxy> set enabled=yes port=8080 max-cache-size=1048576
 
wifipn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sun Jul 23, 2006 5:01 am

Sun Apr 22, 2007 2:21 am

Yes sorry I forgot to mention I already enabled the Web Proxy, still no go..
 
bawolek
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Thu Mar 29, 2007 3:33 pm
Location: Poland/Wroclaw

Sun Apr 22, 2007 10:13 pm

well I thing that your web-proxy is rouning on incorect interface,

but I dont known how to change interface for proxy :(
 
sroa
just joined
Posts: 14
Joined: Mon Dec 19, 2005 10:09 pm
Location: Puebla Mexico
Contact:

Thu Apr 26, 2007 8:07 pm

Why dont you try this

add chain=output protocol=tcp dst-port=80 (instead of 8080)
action=mark-routing new-routing-mark=Web passthrough=no


You are using port 8080 from clients to proxy but your proxy is connecting to port 80 of any web server in the internet.
 
wifipn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sun Jul 23, 2006 5:01 am

Thu Apr 26, 2007 8:44 pm

That rule is already in NAT, so I'm guessing I should try putting it in Mangle?
 
epproach_lyle
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Tue Jul 10, 2007 1:13 am
Location: North Carolina, USA
Contact:

Re: Web Proxy + 2 Gateways Trouble

Fri Jul 13, 2007 6:31 am

bump because i need to know :)