Community discussions

MikroTik App
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 10:31 am

dear all
this is our web proxy setting
it is not working !!!

this is the interface
Image


the web proxy
Image

the Firewall NAT
Image


the traffic is not going through the proxy redirect firewall nat rule as below !!

Image
[admin@MikroTik] /ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic 
 0    chain=dstnat action=redirect to-ports=8080 protocol=tcp 
      src-address-list=192.168.13.0/24 in-interface=ether2 dst-port=80 log=no 
      log-prefix="" 

 1    chain=srcnat action=masquerade log=no log-prefix="" 
[admin@MikroTik] /ip proxy> print
                 enabled: yes
             src-address: ::
                    port: 8080
               anonymous: no
            parent-proxy: ::
       parent-proxy-port: 0
     cache-administrator: webmaster
          max-cache-size: unlimited
   max-cache-object-size: 2048KiB
           cache-on-disk: no
  max-client-connections: 600
  max-server-connections: 600
          max-fresh-time: 3d
   serialize-connections: no
       always-from-cache: no
          cache-hit-dscp: 4
              cache-path: web-proxy

any help please?
 
User avatar
PaulsMT
MikroTik Support
MikroTik Support
Posts: 282
Joined: Tue Feb 10, 2015 3:21 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 12:13 pm

Your NAT rule will capture only port 80, coming from interface ether2, with source address 192.168.13.0/24. Make sure that NAT parameters are set correctly.

Web proxy should work fine.
 
User avatar
strods
MikroTik Support
MikroTik Support
Posts: 1625
Joined: Wed Jul 16, 2014 7:22 am
Location: Riga, Latvia

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 12:30 pm

You have specified src-address-list not src-address. I believe that you do not have address lsit on your router where name (not address) is 192.168.13.0/24. Run this command:

"/ip firewall nat set 0 !src-address-list src-address=192.168.13.0/24"

Also you must use out-interface for masquerade to avoid problems in future:
"/ip firewall nat set 0 out-interface=ether1"
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 1:28 pm

Your NAT rule will capture only port 80, coming from interface ether2, with source address 192.168.13.0/24. Make sure that NAT parameters are set correctly.

Web proxy should work fine.

can you explain please?
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 1:28 pm

You have specified src-address-list not src-address. I believe that you do not have address lsit on your router where name (not address) is 192.168.13.0/24. Run this command:

"/ip firewall nat set 0 !src-address-list src-address=192.168.13.0/24"

Also you must use out-interface for masquerade to avoid problems in future:
"/ip firewall nat set 0 out-interface=ether1"

i do not have any address list !

what should i do?

please explain
 
User avatar
strods
MikroTik Support
MikroTik Support
Posts: 1625
Joined: Wed Jul 16, 2014 7:22 am
Location: Riga, Latvia

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 1:34 pm

I gave you precise commands which you need to execute on your router to fix this issue.
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 1:37 pm

I gave you precise commands which you need to execute on your router to fix this issue.
[admin@MikroTik] > ip firewall nat set 0 out-interface=ether1                         
failure: outgoing interface matching not possible in input and prerouting chains
 
User avatar
strods
MikroTik Support
MikroTik Support
Posts: 1625
Joined: Wed Jul 16, 2014 7:22 am
Location: Riga, Latvia

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 2:10 pm

Sorry. First command was correct. Second one should be for id=1 not id=0
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 2:36 pm

Sorry. First command was correct. Second one should be for id=1 not id=0

ether1 is just for control from my PC !!
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 2:42 pm

Sorry. First command was correct. Second one should be for id=1 not id=0

ether1 is just for control from my PC !!

dear strods
sorry for bothering you

but can you help me set the web proxy correctly?

actually this is my 4th post in this forum and need to set up the proxy correctly
 
noib
Member Candidate
Member Candidate
Posts: 291
Joined: Fri Jan 25, 2013 6:04 pm
Location: France
Contact:

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 6:17 pm

People from mikrotik support have already helped you, pointing out the problem; you have to work a little also, you know...
So one more time :
You have mistaken "src-address" and "src-address-list" fields. No big deal, edit your redirect rule, put "192.168.13.0/24" in "src-address" field, then go to "Advanced" tab, remove the data in "src-address-list" and click "OK".
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 8:55 pm

People from mikrotik support have already helped you, pointing out the problem; you have to work a little also, you know...
So one more time :
You have mistaken "src-address" and "src-address-list" fields. No big deal, edit your redirect rule, put "192.168.13.0/24" in "src-address" field, then go to "Advanced" tab, remove the data in "src-address-list" and click "OK".

thank you for your reply ...

but when i ask for more help it mean that i did what they told me and its not working till now !!

so is it mean that the support only one time or what ?!

thanks
 
andriys
Forum Guru
Forum Guru
Posts: 1527
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 10:52 pm

so is it mean that the support only one time or what ?!
This is a user forum. Nobody is obliged to provide you with support services here. If you want to contact the official Mikrotik support, you should email you request and/or questions to support@mikrotik.com.
 
GeekNerd
newbie
Topic Author
Posts: 44
Joined: Tue Nov 10, 2015 9:37 pm

Re: Web Proxy not working .. with screenshoot

Tue Nov 17, 2015 10:55 pm

so is it mean that the support only one time or what ?!
This is a user forum. Nobody is obliged to provide you with support services here. If you want to contact the official Mikrotik support, you should email you request and/or questions to support@mikrotik.com.

thanks for your reply, but i'm confused! where is the support services in my question? can you explain please?
 
noib
Member Candidate
Member Candidate
Posts: 291
Joined: Fri Jan 25, 2013 6:04 pm
Location: France
Contact:

Re: Web Proxy not working .. with screenshoot

Thu Nov 19, 2015 10:59 am

How complicated..
You had a problem and posted in a user forum. People (some from Mikrotik support, check their details in the left column) saw that problem and showed you where the problem was. Problem solved.

RouterOS is very rich, you can do tons of stuff with it, but the counterpart is that it is easy to do configuration mistakes. That is why you have to spend some time to learn how it works and why your initial config failed.
Now, if you have no idea of the difference between src-adress and src-address-list, i suggest you read documentation and understand what was your mistake; or get a training with some nearby Mikrotik trainer.

Who is online

Users browsing this forum: No registered users and 172 guests