Community discussions

MikroTik App
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Not re-directing but modifying traffic...

Tue Jul 24, 2007 11:47 pm

Hi,
We have an office network. We'd like to intercept traffic going to
http://www.ebay.com

and slightly modify the url to:

http://rover.ebay.com/rover/1/711-1751- ... id=2316294

This will redirect them to our ebay store.

How is this possible to do?
Basically modify a url on the fly

Thanks
Phil
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Not re-directing but modifying traffic...

Fri Jul 27, 2007 3:16 am

You need to use a proxy in order to remap URLs. I've never done this in MikroTik, but the documentation should tell you how.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Not re-directing but modifying traffic...

Fri Jul 27, 2007 8:51 am

Use 'transparent proxy' that allows to avoid proxy browser configuration for end user,
add rule to access list that will contain,
'ip proxy access dst-host=...ebay... redirect-to=...rover.ebay...'.
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: Not re-directing but modifying traffic...

Sat Jul 28, 2007 8:26 pm

So my router for the office can also be a proxy server? and not use up the resources of the router?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Not re-directing but modifying traffic...

Mon Jul 30, 2007 9:29 am

Yes, MikroTik RouterOS can provide you with proxy support.
Note, that proxy does not make that proxy is not using upstream resources at all.
Proxy can cache either HTTP (static pages and images), FTP protocol, other traffic is not cached by the proxy.
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: Not re-directing but modifying traffic...

Tue Jul 31, 2007 6:00 am

Tried to use

'ip proxy access dst-host=...ebay... redirect-to=...rover.ebay...'.

Error no command redirect-to
 
User avatar
cholegm
Frequent Visitor
Frequent Visitor
Posts: 57
Joined: Thu Jul 19, 2007 7:43 pm
Location: Gornji Milanovac, Serbia
Contact:

Re: Not re-directing but modifying traffic...

Tue Jul 31, 2007 9:01 am

In this post you can find it http://forum.mikrotik.com/viewtopic.php?f=2&t=17411

But here you are:
You must have instaled webproxy-test package!!!
/ ip proxy access
add action=deny dst-host="www.domain.com" redirect-to="www.mydomain.com" 


Regards,
Mladen
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: Not re-directing but modifying traffic...

Thu Aug 02, 2007 3:18 pm

Ok I tried this
[admin@disd] ip proxy access> add action=deny dst-host="www.myspace.com" redirect-to="www.dictionary.com"

and get this error

no such argument (redirect-to)
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Not re-directing but modifying traffic...

Thu Aug 02, 2007 3:23 pm

This error is shown, because 'web-proxy test' package is not installed.
Make sure 'system package print' gives you,

system package print
6 webproxy-test

and not,
system package print
6 X webproxy-test
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: Not re-directing but modifying traffic...

Thu Aug 02, 2007 3:43 pm

0 routeros-x86 2.9.44
1 system 2.9.44
2 X rstp-bridge-test 2.9.44
3 web-proxy 2.9.44
4 ups 2.9.44
5 synchronous 2.9.44
6 X webproxy-test 2.9.44
7 routerboard 2.9.44
8 ntp 2.9.44
9 wireless 2.9.44
10 X wireless-legacy 2.9.44
11 hotspot 2.9.44
12 dhcp 2.9.44
13 X routing-test 2.9.44
14 routing 2.9.44
15 ppp 2.9.44
16 security 2.9.44
17 advanced-tools 2.9.44
 
plcoomer
newbie
Topic Author
Posts: 38
Joined: Fri Nov 18, 2005 3:41 pm
Location: Fort Worth, Texas, USA
Contact:

Re: Not re-directing but modifying traffic...

Fri Aug 03, 2007 7:49 am

So how do you get Web Proxy Test?
 
nordex
Member Candidate
Member Candidate
Posts: 103
Joined: Fri Mar 23, 2007 7:46 pm
Location: Croatia

Re: Not re-directing but modifying traffic...

Fri Aug 03, 2007 5:03 pm

'X' means it is disabled.

select it and then click enable and then restart system.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Not re-directing but modifying traffic...

Mon Aug 06, 2007 2:24 pm

system package enable webproxy-test
system reboot

Who is online

Users browsing this forum: Sampsonfarms0 and 77 guests