RE: PAT Problem

From: Neil . <>
Date: Fri, 22 Jan 2010 11:10:44 +0000

Hi Carlos
Try something simple like:
pen 80 -w /var/www/html/stats.html -l /var/www/html/stats.log
This produces a stats.log for me, I believe the other html stats need more data to generate.
[root_at_eee ~]# ls -l /var/www/html/stats.log-rw-r--r-- 1 root root 0 2010-01-22 12:06 /var/www/html/stats.log
Good luck !

Date: Thu, 21 Jan 2010 14:35:04 -0800
Subject: Re: PAT Problem

I found this pen function interesting, thats means I can redirect some IP using a port fowarding on my server with pen.
 I need to redirect some LAN IPs trought a public IP. For that I use:
pen 8887
pen 8888
And when I try to access from internet I type on the browser:
200.XXX.XXX.XXX:8887 and
but sometimes I get some errors, so I need to get a log or better, a web page with the statistics.
But I don't kow how and I can't find a HOWTO that explains that.
some commands I have tryed without success are:
pen -w /var/www/statics.html 8887
pen -w /var/www/statics.html 8887
pen -l logstadistics 8887
Any help will be apreciated, thanks.

 Carlos Cornejo

From: Neil . <>
To:; pen list <>
Sent: Tue, January 19, 2010 1:27:33 AM
Subject: RE: PAT Problem

Looks like you have a problem with the basic syntax of pen:

Here is a plain example:



/usr/local/bin/pen 80 -b 3 -r

To get more help on the usage, run pen with no args:

[root_at_eee wireless]# pen
  pen [-C addr:port] [-X] [-b sec] [-S N] [-c N] [-e host[:port]] \
 [-t sec] [-x N] [-w dir] [-HPWadfhrs] \
          [-o option] \
 [-E certfile] [-K keyfile] \
 [-G cacertfile] [-A cacertdir] \
 [-Z] [-R] [-L protocol] \
 [host:]port h1[:p1[:maxc1[:hard1[:weight1[:prio1]]]]] [h2[:p2[:maxc2[:hard2[:weight2[:prio2]]]]]] ...

  -B host:port abuse server for naughty clients
  -C port control port
  -T sec tracking time in seconds (0 = forever) [0]
  -H add X-Forwarded-For header in http requests
  -P use poll() rather than select()
  -W use weight for server selection
  -X enable 'exit' command for control port
  -a debugging dumps in ascii format
  -b sec blacklist time in seconds [30]
  -S N max number of servers [16]
  -c N max number of clients [2048]
  -d debugging on (repeat -d for more)
  -e host:port emergency server of last resort
  -f stay in foregound
  -h use hash for initial server selection
  -j dir run in chroot
  -F file name of configuration file
  -l file logging on
  -n do not make sockets nonblocking
  -r bypass client tracking in server selection
  -s stubborn selection, i.e. don't fail over
  -t sec connect timeout in seconds [5]
  -u user run as alternative user
  -p file write pid to file
  -x N max number of simultaneous connections [256]
  -w file save statistics in HTML format in a file
  -o option use option in penctl format
  -E certfile use the given certificate in PEM format
  -K keyfile use the given key in PEM format (may be contained in cert)
  -G cacertfile file containing the CA's certificate
  -A cacertdir directory containing CA certificates in hashed format
  -Z use SSL compatibility mode
  -R require valid peer certificate
  -L protocol ssl23 (default), ssl2, ssl3 or tls1

  pen smtp mailhost1:smtp mailhost2:25 mailhost3

Subject: PAT Problem
Date: Mon, 18 Jan 2010 17:19:37 -0500

I have install pen on debian with: apt-get install pen
I can't see the /etc/ archive
I'm using pen to redirect some IPs, one is on the same server (i have various network cards on the same server) and 2 others are on the same LAN. It's kind of Port Address Translation.
I used the commands:
pen 1111
pen 2222
pen 2223
the idea was to open those webservers directly from a Public IP I have on the same server.
Frist time I tryed it work fine, after it stops working. I don't have the /etc/init.d/pen restart command avaible (maybe for te instaltion with the apt)
What can I do to get working back??
How I can create a log archive or webstats?? (I'm not good with command line)

Hotmail: Powerful Free email with security by Microsoft. Get it now.

Do you have a story that started on Hotmail? Tell us now
Do you have a story that started on Hotmail? Tell us now
Received on Fri Jan 22 2010 - 12:10:46 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 22 2010 - 12:10:48 CET