Доброе утро, я пытаюсь установить прокси с именем Squid 3 на моем VPS на lws, с ubuntu 16.04
У меня установлен squid 3 и изменить /etc/squid/squid.conf, чтобы удалить comment и
acl all src 0.0.0.0/0
http_access allow all
and
visible_hostname vps47524
Полный файл:
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl all src 0.0.0.0/0
http_access allow all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
debug_options ALL,1 33,2 28,9
visible_hostname vps47524
У меня нет активного брандмауэра, и я перезагружаю свой iptable
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Но с firefox на порту 3128 sock 5 «Прокси-сервер отказывается от соединений»
И из VPS я не могу сам telnet:
telnet localhost 3128
Trying 127.0.0.1...
telnet: Unable to connect to remote host: No route to host
Но я могу пинговать себя и apache serveur и nodeJs работают.
Поэтому я не знаю, что делать, чтобы заставить прокси работать. Есть идеи ? спасибо.