Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Aragon Gouveia
| By Eduardo Meyer [EMAIL PROTECTED]
|  [ 2008-10-30 00:04 +0200 ]
 Hello,
 
 I need to write a cgi script which will print the output from ps(1) in
 a table (html), so the average-operator can click on a KILL link and
 the cgi will send the selected signal.
 
 I need to add one ps information per column in a table (html),
 however, I found ps(1) output to be too hard to parse. There is no
 separator. I believed \t was the separator but its not.

Another option might be to mount /proc and use that instead.  See procfs(5).


Regards,
Aragon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw fwd problem - FreeBSD 5.3

2005-02-21 Thread Aragon Gouveia
Hi,

I'm running a 5.3 gateway/proxy.  To it is connected an ADSL modem with the
5.3 box performing the PPPoE, as well as a cisco router on another ethernet
interface.

My default route is out the ADSL line (tun0), but I need to be able to
forward packets matched on the basis of destination port to the cisco
router.

I've been doing this for over a year using ipfw fwd.  However, I recently
upgraded from 4.7 to 5.3 and since then my ruleset no longer works.  I've
torn the ruleset down to just basic divert and fwd rules and just can't seem
to get it behaving as it did before.

My internal LAN interface is rl0.
Interface to cisco router [9.9.9.9] is vx0 [8.8.8.8].
ADSL is connected to rl0, but after PPPoE encap it's tun0.

My rules:

150  divert 8668 tcp from 192.168.0.2 to any dst-port 22 out recv rl0
160  count log tcp from any to 1.2.3.4 dst-port 22
200  fwd log 9.9.9.9 tcp from 8.8.8.8 to any dst-port 22
210  count log tcp from any to 1.2.3.4 dst-port 22


When I ssh from 192.168.0.2 to 1.2.3.4 this is what is logged:


Feb 21 16:39:57 security.info draper kernel: ipfw: 160 Count TCP 
192.168.0.2:1604 1.2.3.4:22 in via rl0
Feb 21 16:39:57 security.info draper kernel: ipfw: 210 Count TCP 
192.168.0.2:1604 1.2.3.4:22 in via rl0
Feb 21 16:39:57 security.info draper kernel: ipfw: 160 Count TCP 8.8.8.8:1604 
1.2.3.4:22 out via tun0
Feb 21 16:39:57 security.info draper kernel: ipfw: 200 Forward to 9.9.9.9 TCP 
8.8.8.8:1604 1.2.3.4:22 out via tun0
Feb 21 16:39:57 security.info draper kernel: ipfw: 160 Count TCP 8.8.8.8:1604 
1.2.3.4:22 out via tun0
Feb 21 16:39:57 security.info draper kernel: ipfw: 200 Forward to 9.9.9.9 TCP 
8.8.8.8:1604 1.2.3.4:22 out via tun0


I am running PPP with -nat as well as a natd process.  Any packets that are
routed out the ADSL will have their source address rewritten by PPP.  The
seperate natd process is aliasing for vx0's address of 8.8.8.8.

From what I can see above, my packets are being rewritten by rule 150 and
they are matching the fwd rule at 200, but they simply aren't being
forwarded as specified in the rule.  Instead they're going via the default
route.  The end result is that the source address is rewritten again by PPP
and, of course, the packet goes out the wrong interface.

Any know what's up with this?


Thanks,
Aragon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


opera 7.21 on 5.1

2003-11-05 Thread Aragon Gouveia
Hi,

I'm trying to run Opera 7.21 with shared Qt on 5.1-RELEASE.  I'm getting the
following error:

/usr/libexec/ld-elf.so.1: /usr/lib/libc_r.so.5: Undefined symbol __thr_jtable

I have COMPAT4x installed:

$ ldconfig -r |grep libc_r
16:-lc_r.5 = /usr/lib/libc_r.so.5
68:-lc_r.3 = /usr/lib/compat/libc_r.so.3
69:-lc_r.4 = /usr/lib/compat/libc_r.so.4


Can anyone help me?


Thanks,
Aragon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port install to jail root from host system

2003-10-04 Thread Aragon Gouveia
| By Pat Lashley [EMAIL PROTECTED]
|  [ 2003-10-04 19:31 +0200 ]
 Another option is to build and package the port(s) outside the jail.
 Then nullfs mount /usr/ports in the jail directory and install
 the port(s) from the package(s).
 
 The downside of this approach is that the port needs to be installed
 on the host system to build the package.  If you have multiple virtual
 host jails which are basicly identical in configuration; you might
 want to consider setting up one to build the packages in instead of
 building them on the host system. (And then install from packages in
 the other jails.)

