RE: PAT Problem

From: Neil . <>
Date: Tue, 19 Jan 2010 07:27:33 +0000

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 usage: 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
example: 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.
Send us your Hotmail stories and be featured in our newsletter
Received on Tue Jan 19 2010 - 08:27:35 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 19 2010 - 08:27:37 CET