2014-10-12 3 views

답변

0

/ip proxy 
set cache-administrator="Mehdi Haghshenas" enabled=yes max-cache-size=none \ 
    parent-proxy=0.0.0.0 
/ip proxy access 
add action=deny dst-address=!x.x.x.x redirect-to=x.x.x.x 

XXXX는 서버가 다음

를 사용하여 프록시 서버에 HTTP 요청을 전달하기 위해 NAT를 추가해야합니다

에 전달하려는 것입니다

/ip firewall nat 
add action=redirect chain=dstnat disabled=yes dst-address-list=!LocalIP dst-port=\ 
    80 protocol=tcp src-address-list=LocalIP to-ports=8080 
/ip firewall address-list 
add address=192.168.0.0/24 list=LocalIP 
add address=192.168.1.0/24 list=LocalIP 
+1

HTTP 트래픽을 프록시 서버로 리디렉션하는 것을 잊지 마세요! –

+0

@VahidAlimohamadi 덕분에 다른 답변을 귀하의 팁, 따라서 나는 내 대답을 추가하지 않습니다 –

0

모든 HTTP 트래픽을 특정 IP 주소로 리디렉션하는 스크립트를 작성하고 routerOS 스케줄러를 사용하여 하루 중 특정 시간에이 규칙을 실행 한 다음 다른 시간에 해당 규칙을 제거하는 다른 스크립트를 작성하십시오. 샘플이 필요하면 알려주세요. 웹 프록시 서버 주소에 대한 HTTP 요청을 전달하기 위해 웹 프록시를 사용