Thanks.  I did basically that, using the -p argument to pkg_add once the
package was built.


Regards,
Aragon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


port install to jail root from host system

2003-10-01 Thread Aragon Gouveia
Hi,

I've compiled a port as normal (apache13 in this case).  I'd like to run
'make install' now and tell it to install the package to the base of the
root filesystem of a jail from the jail's host.  Possibly also to skip
registering it in the host's package database.

Does anyone know an easy way to do this with the ports system?

I realise apache is dependant on various libraries that may not be in the
jail, but these dependancies I will resolve manually.


Thanks,
Aragon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port install to jail root from host system

2003-10-01 Thread Aragon Gouveia
The jail does not run ssh, nor any other daemons.  All it will run is apache
once it is installed.

It's not a full jail built from /usr/src.  It'll only have what's necessary
to run apache.  And apache will be the only process called from the jail
command.



| By Marc G. Fournier [EMAIL PROTECTED]
|  [ 2003-10-01 15:11 +0200 ]
 
 ssh into the jail and run the make install from inside of the jail
 
 On Wed, 1 Oct 2003, Aragon Gouveia wrote:
 
  Hi,
 
  I've compiled a port as normal (apache13 in this case).  I'd like to run
  'make install' now and tell it to install the package to the base of the
  root filesystem of a jail from the jail's host.  Possibly also to skip
  registering it in the host's package database.
 
  Does anyone know an easy way to do this with the ports system?
 
  I realise apache is dependant on various libraries that may not be in the
  jail, but these dependancies I will resolve manually.
 
 
  Thanks,
  Aragon
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


AME DynaMiTe USB ADSL Modem

2003-01-06 Thread Aragon Gouveia
Hi,

Has anyone had experience with getting an AME DynaMiTe USB ADSL modem
working under FreeBSD?  So far I've had no luck.  Any help appreciated.


Thanks,
Aragon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



jumping sound with maestro3 card

2002-11-24 Thread Aragon Gouveia
Hi,

Can anyone comment on their experience with Maestro3 cards under FreeBSD and
XFree86?

I've just recently set mine up. I'm finding sound output (xmms) incredibly
jerky. Anyone else experienced the same thing?

Any help appreciated.


Thanks,
Aragon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: jumping sound with maestro3 card

2002-11-24 Thread Aragon Gouveia
| By Adam Weinberger [EMAIL PROTECTED]
|  [ 2002-11-24 20:28 +0200 ]
 Yes. I have a Dell Inspiron 8100 laptop, p3/1.2Ghz, half a gig of RAM.
 When I play streaming mp3s the sound is fine, but playing tracks locally
 is a mess.

Mine's an Inspiron 8000, p3/1GHz, same ammount of RAM. I've found streaming
(over LAN) and locally played files to both be jumpy. Sound from movie
playback as well, which in turn is causing the video to jump too.

I've only tried xmms and mplayer so far, but with my past experience of
getting sound working properly on this system, all apps will probably do the
same thing. I had the same problems even in windows - sound playback only
became smooth after *alot* of BIOS and driver updates. I'm convinced the
Maestro3 is just a crap card. :) *sigh*


 I was going to use this laptop for my band's live shows... boot a custom
 kernel that would dedicate the system solely to becoming a sampler, but
 the blips and skips were too ridiculous.

Yea. I was hoping to wipe Windows from my notebook. Been setting up and
playing with FreeBSD 5.0-DP2 this weekend and have been VERY pleased with
how it runs on my notebook. Version 4 has always been useless for me because
of no cardbus support. The latest nvidia drivers even work pretty darn well
too.

I guess Windows will have to stay until I get a notebook with decent sound
hardware.


Thanks,
Aragon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



ipfw dynamic rules in 4.7-RC

2002-10-02 Thread Aragon Gouveia

Hi,

I'm having problems with ipfw in 4.7-RC WRT dynamic rulesets. Even though
dynamic rules are being created, these aren't being checked by check-state.
Output from 'ipfw -d show'.


00010  0 0 check-state
00100   2816   1208852 allow tcp from any to 66.8.x.y 25 keep-state setup
65535 994218 419055474 allow ip from any to any
## Dynamic rules:
00100 17 768 (T 81, slot 9) - tcp, 196.41.x.y 8220- 66.8.x.y 25
00100 743 591302 (T 300, slot 243) - tcp, 196.3.x.y 4830- 66.8.x.y 25


If it weren't for my default allow rule, smtp wouldn't work on 66.8.x.y.
Anyone experiencing the same?


Thanks,
Aragon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message