error openvpn with squid3

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
User avatar
pazzovalerio
OpenVpn Newbie
Posts: 9
Joined: Fri Jan 19, 2018 8:28 pm

error openvpn with squid3

Post by pazzovalerio » Tue Dec 11, 2018 2:35 pm

I have a problem with a server my openvpn server with squid 3. without specifying in the client.ovpn http-proxy-retry
http-proxy xx.xx.xx.xx 3128 connects quietly if you specify this no.I believe it is a problem of configuration of squid I am attaching all the configuration files

server.cong

port 1194
proto tcp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
# Drop Users
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem


client.ovpn

client
dev tun
proto tcp
sndbuf 0
rcvbuf 0
remote 1.1.1.1 1194
resolv-retry infinite
nobind
auth-user-pass
http-proxy-retry
http-proxy 1.1.1.1 3128
http-proxy-option CUSTOM-HEADER X-Online-Host myhost.host.it
http-proxy-option CUSTOM-HEADER Host myhost.host.it
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
<ca>


squid.conf

acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl SSL_ports port 1194 # OpenVPN
acl Safe_ports port 1194 # OpenVPN
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access allow all

http_port 1.1.1.1:3128
cache_dir ufs /var/spool/squid 100 16 256
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 . 0 20% 4320

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: error openvpn with squid3

Post by TinCanTech » Tue Dec 11, 2018 3:30 pm

What is the problem ?

User avatar
pazzovalerio
OpenVpn Newbie
Posts: 9
Joined: Fri Jan 19, 2018 8:28 pm

Re: error openvpn with squid3

Post by pazzovalerio » Wed Dec 12, 2018 10:36 am

basically if I insert this part in the client.ovpn it does not connect

http-proxy-retry
http-proxy 1.1.1.1 3128
http-proxy-option CUSTOM-HEADER X Online-Host myhost.host.it
http-proxy-option CUSTOM-HEADER Host myhost.host.it



Inviato dal mio iPhone utilizzando Tapatalk

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: error openvpn with squid3

Post by TinCanTech » Wed Dec 12, 2018 12:16 pm

What does the log say.

viewtopic.php?f=30&t=22603

Post Reply