Re: bgplg failed only from web not from CLI

2009-12-01 Thread Rod Whitworth
On Wed, 02 Dec 2009 01:10:22 +0100, Alexander Hall wrote: >...and in rc.conf(8): > >"It is advisable to leave the /etc/rc.conf file untouched, and instead > create and edit a new /etc/rc.conf.local file. Variables set in this > file will override variables previously set in /etc/rc.conf." > Ther

Re: bgplg failed only from web not from CLI

2009-12-01 Thread Alexander Hall
Stuart Henderson wrote: > On 2009-11-30, ~Lst wrote: >> On Tue, Dec 1, 2009 at 12:10 AM, Alexander Hall wrote: >>> ~Lst wrote: >>> Well gentlemen... Right now, it looks like my bgplg has been running well, because of my mistake that is the running of bgpd_flags in two places.

Re: bgplg failed only from web not from CLI

2009-11-30 Thread Stuart Henderson
On 2009-11-30, ~Lst wrote: > On Tue, Dec 1, 2009 at 12:10 AM, Alexander Hall wrote: >> ~Lst wrote: >> >>> Well gentlemen... >>> Right now, it looks like my bgplg has been running well, because of my >>> mistake that is the running of bgpd_flags in two places. >>> >>> 1. The bgpd_flags that is run

Re: bgplg failed only from web not from CLI

