root@firewall1:~ # netstat -aL | grep 3128tcp4 0/0/128 firewall1.3128 tcp6 0/0/128 localhost.3128 tcp4 0/0/128 localhost.3128 root@firewall1:~ # netstat -aL | grep 3129tcp6 0/0/128 localhost.3129 tcp4 0/0/128 localhost.3129
[root@system1 ~]# echo $http_proxyhttp://192.168.1.1:3128[root@system1 ~]# echo $https_proxyhttps://192.168.1.1:3129[root@system1 ~]# echo $no_proxy192.168.1.1,.localdomain[root@system1 ~]# curl -vvv https://google.bg* About to connect() to proxy 192.168.1.1 port 3129 (#0)* Trying 192.168.1.1...* Connected to 192.168.1.1 (192.168.1.1) port 3129 (#0)* Establish HTTP proxy tunnel to google.bg:443> CONNECT google.bg:443 HTTP/1.1> Host: google.bg:443> User-Agent: curl/7.29.0> Proxy-Connection: Keep-Alive> * Proxy CONNECT aborted* Connection #0 to host 192.168.1.1 left intactcurl: (56) Proxy CONNECT aborted[root@system1 ~]# ncat -z -v 192.168.1.1 3129Ncat: Version 7.50 ( https://nmap.org/ncat )Ncat: Connected to 192.168.1.1:3129.Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.