Comments (11)
Thank you for using pcaphar. However, I don't think I understand your request.
What are the problems do you have when proxying? How do you config you proxy?
Original comment by [email protected]
on 14 Dec 2012 at 8:59
from pcaphar.
I run pcaphar using the dev version of google app engine. The exact command I
use is: screen -d -m dev_appserver.py --port=8081 --address=172.28.4.52 src/
This binds to an internal IP and port 8081 of my network. The machine where
pcaphar is running also runs other http services on other non standard ports.
To deal with this I have Apache running a reverse proxy on port 80. I would
like to have http://hostname/pcap2har/ reverse proxied to http://hostname:8081/
To do this without changing anything inside of pcaphar, I would need to rewrite
every url and resource on the fly using mod_proxy_html. This is the httpd
configuration I tried to use to do this: http://pastebin.com/2eAeypX9 but it
did not work consistently. The harviewer portion required multiple page reloads
to load a complete waterfall with css etc.
If I could run pcaphar at http://hostname:8081/pcap2har/ then proxying it to be
at http://hostname/pcap2har would be much easier.
To do this, I tried to modify the app.yaml file like so:
http://pastebin.com/LjWgYbT2
However this will still not work, and requires further modification of the
pcaphar.py file. At that point, it becomes extremely difficult to manage.
Especially if this software package is ever updated.
Original comment by [email protected]
on 14 Dec 2012 at 10:13
from pcaphar.
Just wanted to check in to see if my explanation made sense or if you need more
information.
Original comment by [email protected]
on 15 Jan 2013 at 10:54
from pcaphar.
Thanks for the following up. I have tried myself for proxying and am working on
a fix to make it easy for proxying. I have a working prototype now, will update
when it is ready.
Original comment by [email protected]
on 16 Jan 2013 at 1:35
from pcaphar.
Thanks for digging further into it. I am really excited to see this get fixed!
Original comment by [email protected]
on 4 Feb 2013 at 7:56
from pcaphar.
I will be updating the source code with this week. Thanks for your patience. I
have working version of proxy for testing at http://a.instwave.com/pcap2har/.
Let me know if you encounter any problems.
Original comment by [email protected]
on 4 Feb 2013 at 8:49
from pcaphar.
Tested it with some basic content and it worked without issue. Thanks much!
Looking forward to the new commit.
Original comment by [email protected]
on 8 Feb 2013 at 12:28
from pcaphar.
Checked code in as of r59.
Original comment by [email protected]
on 8 Feb 2013 at 7:28
- Changed state: Fixed
from pcaphar.
I set this up, and it works fine as long as I proxy hostname:8081/ to
hostname:80/
But hostname:8081/ to hostname:80/pcap2har does not work after submitting the
har file. It redirects to hostname:80/view?hash_str=HASH
Could you please share the proxy configuration you use in the
http://a.instwave.com/pcap2har/ example?
Original comment by [email protected]
on 12 Feb 2013 at 1:20
from pcaphar.
I just wanted to follow up on this to see if you would be willing to share your
proxy config.
Original comment by [email protected]
on 8 Aug 2013 at 10:50
from pcaphar.
Sorry for the late reply, I have to dig up to foudn the config. Here it is:
RewriteEngine on
RewriteRule ^/pcap2har$ /pcap2har/ [R]
ProxyRequests Off
ProxyPass /pcap2har/ http://pcapperf.appspot.com/
ProxyPassReverse /pcap2har/ http://pcapperf.appspot.com/
This is just for my test, so the whole config is very simple. I copy and paste
it here for your reference:
$ cat /etc/apache2/sites-enabled/001-proxy
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
RewriteEngine on
RewriteRule ^/pcap2har$ /pcap2har/ [R]
ProxyRequests Off
ProxyPass /pcap2har/ http://pcapperf.appspot.com/
ProxyPassReverse /pcap2har/ http://pcapperf.appspot.com/
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
#LogLevel debug
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Original comment by [email protected]
on 12 Aug 2013 at 1:59
from pcaphar.
Related Issues (20)
- DNS timing is not populated in HAR HOT 1
- Page break up HOT 2
- pcap2har silently drops request/response if it cannot construct them
- missing HTTP POST request data HOT 6
- Webserver setup HOT 2
- Two sides capturing HOT 2
- How to install pcaphar software locally HOT 2
- standard tcpdump output doesnt appear to work HOT 5
- Cannot visit http://pcapperf.appspot.com HOT 3
- 500 server error on viewing pagespeed page HOT 1
- Can't handle multiparted HTTP POST request HOT 2
- Do not detect validity of har file based on extension HOT 1
- Error exporting a pcap file to har file HOT 2
- uploading link-type raw (raw ip) tcpdump fail processing HOT 2
- an error occurs processing ios pcap file HOT 3
- Empty statistics after uploading pcap files HOT 2
- Fails to parse a particular pcap file captured by Wireshark HOT 3
- Error occurs processing pcap HOT 1
- Can't open file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcaphar.