Jump to content
  • 0

web proxy за два доставчика ?


SirDido

Question

7 answers to this question

Recommended Posts

  • 0

 

 3   ;;; Transperent proxy for DNS requests

     chain=dstnat action=redirect dst-port=53 protocol=udp 

 4   ;;; Transperent proxy for NTP requests

     chain=dstnat action=redirect dst-port=123 protocol=udp 

10  ;;; Proxy for Local

     chain=dstnat action=redirect to-ports=3128 in-interface=Local 

     dst-port=80 protocol=tcp 

какво значение имат доставчиците след като ти трябва да укажеш че заявките идват от локалния интерфейс/IP към порт 80-tcp

Теория - това е когато знаете всичко, но нищо не работи

Практика - това е когато всичко работи, но не знаете защо

При нас съчетаваме теорията с практиката - НИЩО не работи и нямаме понятие защо!!!

Link to comment
Share on other sites

  • 0

защото аз го правя така-

/ ip web-proxy

set enabled=yes –>> to make ip web proxy enable

set src-address=0.0.0.0 –>> to make source address to access web proxy will allow

set port=8080 –>> to make port for web proxy

set hostname=”proxy.war.net.id” –>> setting for visble hostname web proxy

set transparent-proxy=yes –>> make transparant proxy enable

set parent-proxy=0.0.0.0:0–>> if we used parent proxy x

set cache-administrator=”support@somethink.org” –>> make set administrator info support

set max-object-size=4096KiB –>> maximal object can cacth with the proxy server

set cache-drive=system –>> where drive position that cache wil be saved

set max-cache-size=unlimited –>> maximal harddrive we used for cache

set max-ram-cache-size=unlimited –>> maximal ram we used for cache

2. add nat for redirect port for squid to make transparant

/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080 –>> setting

can redirect port 80 to 8080 for proxy server

/ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 action=redirect to-ports=8080 –>>

setting can redirect port 3128 to 8080 for proxy server

/ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 action=redirect to-ports=8080 –>>

setting can redirect port 8080 to 8080 for proxy server

обаче като гледам минава трафик през първия доставчик и всички адреси които са били на другия доставчик  минават пак през първия доставчик.

Сега ще пробвам дано да стане.

Link to comment
Share on other sites

  • 0

ама това как си си разделил трафика на рутера м/у двата доставчика е друга бира.

прокситор работи.

някой компютър ти прави заявка на 80-ти порт. твоя рутер я хваща и проверява дали има нещо в кеша да я изпълни, след това твоя рутер "подава" заявката към интернет през доставчика който му е "заложен" като дефаултен.

Теория - това е когато знаете всичко, но нищо не работи

Практика - това е когато всичко работи, но не знаете защо

При нас съчетаваме теорията с практиката - НИЩО не работи и нямаме понятие защо!!!

Link to comment
Share on other sites

  • 0

на Transperent proxy for DNS requests и Transperent proxy for NTP requests трябвали да задам redirect 3128 ?

DNS и NTP трябва да си останат както съм ги описал само ако са ти нужни.

Теория - това е когато знаете всичко, но нищо не работи

Практика - това е когато всичко работи, но не знаете защо

При нас съчетаваме теорията с практиката - НИЩО не работи и нямаме понятие защо!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.