Libcap Installation Question

2007-01-19 Thread linux quest
When I am trying to install 'ngrep' in UNIX by issuing the 'make install clean' 
command in the ' /usr/ports/ngrep location ', I got an 'Error code 1'. It also 
states that there is a dependencies for pcap.2 which is not found in ' 
/usr/ports/net/libcap ' 

So, I go to '/usr/ports/net/libcap' - with the intention to issue a 'make 
install clean' command. However, UNIX gave me a message that there is no such 
file or directory.

Any ideas, how I may be able to install libcap for UNIX? Thanks.

Regards,
Linux Quest
 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Newbie Libcap Installation Question

2007-01-18 Thread linux quest
When I am trying to install 'ngrep' in UNIX by issuing the 'make install clean' 
command in the ' /usr/ports/ngrep location ', I got an 'Error code 1'. It also 
states that there is a dependencies for pcap.2 which is not found in ' 
/usr/ports/net/libcap ' 

So, I go to '/usr/ports/net/libcap' - with the intention to issue a 'make 
install clean' command. However, UNIX gave me a message that there is no such 
file or directory.

Any ideas, how I may be able to install libcap for UNIX? Thanks.

Regards,
Linux Quest
 
-
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Command Execution Using Script - Similar to Windows Batch File-Like Script (Coding Help)

2007-01-16 Thread linux quest
Dear FreeBSD Communities,

Lets say, I wanted to create a Perl script to execute a very simple nmap 
command as listed below, may I know how do I do it?

unix# nmap 192.168.1.2

I know we need to save it in .pl extension. May I know what else I need to do?

I have researched and google this for the entire week, but I still can't find 
the solution. For example in Windows, all I need to do is to type "nmap 
192.168.1.2" and save it in a text file with the extension .bat - and 
everything will be taken care of.

I hope someone can share with me the simple coding to solve this problem.

Thank you so much, guys :)

Regards,
Linux Quest

Regards,
Linux Quest
 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How about a Start-Up Script that execute every 30 minutes for resolv.conf???

2007-01-15 Thread linux quest

Dear Jay & The FreeBSD Communities,

Thanks for putting your time and patience to help me out. Anyway, I 
tried it out, both changing the rc.conf and the dhclient.conf (one at a 
time). After that (for both of the ways), I did manage to stop the 
resolv.conf from being overwritten after the PC reboot. However, when I ping 
192.168.52.1 or 192.168.52.2, the error msg says that there is no route 
to both of the IP. Even after I add the default route by using command 
line ... I am still unable to ping google.com.

Then, I undo everything by using VMWare... (including undo the DHCP 
configuration in rc.conf) so that I am able to ping google.com again. 

Since, I desperately needed to connect to the Internet at this point of 
time, I create a file called resolv.conf in /root ... I am thinking how 
can I create a script so that it can copy resolv.conf from /root to 
/etc/resolv.conf every 30 minutes at start up - This is because I don't 
wanna manually type in "cp /root/resolv.conf /etc/resolv.conf" every 30 
minutes.

Hope somebody can share with me the simple coding. Thanks :)

Regards,
Linux Quest

Jay Chandler <[EMAIL PROTECTED]> wrote: Please don't top-post.

linux quest wrote:
> Dear Jay,
>
> Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: 
> Win2003, Guest OS: FreeBSD).
>
> Any ideas how I can disable / ignore the routing from the VMnet8? 
> Below are the only VMWare NAT configuration that I have access to. No 
> DHCP enable / disable option.
>
>
> Ethernet adapter VMware Network Adapter VMnet8:
>
>Connection-specific DNS Suffix  . :
>IP Address. . . . . . . . . . . . : 192.168.52.1
>Subnet Mask . . . . . . . . . . . : 255.255.255.0
>Default Gateway . . . . . . . . . : 192.168.52.2
>
>
> When I install FreeBSD, I remember I did select some option to enable 
> DHCP. Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) 
> - if so, any idea how do I do it?
>
> Thanks :)
>
> Regards,
> Linux Quest
>
>
Simple enough, then. 

Edit /etc/rc.conf, and remove the line relating to the dhcp client.  
Then add:
defaultrouter="192.168.51.2"
hostname="boxname!"
ifconfig_em0="inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0"

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 

 
-
Everyone is raving about the all-new Yahoo! Mail beta.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay & The FreeBSD Communities,

