Re: PAT Problem

From: Carlos Cornejo <carlos_cg_at_yahoo.com>
Date: Thu, 21 Jan 2010 14:35:04 -0800 (PST)

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 192.168.1.34:80 pen 8888 192.168.1.35:8080   And when I try to access from internet I type on the browser: 200.XXX.XXX.XXX:8887 and 200.XXX.XXX.XXX:8888 respectibly   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 192.168.1.34:80 pen -w /var/www/statics.html 8887 192.168.1.35:8080 pen -l logstadistics 8887 192.168.100.34     Any help will be apreciated, thanks.  Carlos Cornejo www.ccornejo.net ________________________________ From: Neil . <neil171_at_hotmail.com> To: solrac__at_hotmail.com; pen list <pen_at_siag.nu> 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: 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]   -Hadd X-Forwarded-For header in http requests   -Puse poll() rather than select()   -W    use weight for server selection   -Xenable 'exit' command for control port   -adebugging 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]   -ddebugging on (repeat -d for more)   -e host:port emergency server of last resort   -fstay in foregound   -huse hash for initial server selection   -j dir    run in chroot   -F file   name of configuration file   -l file   logging on   -ndo not make sockets nonblocking   -rbypass client tracking in server selection   -sstubborn 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. ________________________________ Do you have a story that started on Hotmail? Tell us now
Received on Thu Jan 21 2010 - 23:35:08 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 21 2010 - 23:35:10 CET