dhcrelay problem

2008-12-04 Thread farhan ahmed
Hi,

I am trying to figure out if there is anything special one has to do on a
openBSD box to allow DHCP relay. I am trying to get an IP address from a DHCP
server which is located on another network. The network is a fully bridged
based network. The remote firewall is OpenBSD pf. Here is a quick network
diagram in



client -- [Switch][10.108.192 bsd, dhcprelay enabled]
-networkdhcpserver 10.110.218.34





Please let me know if there are any special configurations required on the
openBSD boxes. I have tried using dhcprelay (part of the ISC dhcp package),

but haven't had any success..

used:dhcrelay -i em1 10.110.218.34

Dec 05 17:32:28.096531 rule 94/(match) pass out on em0: 10.108.192.4 
10.110.218.34: icmp: 10.108.192.4 udp port 67 unreachable
Dec 05 17:32:36.991689 rule 94/(match) pass in on em0: 10.110.218.34.67 
10.108.192.4.67: (reply) xid:0x415c814d secs:59 Y:10.108.218.128
S:10.108.192.1 [|bootp] (DF)

As you can see bsd gets the ip address from remote network but some how
Openbsd doesn't broadcast this or client have some issues. Please help me




Thanks
Farhan


_
Net yourself a bargain. Find great deals on eBay.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F
1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10_t=763807330_r=hotmailTAGLINES_m
=EXT



Re: bash for root?

2008-12-01 Thread farhan ahmed
Hi Guys,

Thanks a lot for all replies and discussion, I have recovered root shell today
after scheduling down time. Thanks a lot, excellent forum

Thanks,

Farhan






 Date: Mon, 1 Dec 2008 07:55:48 -0500
 From: [EMAIL PROTECTED]
 To: misc@openbsd.org
 Subject: Re: bash for root?

 Juan Miscaro wrote:
 ...
  Why not set up a user (ex: bigguy) and then force his uid and gid to
  be 0 and 0 with vipw?  Give that user a nice coloured bash prompt and
  set up directories in his home.  This way you get a customized
  superuser while keeping the real root environment pristine.

 Other than generating duplicate user number error reports from the
 nightly security check, the generally bad idea of duplicate user
 numbers, creating confusion and ambiguity that doesn't need to be there,
 the likelihood that you will have forgot the 'root' password when you
 need it and being a really silly way to solve a completely non-problem?
   No reason at all.

 Why not switch the keycaps around on your keyboard?
 Why not wear mis-matched shoes?
 (those are bad examples, I can come up with justifications for doing
 them...)

 Some people are really convinced their feet need holes.  The
 (non)problem doesn't justify your solution -- and the real problems it
 would create.


 Nick.


_
Net yourself a bargain. Find great deals on eBay.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F
1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10_t=763807330_r=hotmailTAGLINES_m
=EXT



Re: bash for root? (was: Re: libiconv problem )

2008-11-29 Thread farhan ahmed
Question is how can you make shell statically linked? I thought when you
install package it should be linked rather than manual compiling and
installing


--
Regards,
Farhan Ahmed To: misc@openbsd.org Subject: bash for root? (was: Re: libiconv
problem ) Date: Sat, 29 Nov 2008 08:46:00 + From:
[EMAIL PROTECTED]2. don't use bash as shell for root.  
 Or at least understand what you are doing.  What is wrong with bash as
shell for root? (Assuming bash is in /bin and statically linked.)
today.
http://www.ninemsn.com.au/hotmailroadtrip



libiconv problem

2008-11-28 Thread farhan ahmed
Hello,

I have been facing weird login problem, have been running OpenBSD 4.4 for
months without any problem, today I installed some packages and after that I
am unable to login, it is production pf/CARP firewall server, all daemons are
runninng fine but can't get login. Please help me to sort out this.

OS: BSD 4.4
Hardware: SUN Fire X2100

[EMAIL PROTECTED] ssh 10.108.128.1
[EMAIL PROTECTED]'s password:
-bash: can't load library 'libiconv.so.5.0'
connection to 10.108.128.1 closed

I have libiconv.so.5.0 in /usr/local/lib. Even i tried to login from console
but getting same error. Please help me how can I solve this.

Thanks,

--
Regards,
Farhan Ahmed
today.
http://www.ninemsn.com.au/hotmailroadtrip



libiconv problem

2008-11-28 Thread farhan ahmed
Thanks guys, but I dont have any other login other than root, still can't
login

when i try to run following command

[EMAIL PROTECTED] 10.108.128.1 /usr/bin/ksh
[EMAIL PROTECTED]'s password:
bash: can't load library 'libintl.so.4.0'

Do I need to reboot my system in single user mode to fix this issue or is
there any way to fix it without brining it in single user mode.

Thanks,



  Date: Fri, 28 Nov 2008 15:36:42 +0100 From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED]; misc@openbsd.org Subject: Re: libiconv problem 
farhan ahmed wrote:  Hello,   I have been facing weird login problem,
have been running OpenBSD 4.4 for  months without any problem, today I
installed some packages and after that I  am unable to login, it is
production pf/CARP firewall server, all daemons are  runninng fine but can't
get login. Please help me to sort out this.   OS: BSD 4.4  Hardware: SUN
Fire X2100   [EMAIL PROTECTED] ssh 10.108.128.1  [EMAIL PROTECTED]'s 
password:
 -bash: can't load library 'libiconv.so.5.0'  connection to 10.108.128.1
closed   I have libiconv.so.5.0 in /usr/local/lib. Even i tried to login
from console  but getting same error. Please help me how can I solve this.
  Thanks,   --  Regards,  Farhan Ahmed  today. 
http://www.ninemsn.com.au/hotmailroadtrip  Hi,  1. don't log in
remotely as root. 2. don't use bash as shell for root. 3. and if you really
want to ignore good advice 1  2, adapt your PATH  variable to include
/usr/local/lib/.  HTH, Stijn
_
It's simple! Sell your car for just $40 at CarPoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2E
com%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%
5F859641_t=762955845_r=tig_OCT07_m=EXT