瀏覽代碼

Updates proxy notes

Brad Poulton 4 年之前
父節點
當前提交
c40d9896d3
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      Proxy Notes.md

+ 11 - 1
Proxy Notes.md

@@ -1,5 +1,8 @@
 # Proxy Notes
 
+## Where are the logs?
+`cat /var/log/squid/access.log | grep 10.20.0.81`
+
 ## Splunk Query on Moose
 Where are the proxy logs?
 `index=web sourcetype="squid:access:json"`
@@ -11,4 +14,11 @@ Is my traffic making it through the proxy?
 
 Remove environmental variables and hit it with curl.
 
-`env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY -u no_proxy -u NO_PROXY curl --verbose https://dynamodb.us-gov-east-1.amazonaws.com/`
+`env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY -u no_proxy -u NO_PROXY curl --verbose https://dynamodb.us-gov-east-1.amazonaws.com/`
+
+What variables are in the actual process environment (2289 process ID)
+`tr '\000' '\n' < /proc/2289/environ`
+
+## Where are the proxy configurations?
+
+`cat /etc/profile.d/proxy.sh`