Thanks for putting your time and patience to help me out. Anyway, I tried it 
out, both changing the rc.conf and the dhclient.conf (one at a time). After 
that (for both of the ways), I did manage to stop the resolv.conf from being 
overwritten after the PC reboot. However, when I ping 192.168.52.1 or 
192.168.52.2, the error msg says that there is no route to both of the IP. Even 
after I add the default route by using command line ... I am still unable to 
ping google.com.

Then, I undo everything by using VMWare... (including undo the DHCP 
configuration in rc.conf) so that I am able to ping google.com again. 

Since, I desperately needed to connect to the Internet at this point of time, I 
create a file called resolv.conf in /root ... I am thinking how can I create a 
script so that it can copy resolv.conf from /root to /etc/resolv.conf every 30 
minutes at start up - This is because I don't wanna manually type in "cp 
/root/resolv.conf /etc/resolv.conf" every 30 minutes.

Hope somebody can share with me the simple coding. Thanks :)

Regards,
Linux Quest

Jay Chandler <[EMAIL PROTECTED]> wrote: Please don't top-post.

linux quest wrote:
> Dear Jay,
>
> Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: 
> Win2003, Guest OS: FreeBSD).
>
> Any ideas how I can disable / ignore the routing from the VMnet8? 
> Below are the only VMWare NAT configuration that I have access to. No 
> DHCP enable / disable option.
>
>
> Ethernet adapter VMware Network Adapter VMnet8:
>
>Connection-specific DNS Suffix  . :
>IP Address. . . . . . . . . . . . : 192.168.52.1
>Subnet Mask . . . . . . . . . . . : 255.255.255.0
>Default Gateway . . . . . . . . . : 192.168.52.2
>
>
> When I install FreeBSD, I remember I did select some option to enable 
> DHCP. Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) 
> - if so, any idea how do I do it?
>
> Thanks :)
>
> Regards,
> Linux Quest
>
>
Simple enough, then. 

Edit /etc/rc.conf, and remove the line relating to the dhcp client.  
Then add:
defaultrouter="192.168.51.2"
hostname="boxname!"
ifconfig_em0="inet 192.168.52.WHATEVERYOUWANT  netmask 255.255.255.0"

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay,

Thanks. That is exactly what I mean (sorry not explaining it properly). My 
network is DHCP enabled. When the lease expired, the resolver is also cleared 
out. Any ideas how I can configure a static DNS IP? 

Here is what I think may work (Please correct me if I am wrong)... Perhaps I 
should configure a static IP on this client using FreeBSD. May I know how can I 
do that, and at the same time, I would also like to disable DHCP enable 
settings. 

Thanks again.

Regards,
Linux Quest

Jay Chandler <[EMAIL PROTECTED]> wrote: linux quest wrote:
> I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be 
> able to ping google.com (because I need to type in my ISP's DNS into 
> /etc/resolv.conf) May I know what is the best solution for this, so that I do 
> not have to type in my ISP's DNS to the resolver all the time? Perhaps, 
> should I set a static IP configuration? If so, may I know which file should I 
> modify? 
>
> Thanks.
>   
Their DNS changes hourly?  What the heck ISP are you using that pulls 
such things?

Or do you mean to say that you're on DHCP, and when it renews the lease 
it clears out DNS info? 

-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS Resolver Problem

2007-01-15 Thread linux quest
Dear Jay,

Actually, I am running FreeBSD Unix on a VMWare machine (Host OS: Win2003, 
Guest OS: FreeBSD). 

Any ideas how I can disable / ignore the routing from the VMnet8? Below are the 
only VMWare NAT configuration that I have access to. No DHCP enable / disable 
option.


Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   IP Address. . . . . . . . . . . . : 192.168.52.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.52.2


When I install FreeBSD, I remember I did select some option to enable DHCP. 
Perhaps, I should disable the DHCP service in FreeBSD(Guest OS) - if so, any 
idea how do I do it?

Thanks :)

Regards,
Linux Quest


