Re: bgplg failed only from web not from CLI

2009-12-01 Thread Alexander Hall
Stuart Henderson wrote: On 2009-11-30, ~Lst slack...@gmail.com wrote: On Tue, Dec 1, 2009 at 12:10 AM, Alexander Hall alexan...@beard.se 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

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. There is an

Re: bgplg failed only from web not from CLI

2009-11-30 Thread ~Lst
On Mon, Nov 30, 2009 at 4:07 AM, Robert rob...@openbsd.pap.st wrote: On Mon, 30 Nov 2009 07:44:23 +1100 Rod Whitworth glis...@witworx.com wrote: I don't think that he decided 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

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 the

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 alexan...@beard.se 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

Re: bgplg failed only from web not from CLI

2009-11-30 Thread Stuart Henderson
On 2009-11-30, ~Lst slack...@gmail.com wrote: On Tue, Dec 1, 2009 at 12:10 AM, Alexander Hall alexan...@beard.se 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

Re: bgplg failed only from web not from CLI

2009-11-29 Thread Robert
On Sun, 29 Nov 2009 11:50:30 +0700 ~Lst slack...@gmail.com wrote: On Sun, Nov 29, 2009 at 6:57 AM, Robert rob...@openbsd.pap.st 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.

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 slack...@gmail.com wrote: On Sun, Nov 29, 2009 at 6:57 AM, Robert rob...@openbsd.pap.st wrote: *chuckle* If you were running bgplgsh in a chroot from the cmdline you would have to execute it by

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 glis...@witworx.com wrote: I don't think that he decided 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

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 glis...@witworx.com 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

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 a...@ak.cx 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 Yes,

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 599286 rib

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) 2ls -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 ~Lst
On Sat, Nov 28, 2009 at 4:06 PM, Andre Keller a...@ak.cx 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 statistics

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 glis...@witworx.com 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) 2ls -l

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 a...@ak.cx 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 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 Rod Whitworth
On Sat, 28 Nov 2009 16:45:55 +0700, ~Lst wrote: On Sat, Nov 28, 2009 at 4:31 PM, Rod Whitworth glis...@witworx.com 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

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 ~Lst
On Sat, Nov 28, 2009 at 5:24 PM, Rod Whitworth glis...@witworx.com 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,

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 a...@ak.cx 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 else?

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 anything

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 a...@ak.cx 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

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 a...@ak.cx wrote: Am 28.11.2009 18:34, schrieb ~Lst: On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller a...@ak.cx 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

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 a...@ak.cx wrote: Am 28.11.2009 18:34, schrieb ~Lst: On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller a...@ak.cx 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:47 AM, Bret S. Lambert bret.lamb...@gmail.com wrote: On Sun, Nov 29, 2009 at 01:25:03AM +0700, ~Lst wrote: On Sun, Nov 29, 2009 at 1:15 AM, Andre Keller a...@ak.cx wrote: Am 28.11.2009 18:34, schrieb ~Lst: On Sun, Nov 29, 2009 at 12:19 AM, Andre Keller a...@ak.cx

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 2:04 AM, Bret S. Lambert bret.lamb...@gmail.com 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

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 bret.lamb...@gmail.com 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

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 bret.lamb...@gmail.com 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 bret.lamb...@gmail.com wrote: On Sun, Nov 29, 2009 at 01:56:19AM +0700, ~Lst wrote: [ snippzorz ] Could

Re: bgplg failed only from web not from CLI

2009-11-28 Thread Robert
On Sun, 29 Nov 2009 04:42:34 +0700 ~Lst slack...@gmail.com 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 ??

Re: bgplg failed only from web not from CLI

2009-11-28 Thread ~Lst
On Sun, Nov 29, 2009 at 6:57 AM, Robert rob...@openbsd.pap.st 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

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-miscm=122670411001369w=2). Everything else is not work, such as show ip bgp memory, etc... I followed man pages and checked everything but still its

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-miscm=122670411001369w=2). Everything else is not work, such as show ip bgp memory, etc... I

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 test