3proxy
3proxy copied to clipboard
3proxy host not found or connection failed
3proxy 0.9.3 стоит на Win7 32 как служба. комп win7 - ip 192.168.88.233 модем e3372 - ip 192.168.8.100(шлюз 192.168.8.1) правила в фаервол добавлены запрос по http - 502 Bad Gateway Host Not Found or connection failed запрос по https - Unable to connect An error occurred during a connection to google.com при обращении на 192.168.8.1 открывается админка модема.
А что в логах? https://3proxy.ru/howtor.asp
1690268654.211 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 488 1448 0 GET http://192.168.8.1/api/monitoring/status HTTP/1.1 1690268654.241 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 501 531 0 GET http://192.168.8.1/api/monitoring/check-notifications HTTP/1.1 1690268654.281 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268654.281 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 495 435 0 GET http://192.168.8.1/api/dialup/mobile-dataswitch HTTP/1.1 1690268654.311 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268654.451 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 487 538 0 GET http://192.168.8.1/api/net/current-plmn HTTP/1.1 1690268657.201 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 488 1448 0 GET http://192.168.8.1/api/monitoring/status HTTP/1.1 1690268657.231 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 501 531 0 GET http://192.168.8.1/api/monitoring/check-notifications HTTP/1.1 1690268657.261 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 495 435 0 GET http://192.168.8.1/api/dialup/mobile-dataswitch HTTP/1.1 1690268657.261 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268657.301 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268657.421 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 487 538 0 GET http://192.168.8.1/api/net/current-plmn HTTP/1.1 1690268660.291 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 498 518 0 GET http://192.168.8.1/api/monitoring/converged-status HTTP/1.1 1690268661.191 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 488 1448 0 GET http://192.168.8.1/api/monitoring/status HTTP/1.1 1690268661.231 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 501 531 0 GET http://192.168.8.1/api/monitoring/check-notifications HTTP/1.1 1690268661.261 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 495 435 0 GET http://192.168.8.1/api/dialup/mobile-dataswitch HTTP/1.1 1690268661.261 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268661.351 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268661.481 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 487 538 0 GET http://192.168.8.1/api/net/current-plmn HTTP/1.1 1690268664.211 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 488 1448 0 GET http://192.168.8.1/api/monitoring/status HTTP/1.1 1690268664.251 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 501 531 0 GET http://192.168.8.1/api/monitoring/check-notifications HTTP/1.1 1690268664.281 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 495 435 0 GET http://192.168.8.1/api/dialup/mobile-dataswitch HTTP/1.1 1690268664.281 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268664.341 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics HTTP/1.1 1690268664.471 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 487 538 0 GET http://192.168.8.1/api/net/current-plmn HTTP/1.1 1690268667.211 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 488 1448 0 GET http://192.168.8.1/api/monitoring/status HTTP/1.1 1690268667.241 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 501 531 0 GET http://192.168.8.1/api/monitoring/check-notifications HTTP/1.1 1690268667.271 PROXY.8851 00000 - 192.168.88.223:50816 192.168.8.1:80 495 435 0 GET http://192.168.8.1/api/dialup/mobile-dataswitch HTTP/1.1 1690268667.271 PROXY.8851 00000 - 192.168.88.223:50814 192.168.8.1:80 500 777 0 GET http://192.168.8.1/api/monitoring/traffic-statistics
когфиг
monitor D:\3proxy\bin\3proxy.txt
log c:\3proxy\logs\3proxy.log D logformat "L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" timeouts 1 5 30 60 180 1800 15 60 proxy -n -a -p8851 -i192.168.88.223 -e192.168.8.100 flush
По этим логам у тебя все в порядке, но в них у тебя только доступ на 192.168.8.1, ищи логи по проблемным запросам
когфиг
monitor D:\3proxy\bin\3proxy.txt
log c:\3proxy\logs\3proxy.log D logformat "L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" timeouts 1 5 30 60 180 1800 15 60 proxy -n -a -p8851 -i192.168.88.223 -e192.168.8.100 flush
That is if you have only one huawei modem, 2 or more you need proper routes and probably use interfaces...
If you're jsut using php/curl to make 192.168.8.100 requests you're better of just setting interface as param, ie curl --interface eth0 to access 192.168.8.100 on modem interface, etc
If you're trying to proxy modem interface then... well I'd probably still use interfaces instead of IPs, tho ubuntu can change them if you bring up/down modems so you gotta keep track of that too and update 3proxy configs...