All pastes #256523 Raw Edit

Anonymous

public text v1 · immutable
#256523 ·published 2006-11-24 10:16 UTC
rendered paste body
#!/usr/bin/perl

use strict;
use warnings;

use HTTP::Proxy qw(:log);

open(LOGFH, '>./inetlog') || warn('Unable to log:'. $!);

my $l = HTTP::Proxy->new();
my $v = LWP::UserAgent->new();

$v->proxy(['http','ftp','https'],'http://10.10.28.101:3128');
$v->protocols_allowed(['http','https','ftp']);
$l->agent($v);
$l->port(3128);
$l->host(undef);
$l->logfh(*LOGFH);
$l->logmask(ALL);
$l->via('');
$l->x_forwarded_for(undef);

$l->start();