Jay Chandler <[EMAIL PROTECTED]> wrote: linux quest wrote:
> Dear Jay,
>
> Thanks. That is exactly what I mean (sorry not explaining it 
> properly). My network is DHCP enabled. When the lease expired, the 
> resolver is also cleared out. Any ideas how I can configure a static 
> DNS IP?
>
> Here is what I think may work (Please correct me if I am wrong)... 
> Perhaps I should configure a static IP on this client using FreeBSD. 
> May I know how can I do that, and at the same time, I would also like 
> to disable DHCP enable settings.
>
> Thanks again.
>
> Regards,
> Linux Quest
>
> */Jay Chandler /* wrote:
>
> linux quest wrote:
> > I have a problem with the DNS setting in FreeBSD. Every 1 hour,
> I will not be able to ping google.com (because I need to type in
> my ISP's DNS into /etc/resolv.conf) May I know what is the best
> solution for this, so that I do not have to type in my ISP's DNS
> to the resolver all the time? Perhaps, should I set a static IP
> configuration? If so, may I know which file should I modify?
> >
> > Thanks.
> >
> Their DNS changes hourly? What the heck ISP are you using that pulls
> such things?
>
> Or do you mean to say that you're on DHCP, and when it renews the
> lease
> it clears out DNS info?
>
> -- 
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / [EMAIL PROTECTED]
> Today's Excuse: emissions from GSM-phones
>
Simple enough to do-- first off, is this box running under a router or 
some such that you control, or is it getting a public IP through your 
ISP?  If the latter, setting a static IP might come back to haunt you.

I suspect from the way you describe it, that you control a local router 
that's giving bogus DNS information out with its DHCP lease, in which 
case the simplest fix is to adjust said router so it Doesn't Do That (tm).

In any case: http://www.freebsddiary.org/resolv.php should help you out.


-- 
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: emissions from GSM-phones 



 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


DNS Resolver Problem

2007-01-15 Thread linux quest
I have a problem with the DNS setting in FreeBSD. Every 1 hour, I will not be 
able to ping google.com (because I need to type in my ISP's DNS into 
/etc/resolv.conf) May I know what is the best solution for this, so that I do 
not have to type in my ISP's DNS to the resolver all the time? Perhaps, should 
I set a static IP configuration? If so, may I know which file should I modify? 

Thanks.

Regards, 
Linux Quest
 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Newbie NMap in FreeBSD Question

2007-01-15 Thread linux quest


Note: forwarded message attached.
 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.--- Begin Message ---

   Lets say, I wanted to create a Perl script to execute a very simple
   nmap command as listed below, may I know how do I do it?
   unix# nmap 192.168.1.2
   I know we need to save it in .pl extension. May I know what else I
   need to do. I hope someone can share with me the simple coding.
   Thanks. [01.gif]
   Regards,
   Linux Quest
 _

   8:00? 8:25? 8:40? [1]Find a flick in no time
   with the[2]Yahoo! Search movie showtime shortcut.

References

   1. http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news
   2. http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Newbie NMap in FreeBSD Question

2007-01-14 Thread linux quest

  
  Lets say, I wanted to create a Perl script to execute a very simple nmap 
command as listed below, may I know how do I do it?
  
  unix# nmap 192.168.1.2
  
  I know we need to save it in .pl extension. May I know what else I need  to 
do. I hope someone can share with me the simple coding.
  
  Thanks. 
  
  Regards,
  Linux Quest
  
 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NMap in FreeBSD Problem ...

2007-01-09 Thread linux quest

Thanks ... I think the 'rehash' command does help a bit... at least now, when I 
type 'nmap', I can see the help manual (before this, there was just error msg). 
However, now, when I type 'nmap 192.168.1.10', (where 192.168.1.10 is the PC 
that I wanted to scan) ... I got the message ... 

'Limiting closed port RST response from 283 to 200 packets/sec'

May I know how do I get nmap to scan the 192.168.1.10 computer?

Thanks.

Regards,
Linux Quest


Niclas Zeising <[EMAIL PROTECTED]> wrote:
 On 1/9/07, linux quest 
 wrote:

> After running nmap for some time, I have got problem running a simple command 
> of nmap ... like

>

> nmap 192.168.1.2

> nmap: Command not found

>

> I think there is something wrong with my installation procedures. I type in 
> "make install clean" command in /usr/local/bin/nmap and 
> /usr/ports/security/nmap - but somehow I still see the "command not found" 
> message.

>

> I have also typed in "make deinstall clean" on both of the directory 
> location, restart the OS, and install everything again using the "make 
> install clean" command (on both of the directory location) - but I still 
> receive the same "nmap: Command not found" message.

>

> Thanks for the help :)

>

> Regards,

> Linux Quest

>  __



Have you tried running "rehash" after the install? If you're using

[t]csh this is nessesary to make the shell discover new commands.

You only need to do "make install clean" in ports/security/nmap, not

in local/bin/nmap.

HTH

//Niclas

--




 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


NMap Installation Problem ...

2007-01-09 Thread linux quest
After running nmap for some time, I have got problem running a simple command 
of nmap ... like 

nmap 192.168.1.2
nmap: Command not found

I think there is something wrong with my installation procedures. I type in 
"make install clean" command in /usr/local/bin/nmap and 
/usr/ports/security/nmap - but somehow I still see the "command not found" 
message.

I have also typed in "make deinstall clean" on both of the directory location, 
restart the OS, and install everything again using the "make install clean" 
command (on both of the directory location) - but I still receive the same 
"nmap: Command not found" message. 

Thanks for the help :)

Regards,
Linux Quest
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Nmap Scan from FreeBSD OS - Coding Question

2007-01-09 Thread linux quest
I am currently doing a simple penetration testing for my company in a LAN 
environment. Yes, I have already downloaded NMap by using the 'make install' 
command... and it did fetched the required files from insecure.org successfully.

My question will be, how can I create a Network Program in .c that will invoke 
the nmap capabilities to scan the network or computers? Example, lets say, I 
want an automated nmap scan to run on FreeBSD to scan 192.168.1.10 and 
192.168.1.11 , every morning at 10am - may I know how do I achieve that? I hope 
someone can show me a simple coding to invoke nmap scan, thanks :)

Thanks :)

Regards,
Linux Quest

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Newbie Lynx and Mozilla Firefox Questions

2007-01-04 Thread linux quest
I have been searching for tutorials for browsing the Internet using Lynx, but 
can't seem to find one anywhere. There aren't any tutorial either in those Unix 
books that I bought. What command do I need to type to download Lynx and what 
command I need to type to run Lynx on FreeBSD? 

Secondly, I try to run firefox by typing ...

# mozilla &

but ... it respond with error msg ... and yes I can connect to the Internet (I 
pinged google.com).

Thanks for any help.

Regards,
Linux Quest



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to compile first network program? E.g. to PING google.com

2006-12-29 Thread linux quest


May I know how do I write a simple C network program in UNIX FreeBSD? I have 
bought some UNIX Network Programming books, but the problem is, the book 
straight away jump into some complex program - without showing how to compile 
and execute a simple program in the correct location in UNIX. I even did some 
searches online, which eventually lead me to this particular article at 
http://www.faqs.org/faqs/unix-faq/socket/ - but this article still doesn't show 
me how to compile a simple C program.

I know a bit about echoing a Hello World by simply typing the following:-

abc# echo "Hello World!"
Hello World!
abc# 

So, my question is ... 

1.How can I write a very simple C network program ... to lets say I wanted 
to ping google.com ??? 

2.Which directory / location in UNIX should I go to? 

3.How do I compile and execute the simple C network program - lets say 
doing a ping on google.com???

Thanks for any help.

Regards,
Linux Quest


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Changing network card FreeBSD after install

2006-12-26 Thread linux quest

I am a UNIX newbie. I think I made the wrong selection for my network card 
-causing me unable to connect to the Internet. Now, I would like to choose my a 
new network card during installation of FreeBSD. So, I did tried sysinstall 
command, but, it seems that I am unable to select my network card from there.

Please help. Thanks.

Regards,
Linux Quest
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Internet Connection Problem - DNS Related?

2006-12-20 Thread linux quest

I am a new user of FreeBSD. I have already installed FreeBSD succesfully. 
However, I am not able to connect to the Internet. I have read the ppp manual 
in FreeBSD (by typing man ppp), but I still can't connect to the Internet.

This is what happened at my prompt ...

abc# ping google.com
ping: cannot resolve google.com: Host name lookup failure

Then, I thought perhaps I haven't configure my DNS. So I typed man dns, but I 
can't find the DNS manual, and yes... I know my ISP DNS IP address. But I don't 
know where to configure it in FreeBSD.

Hope someone can help me. Thanks.
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"