Extra Pictures
- May 27th, 2007
- By nino
- Write comment
|
Nino's blog
h4x the planet! |
Archive for May, 2007
I don’t know about anyone else but im a bit of a log whore, i like to keep track of them to see who’s been visiting my server and doing what. I even wrote a funky script that takes the switch -u to parse the logs and generate a unique list of visitors (so only displays the IP once) and -s to show the traffic for 1 specific ip (i know i could have used grep) but thats a story for another day.
The server i im monitoring is on my home network and is open to the net. The box is used for *cough* torrenting *cough* by my house mates and as such the log files get bloody massive!
I just found that its possible to craft your log files to only log certain traffic so i have apache set up to direct anything on 192.168.11.* to an “access_internal.log” and everything else goes to “access_external.log” this should make it slightly more manageable!
To do this you need to edit your virtual host file so under ubuntu if you go to
/etc/apache2/sites-available
This lists the settings for you sites virtual hosts around the bottom is the normal logging settings:
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined
If you replace that with:
SetEnvIf Remote_Addr "192\.168\.11" nolog CustomLog /var/log/apache2/access_internal.log combined env=nolog CustomLog /var/log/apache2/access_external.log combined env=!nolog
this should separate the internal and external logs
Nino
I had to work down in London the past Thursday and Friday. I caught the Oxford Tube from Oxford to London all is good. Damn fine service with a free breakfast and WIFI connection!
The wireless seems to be provided by Vodafone as when i tried to connect to web MSN messenger I got the nice “Content Blocked” message. As I needed on to MSN and for some reason my MSN stoped working on ubuntu (ive since had to re-install the OS) so i sat thinking of ways to get around this.
Thankfully they allowed SSH out, so for the first step i tried to SSH to my home server.. SUCCESS! I mentioned earlier about tunnels over SSH so i sat about trying to tunnel my HTTP traffic over the SSH connection
Tunnelling required you to set a local and remote port and host. The only way of telling firefox what to use is a proxy so i installed a proxy on my home box (link to how to: Linky! )
with the proxy set up all i had to do was configure the ssh tunnel and set the proxy in firefox. SUCCESS!!
I was able to access web messenger with no problems.
As mentioned before the obvious advantage to this is that everything is going down a SSH connection meaning its encrypted. To test i stuck in the trusty proxim card and started up wireshark. I could see HTTP packets floating around from the girl that was sitting in front of me, if she was logging into a site that authenticated with plain text we could have her username and password no problem! When i browsed the net wireshark reported it as SSH traffic!
oh also another advantage is sticking MSN through the proxy too is that all your chats will be encrypted
Nino
I’m quite pissed off i had a look on the CBS site for Jericho to see when the season was to finish, turns it out was last weeks episode! I had a look about the forums and it seems that there are rumblings of Jericho being canned by CBS i have no idea why this hell CBS would want to do this as its a damn excellent show and ending seasons on a cliffhanger never to finish them is pretty shitty.

Apparently CBS will release the schedule for 2007-2008 today (16th) so well see what happens
Nino
obtained a load of martial arts movies at the weekend the list includes:
So far ive watched:
Hero, damn excellent movie it tells the story from a few difference points of view using colours to denote the differences well worth the watch!
Kung Fu Hustle, not really a serious movie, more a comedy but the effects are stunning!
