怎么设置才能启用ROS的web

2025年03月13日 00:14
有1个网友回答
网友(1):

admin@MikroTik] ip web-proxy> print
enabled: yes
address: 0.0.0.0:3128
hostname: ""
transparent-proxy: no
parent-proxy: 0.0.0.0:0
cache-administrator: "webmaster"
max-object-size: 4096 kB
max-cache-size: unlimited
status: running
reserved-for-cache: 10240 kB
[admin@MikroTik] ip web-proxy>

[admin@MikroTik] ip firewall dst-nat> print
Flags: X - disabled, I - invalid
0 src-address=192.168.0.0/32:0-65535 in-interface=8139
dst-address=!192.168.0.0/32:80 protocol=tcp icmp-options=any:any flow=""
src-mac-address=00:00:00:00:00:00 limit-count=0 limit-burst=0
limit-time=0s action=redirect to-dst-address=0.0.0.0 to-dst-port=3218

[admin@MikroTik] ip firewall dst-nat>

按上面设好web-proxy,在firewall dst-nat设置重定向就行了
摄制web-proxy不需要设置dst-nat就能用的,只要在客户机ie属性的连接属性中加上你的服务器ip和端口就行,与用外面的代理一样。

dst-nat是设置对外服务用的端口映射,例如在内网存在web服务器,需要从外面访问的话,就做80端口。