2009-11-30 Thread ~Lst
On Tue, Dec 1, 2009 at 12:10 AM, Alexander Hall wrote: > ~Lst wrote: > >> Well gentlemen... >> Right now, it looks like my bgplg has been running well, because of my >> mistake that is the running of bgpd_flags in two places. >> >> 1. The bgpd_flags that is running via /etc/rc.conf.local >> (bgpd_

Re: bgplg failed only from web not from CLI

2009-11-30 Thread Alexander Hall
~Lst wrote: > Well gentlemen... > Right now, it looks like my bgplg has been running well, because of my > mistake that is the running of bgpd_flags in two places. > > 1. The bgpd_flags that is running via /etc/rc.conf.local > (bgpd_flags="-r /var/www/logs/bgpd.rsock" -> exactly like described in

Re: bgplg failed only from web not from CLI

2009-11-30 Thread ~Lst
On Mon, Nov 30, 2009 at 4:07 AM, Robert wrote: > On Mon, 30 Nov 2009 07:44:23 +1100 > "Rod Whitworth" wrote: > >> I don't think that he to put it there. That is where a clean >> install puts it. > > Oh, i see, my bad. > >> Have a look at your own machine. > > Not there, my upgrades handle some d

Re: bgplg failed only from web not from CLI

2009-11-29 Thread Robert
On Mon, 30 Nov 2009 07:44:23 +1100 "Rod Whitworth" wrote: > I don't think that he to put it there. That is where a clean > install puts it. Oh, i see, my bad. > Have a look at your own machine. Not there, my upgrades handle some directories differently, eg. /var/www does not get stuff that i

Re: bgplg failed only from web not from CLI

2009-11-29 Thread Rod Whitworth
On Sun, 29 Nov 2009 21:11:29 +0100, Robert wrote: >On Sun, 29 Nov 2009 11:50:30 +0700 >"~Lst" wrote: > >> On Sun, Nov 29, 2009 at 6:57 AM, Robert wrote: >> > >> > *chuckle* >> > >> > If you were running bgplgsh in a chroot from the cmdline you would >> > have to execute it by invoking /bin/bgplg

Re: bgplg failed only from web not from CLI

2009-11-29 Thread Robert
On Sun, 29 Nov 2009 11:50:30 +0700 "~Lst" wrote: > On Sun, Nov 29, 2009 at 6:57 AM, Robert wrote: > > > > *chuckle* > > > > If you were running bgplgsh in a chroot from the cmdline you would > > have to execute it by invoking /bin/bgplgsh because of the changed > > root. ;) > > > > # man chroot

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 6:57 AM, Robert wrote: > > *chuckle* > > If you were running bgplgsh in a chroot from the cmdline you would have > to execute it by invoking /bin/bgplgsh because of the changed root. ;) > > # man chroot > # sudo chroot -u www -g www /var/www /bin/bgplgsh > > Lots of patienc

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Robert
On Sun, 29 Nov 2009 04:42:34 +0700 "~Lst" wrote: > >> >> Could you tell me how is running bgplgsh under chroot ? > >> > > > I tried running bgplgsh under chroot, still works if its via CLI but > not via web. > > -bash-4.0# ps -aux | grep chroot > www 4592 0.0 0.3 1356 2120 ?? Ss

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 2:56 AM, Bret S. Lambert wrote: > On Sun, Nov 29, 2009 at 02:09:49AM +0700, ~Lst wrote: >> On Sun, Nov 29, 2009 at 2:04 AM, Bret S. Lambert >> wrote: >> > On Sun, Nov 29, 2009 at 01:56:19AM +0700, ~Lst wrote: >> > [ snippzorz ] >> > >> >> Could you tell me how is running

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Bret S. Lambert
On Sun, Nov 29, 2009 at 02:09:49AM +0700, ~Lst wrote: > On Sun, Nov 29, 2009 at 2:04 AM, Bret S. Lambert > wrote: > > On Sun, Nov 29, 2009 at 01:56:19AM +0700, ~Lst wrote: > > [ snippzorz ] > > > >> Could you tell me how is running bgplgsh under chroot ? > > > > man 1 chroot > > > > -bash-4.0# m

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 2:04 AM, Bret S. Lambert wrote: > On Sun, Nov 29, 2009 at 01:56:19AM +0700, ~Lst wrote: > [ snippzorz ] > >> Could you tell me how is running bgplgsh under chroot ? > > man 1 chroot > -bash-4.0# man 1 chroot man: no entry for chroot in section 1 of the manual. Same result

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Bret S. Lambert
On Sun, Nov 29, 2009 at 01:56:19AM +0700, ~Lst wrote: [ snippzorz ] > Could you tell me how is running bgplgsh under chroot ? man 1 chroot

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 1:47 AM, Bret S. Lambert wrote: > On Sun, Nov 29, 2009 at 01:25:03AM +0700, ~Lst wrote: >> On Sun, Nov 29, 2009 at 1:15 AM, Andre Keller wrote: >> > Am 28.11.2009 18:34, schrieb ~Lst: >> >> On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller wrote: >> >> >> >>> Am 28.11.2009 1

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Bret S. Lambert
On Sun, Nov 29, 2009 at 01:25:03AM +0700, ~Lst wrote: > On Sun, Nov 29, 2009 at 1:15 AM, Andre Keller wrote: > > Am 28.11.2009 18:34, schrieb ~Lst: > >> On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller wrote: > >> > >>> Am 28.11.2009 16:36, schrieb ~Lst: > >>> > No, I just install and followed

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 1:15 AM, Andre Keller wrote: > Am 28.11.2009 18:34, schrieb ~Lst: >> On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller wrote: >> >>> Am 28.11.2009 16:36, schrieb ~Lst: >>> No, I just install and followed manual >>> You either missed a step or run an very uncommon configu

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller wrote: > Am 28.11.2009 16:36, schrieb ~Lst: >> No, I just install and followed manual. >> > > You either missed a step or run an very uncommon configuration It might be I missed a step, Could you help where is the step that I missed ? >> And if via

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Andre Keller
Am 28.11.2009 16:36, schrieb ~Lst: > No, I just install and followed manual. > You either missed a step or run an very uncommon configuration > What I don't undertand, why ping, traceroute and show version is ok, > and anything else is failed (if it's via web). > Well "anything else" is any

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sat, Nov 28, 2009 at 10:05 PM, Andre Keller wrote: > Hi > > well I just did a installation of 4.6 and tried the bgplg thingy. > > > it took me 4 steps: > > bgpd -r /var/www/logs/bgpd.rsock > chmod 0555 /var/www/bin/bgpctl > chmod 0555 /var/www/cgi-bin/bgplg > httpd > > > Did you do anything els

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sat, Nov 28, 2009 at 5:24 PM, Rod Whitworth wrote: > > Hmmm, I just remembered another setting that isn't default: > Try ls -l /var/www/bin/bgpctl > What does that show? > -bash-4.0# ls -l /var/wwwbin/bgpctl -r-xr-xr-x 1 root bin 55048 Jul 10 10:07 /var/www/bin/bgpctl Rgds, -- ~Lst

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Joachim Schipper
On Sat, Nov 28, 2009 at 09:21:55PM +1100, Rod Whitworth wrote: > On Sat, 28 Nov 2009 10:58:39 +0100, Joachim Schipper wrote: > >/sbin/nologin -c '/var/www/bin/bgpctl -s /var/ww/logs/bgpd.rsock' > > That command does not work on my bgpd router which is working perfectly > and doesn't have the OP's

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Rod Whitworth
On Sat, 28 Nov 2009 16:45:55 +0700, ~Lst wrote: >On Sat, Nov 28, 2009 at 4:31 PM, Rod Whitworth wrote: >> On Sat, 28 Nov 2009 15:42:51 +0700, ~Lst wrote: >> >>>Yes, I know. If it's wrong via web, it should be the cmd show version >>>didn't work too. >>>Did I miss the configuration ? >> >> Let us

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Rod Whitworth
On Sat, 28 Nov 2009 10:58:39 +0100, Joachim Schipper wrote: >/sbin/nologin -c '/var/www/bin/bgpctl -s /var/ww/logs/bgpd.rsock' That command does not work on my bgpd router which is working perfectly and doesn't have the OP's problem. Executing it gives a result like his "This account is currently

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Joachim Schipper
On Sat, Nov 28, 2009 at 04:27:12PM +0700, ~Lst wrote: > On Sat, Nov 28, 2009 at 4:06 PM, Andre Keller wrote: > > Am 28.11.2009 09:45, schrieb ~Lst: > >> -bash-4.0# cat /etc/rc.conf.local > >> bgpd_flags="-r /var/www/logs/bgpd.rsock" > >> > >> The socket is working... > >> > >> -bash-4.0# bgpctl -s

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sat, Nov 28, 2009 at 4:31 PM, Rod Whitworth wrote: > On Sat, 28 Nov 2009 15:42:51 +0700, ~Lst wrote: > >>Yes, I know. If it's wrong via web, it should be the cmd show version >>didn't work too. >>Did I miss the configuration ? > > Let us see: > 1> output of mount (the command) > 2>ls -l /var/ww

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sat, Nov 28, 2009 at 4:06 PM, Andre Keller wrote: > Am 28.11.2009 09:45, schrieb ~Lst: >> >> -bash-4.0# cat /etc/rc.conf.local >> bgpd_flags="-r /var/www/logs/bgpd.rsock" >> >> The socket is working... >> >> -bash-4.0# bgpctl -s /var/www/logs/bgpd.rsock show ip bgp memory >> RDE memory statisti

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Rod Whitworth
On Sat, 28 Nov 2009 15:42:51 +0700, ~Lst wrote: >Yes, I know. If it's wrong via web, it should be the cmd show version >didn't work too. >Did I miss the configuration ? Let us see: 1> output of mount (the command) 2>ls -l /var/www/cgi-bin Those two might be enough. Please reply ONLY to the list

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Andre Keller
Am 28.11.2009 09:45, schrieb ~Lst: > > -bash-4.0# cat /etc/rc.conf.local > bgpd_flags="-r /var/www/logs/bgpd.rsock" > > The socket is working... > > -bash-4.0# bgpctl -s /var/www/logs/bgpd.rsock show ip bgp memory > RDE memory statistics > 299643 IPv4 network entries using 6.9M of memory >

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Fri, Nov 27, 2009 at 4:55 AM, Andre Keller wrote: > Hi > > Seems that you cannot connect to bgpd > > Are you sure > > bgpd_flags="-r /var/www/logs/bgpd.rsock" > > is present in your rc.conf.local? > > is the socket working? > > (bgpctl -s /var/www/logs/bgpd.rsock show rib ) > > > hth andre

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Fri, Nov 27, 2009 at 4:27 AM, Rod Whitworth wrote: > On Fri, 27 Nov 2009 03:06:59 +0700, ~Lst wrote: > >>Hi, >> >>I've already setup bgplg on my test machine, but only show version, >>ping and traceroute that is work (suggested from >>http://marc.info/?l=openbsd-misc&m=122670411001369&w=2). >>E

Re: bgplg failed only from web not from CLI

2009-11-26 Thread Andre Keller
Hi Seems that you cannot connect to bgpd Are you sure bgpd_flags="-r /var/www/logs/bgpd.rsock" is present in your rc.conf.local? is the socket working? (bgpctl -s /var/www/logs/bgpd.rsock show rib ) hth andre Am 26.11.2009 21:06, schrieb ~Lst: > Hi, > > I've already setup bgplg on my

Re: bgplg failed only from web not from CLI

2009-11-26 Thread Rod Whitworth
On Fri, 27 Nov 2009 03:06:59 +0700, ~Lst wrote: >Hi, > >I've already setup bgplg on my test machine, but only show version, >ping and traceroute that is work (suggested from >http://marc.info/?l=openbsd-misc&m=122670411001369&w=2). >Everything else is not work, such as show ip bgp memory, etc... >

bgplg failed only from web not from CLI

2009-11-26 Thread ~Lst
Hi, I've already setup bgplg on my test machine, but only show version, ping and traceroute that is work (suggested from http://marc.info/?l=openbsd-misc&m=122670411001369&w=2). Everything else is not work, such as show ip bgp memory, etc... I followed man pages and checked everything but still it