i'm trying curl request website proxy in option , seems works. how can verify if website receive proxy ip? have installed fiddler isn't helping me. suggestion? want see if website see ip or proxy ip. in advance
variant 1: external service httpbin.org
you might use http://httpbin.org allows display http-headers request. website has nice examples using curl.
curl http://httpbin.org/get would return example headers , origin ip.
variant 2: capturing network traffic
if not want trust external service need capture network traffic. need run either on machine running proxy or webserver. because cannot capture proxy sends webserver client.
analysis , capture using wireshark
wireshark (https://www.wireshark.org) tool need capture , analyse network traffic. if machine has graphical user interface can use capture network traffic, otherwise use tcpdump (see below)
select interface (e.g. wifi or ethernet interface) , start capture, should see network activity scrolling in main window.
in order filter http-traffic enter "http" in "filter" input box above , click "apply". should vary headers such "x-forwarded-for" which, depending on proxy's configuration, might reveal client's ip address. might helpful further filter data if machine experiencing lot of traffic. can filter requests involving ips using ip.addr i.e. use "http , ip.addr = 1.2.3.4" filter http-requests either recipient or sender specified ip. please note display filter, performance reasons might use capture filter if know looking for.
capturing on command-line using tcpdump
if on server without gui, can use tool tcpdump write network traffic file can opened wireshark later on machine.
tcpdump host 1.2.3.4 , port 80 -w traffic.pcap the above capture traffic from/to ip 1.2.3.4 , from/to port 80 , write file traffic.pcap.
Comments
Post a Comment