RE: PAT Problem

From: Neil . <neil171_at_hotmail.com>
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:

pen PORT_TO_LISTEN WEBSERVER1:PORT WEBSERVER2:PORT OPTIONS
e.g.
/usr/local/bin/pen 80 192.168.1.50:8000 192.168.1.51:8000 192.168.1.52:8000 -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
From: solrac__at_hotmail.com
To: pen_at_siag.nu
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/pen.cf 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 192.168.100.100:80

pen 2222 172.16.1.5

pen 2223 172.16.1.7

 

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
http://clk.atdmt.com/UKM/go/195013117/direct/01/
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