Jump to content
Калькуляторы

Web-proxy не работает как надо (Mikrotik)

/ip firewall nat
add action=redirect chain=dstnat disabled=no dst-port=0-65535 protocol=tcp \
   src-address=172.10.0.0/22 to-ports=8080
add action=masquerade chain=srcnat disabled=no src-address=172.10.0.0/22
/ip proxy
set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 \
   cache-on-disk=yes enabled=yes max-cache-size=unlimited \
   max-client-connections=600 max-fresh-time=3d max-server-connections=600 \
   parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=\
   no src-address=0.0.0.0
/ip proxy access
add action=deny disabled=no dst-host="" dst-port=80 redirect-to=\
   proxy.nm.lan src-address=172.10.0.0/22

 

Есть такое. Интерфейс внутрь смотрит который без ip адреса ибо кроме серых айпих есть юзеры с белыми и поднят PPPoE сервер. Ситуация такая.. юзер перенаправляется, но у него страница не открывается.. в строке браузера она есть (url ссылка), а в окне браузера циклическое перенаправление и такая реакция на любую страницу, которую я указываю в redirect-to=.

Edited by bicnet

Share this post


Link to post
Share on other sites

/ip firewall nat
add action=redirect chain=dstnat disabled=no dst-port=0-65535 protocol=tcp \

 

imho нужно добавить перед этим правилом правило, которое отключает redirect для clients.bicnet.ru (action=return или masquerade)

Edited by msdt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.