DNS Resolution
I have a weird DNS problem I am hoping someone can help me with. I have server running FBSD 8.0. /etc/resolv.conf is set to use my ISP's DNS servers for name resolution. If run dig @ns3.socket.net .yyy. the INTERNAL ip address of the server is returned. If I run d...@ns3.socket.net .yyy. axfr, the correct information for the entire zone is returned. I am only noticing problems with .yyy.. All other names seem to resolve correctly. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS Resolution
On Friday, November 19, 2010 07:25:10 pm Gary Gatten wrote: I ran into a similar situation where the ns was behind a Juniper SRX doing NAT. Said Juniper had a smart DNS piece (ALG) that does special stuff on DNS packets; max record length, special NAT, etc. I had to disable the DNS ALG to fix the problem. If your ns is behind a NATing device, start there. Or, if you can run tcpdump on the ns, or before it hits a fw/NAT - ensure the reply packets have the proper IP in them as they leave the ns. Thanks for the quick response. I think this is a problem with a piece of equipment I do not have access to. The only difference between the site experiencing the problem and the other sites I maintain is the router. If I redirect DNS queries to other sites, everything works as expected. Thanks for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ttyu0 link down
On Apr 6, 2010, at 1:14 AM, Sabine Baer wrote: Using cu -l /dev/ttyu0 I receive a message stating link down. ^ Shouldn't that be /dev/cua0 instead? $ less /etc/ttys|grep mgetty cuau0 /usr/local/sbin/mgettyunknown on insecure Sabine -- Good fences make good neighbours. (N.N.) It does not make a difference whether I use /dev/cuau0 or not. I still receive the link down message. This morning I changed the /dev/ttyu0 dialup on entry in /etc/ttys to / dev/ttyu0 dialup off secure, and after running kill -HUP 1, I was able to access the modem using either cu -l /dev/ttyu0 or cu -l /dev/cuau0. Once I re-enabled /dev/ttyu0 in etc/ttys, I am no longer able to access the modem using either cu -l /dev/ttyu0 or cu -l /dev/cuau0. I receive a link down message when trying to access the modem. I am running FreeBSD 8.0-RELEASE-p2. Any suggestions? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ttyu0 link down
Ladies and Gentlemen, Earlier today, I had to dial into a server to check a link from both sides (a router was down). This evening, when I connected to the server I am not able to connect to the modem. From dmesg uart0: 16550 or compatible port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] Using cu -l /dev/ttyu0 I receive a message stating link down. I have issued a kill -HUP 1 to restart the ttys and receive the same message. The same thing happens when rebooting the server. Trying to open the port with minicom, I receive the following message minicom: cannot open /dev/cuau0: Operation not permitted If I change the port to /dev/ttyu0, I receive the following message minicom: cannot open /dev/ttyu0: Permission denied Permissions on /dev/ttyu0 and /dev/cuau0 are as follows crw--- 1 root wheel0, 41 Apr 5 20:03 /dev/ttyu0 crw-rw 1 uucp dialer0, 44 Apr 5 20:03 /dev/cuau0 Is this a hardware issue or am I missing something else? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libiconv-1.11_1
On Apr 1, 2010, at 10:36 AM, Lowell Gilbert wrote: Try kicking up the verbosity of your sshd and seeing what it tells you. Looks like the server is where the connection gets closed. As has already been suggested, you should update your ports to use the libiconv that new ports are already trying to use on your system, and get rid of the old one. I find it really unlikely that iconv could affect the system sshd, though (you are using sshd from the base, right?), so there may be something else going on. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ All of the ports are updated now. Following is from the FreeBSD server when the Mac tries to connect. Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug1: fd 5 clearing O_NONBLOCK Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug1: Forked child 33946. Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: entering fd = 8 config len 198 Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: ssh_msg_send: type 0 Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: done Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: inetd sockets after dupping: 3, 3 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: res_init() Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Client protocol version 2.0; client software version OpenSSH_5.2 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: match: OpenSSH_5.2 pat OpenSSH* Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Enabling compatibility mode for protocol 2.0 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Local version string SSH-2.0-OpenSSH_5.2p1 FreeBSD-20090522 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug2: fd 3 setting O_NONBLOCK Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug2: Network child is on pid 33947 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug3: preauth child monitor started Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug3: mm_request_receive entering Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking request 0 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_moduli: got parameters: 1024 1024 8192 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send entering: type 1 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 0 used once, disabling now Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive entering Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking request 4 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign: signature 0x28638280(271) Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send entering: type 5 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 4 used once, disabling now Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive entering Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: entering fd = 8 config len 198 Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: ssh_msg_send: type 0 Apr 1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: done Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: inetd sockets after dupping: 3, 3 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: res_init() Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Client protocol version 2.0; client software version OpenSSH_5.2 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: match: OpenSSH_5.2 pat OpenSSH* Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Enabling compatibility mode for protocol 2.0 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Local version string SSH-2.0-OpenSSH_5.2p1 FreeBSD-20090522 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug2: fd 3 setting O_NONBLOCK Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug2: Network child is on pid 33947 Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug3: preauth child monitor started Apr 1 13:06:22 mo-bak-s1 sshd[33946]: debug3: mm_request_receive entering Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking request 0 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_moduli: got parameters: 1024 1024 8192 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send entering: type 1 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 0 used once, disabling now Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive entering Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking request 4 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign: signature 0x28638280(271) Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send entering: type 5 Apr 1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 4 used once, disabling now Apr 1
libiconv-1.11_1
Ladies and Gentlemen, Today, when I installed samba from ports, libiconv-1.11_1 was added to my system. Now, I have both libiconv-1.9.2_2 and libiconv-1.11_1 on my system. This prevents me from using ssh remotely to connect to the server. I am connecting from a Mac, OS X 10.5, but other FreeBSD systems are able to connect just fine. If I uninstall SAMBA and remove libiconv-1.11_1, I am able to use ssh again. libiconv-1.9.2_2 has several dependencies listed. What is the best way to proceed? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libiconv-1.11_1
On Mar 31, 2010, at 3:17 PM, Mikle wrote: Hello, In my ports tree there is only one version of libiconv, and compiling samba doesn't ask about any other versions (/usr/ports/converters/libiconv, version 1.13). Maybe you should update your ports? Also, i do not see why should libiconv affect ssh[d]. What does your macos's ssh tell you when you're trying to connect to fbsd-machine? Here is what is logged on the Mac when trying to connect. jh...@jefmhallja-~/.ssh$ ssh -vv hal...@10.129.10.2 OpenSSH_5.2p1, OpenSSL 0.9.7l 28 Sep 2006 debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.129.10.2 [10.129.10.2] port 22. debug1: Connection established. debug1: identity file /Users/jhall/.ssh/identity type -1 debug1: identity file /Users/jhall/.ssh/id_rsa type -1 debug1: identity file /Users/jhall/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2p1 FreeBSD-20090522 debug1: match: OpenSSH_5.2p1 FreeBSD-20090522 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.2 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie- hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman- group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie- hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman- group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_setup: found hmac-md5 debug1: kex: server-client aes128-ctr hmac-md5 none debug2: mac_setup: found hmac-md5 debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug2: dh_gen_key: priv key bits set: 141/256 debug2: bits set: 513/1024 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '10.129.10.2' is known and matches the RSA host key. debug1: Found key in /Users/jhall/.ssh/known_hosts:1 debug2: bits set: 514/1024 debug1: ssh_rsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /Users/jhall/.ssh/identity (0x0) debug2: key: /Users/jhall/.ssh/id_rsa (0x0) debug2: key: /Users/jhall/.ssh/id_dsa (0x0) Connection closed by 10.129.10.2 Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Custom Kernel to Memory Stick
On Mar 29, 2010, at 6:30 PM, Aiza wrote: This is the procedure you want to follow. http://forums.freebsd.org/showthread.php?t=11680 And for greater detail http://forums.freebsd.org/showthread.php?t=11715 Thanks for the links. I will give them a try. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Custom Kernel to Memory Stick
Ladies and Gentlemen, I have been asked to explore the possibility of booting FreeBSD from a memory stick. This was not a problem; worked great when installed from the distribution CD. What would be the best way to get our custom configuration onto the memory stick? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Custom Kernel to Memory Stick
On Mar 29, 2010, at 10:49 AM, Jay Hall wrote: What would be the best way to get our custom configuration onto the memory stick? Ladies and Gentlemen, This is what I have done, but now I cannot mount the memory stick. I create an image of the s1a partition where the kernel I want to copy resides dd if=/dev/ad0s1a of=/home/hallja/s1aimage bs=2048k After preparing the memory stick I use the following command to transfer the image to the memory stick dd if=/home/hallja/ s1aimage of=/dev/da0s1a bs=2048k I am able to mount the memory stick without any problem before I add the image. After adding the image, I try to mount the memory stick using mount /dev/da0s1a /mnt1 And, I receive the following message mount: /dev/da0s1a : Operation not permitted Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Custom Kernel to Memory Stick
On Mar 29, 2010, at 10:49 AM, Jay Hall wrote: What would be the best way to get our custom configuration onto the memory stick? OK, I managed t get our custom configuration on to the memory stick using dump. After getting everything configured, what I thought was correctly, I am able to boot from the memory stick until it is time to mount the root partition. When mounting the root partition from /dev/da0s1a, I receive the following message: Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR: If you have invalid mount options, reboot and first try the following from the loader prompt: I have tried the suggested courses of action without any success. If I type ufs:/dev/da0s1a I receive the ROOT MOUNT ERROR again. Following is what I have done to create the bootable memory stick. Created two partitions on the memory stick each about 2 GB. sysinstall was used for this. Used bsdlabel to create the necessary labels on the memory stick. sysinstall was used for this. Ran newfs as on all of the labels. This was done from the command prompt. Once everything was created, I mounted the memory stick and created an image of my working installation using dump. boot0cfg was run on the memory stick. boot0cfg -v -B -o noupdate da0 Modified the fstab on the memory stick as follows /dev/da0s1a / rw,noatime 0 0 Everything other than the operating system was left on the hard drive. If anyone has any suggestions how to fix this, please let me know. I am out of ideas. Or, if you can direct me to a howto, that would be fine also. Thanks for all your help and patience. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Jails and Hardware security
Is it possible to limit what hardware a jail has access to? I am wanting to limit access to the tape drive/autoloader in one jail, but allow another to have access to it. Is this as simple as deleting the appropriate entries in /dev? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: tty problem after upgrade to 8.0
On Dec 5, 2009, at 12:47 AM, Fbsd1 wrote: this will point you in the correct direction http://www.freebsd.org/cgi/query-pr.cgi?pr=140918 Thank you. This fixed the problem. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
tty problem after upgrade to 8.0
Ladies and Gentlemen, I completed the upgrade to FreeBSD 8.0 this afternoon and have an error plaguing me that I cannot solve. When the system is booted, I am receiving the following error. Dec 5 20:43:30 getty[902]: open /dev/ttyd0: No such file or directory However, when I run ps -ax | grep ttyd0, I see the following entry. 902 ?? I 0:00.00 /usr/libexec/getty std.9600 ttyd0 I have a modem connected to cuau0 for dial-in purposes. The /etc/ttys file contains the following entry to allow for dial-in access. # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyd0 /usr/libexec/getty std.9600 dialup on Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Source Code Update Question
Ladies and Gentlemen, This is the first time I have tried to upgrade FreeBSD's source code, and I have done something wrong, but I am not sure what. I am upgrading from 6.2 to 8.0. First, I upgraded the source code, using csup /root/supfile. Here are the contents of /root/supfile. # IMPORTANT: Change the next line to use one of the CVSup mirror sites # listed at http://www.freebsd.org/doc/handbook/mirrors.html. *default host=cvsup9.us.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix # If you seem to be limited by CPU rather than network or disk bandwidth, try # commenting out the following line. (Normally, today's CPUs are fast enough # that you want to run compression.) *default compress ## Main Source Tree. # # The easiest way to get the main source tree is to use the src-all # mega-collection. It includes all of the individual src-* collections. src-all Following is the output from make buildworld. mo-bak-s1# make buildworld -- World build started on Thu Dec 3 17:01:54 CST 2009 -- -- Rebuilding the temporary build tree -- rm -rf /usr/obj/usr/src/tmp mkdir -p /usr/obj/usr/src/tmp/lib mkdir -p /usr/obj/usr/src/tmp/usr mkdir -p /usr/obj/usr/src/tmp/legacy/usr mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr/obj/usr/src/tmp/ legacy/usr /dev/null mtree -deU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr/obj/usr/src/tmp/ usr /dev/null mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/obj/usr/src/ tmp/usr/include /dev/null ln -sf /usr/src/sys /usr/obj/usr/src/tmp -- stage 1.1: legacy release compatibility shims -- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp INSTALL=sh /usr/ src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/ obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/u === tools/build (obj,includes,depend,all,install) /usr/obj/usr/src/tmp/usr/src/tools/build created for /usr/src/tools/ build cd /usr/src/tools/build; make buildincludes; make installincludes rm -f .depend mkdep -f .depend -a-I/usr/obj/usr/src/tmp/legacy/usr/include /usr/ src/tools/build/dummy.c cc -O2 -pipe -std=gnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include - c /usr/src/tools/build/dummy.c building static egacy library ranlib libegacy.a sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libegacy.a / usr/obj/usr/src/tmp/legacy/usr/lib -- stage 1.2: bootstrap tools -- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp INSTALL=sh /usr/ src/tools/install.sh PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/ obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/u === cddl/usr.bin/sgsmsg (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/src/cddl/usr.bin/sgsmsg created for /usr/src/ cddl/usr.bin/sgsmsg rm -f .depend mkdep -f .depend -a-DNEED_SOLARIS_BOOLEAN -I/usr/src/cddl/usr.bin/ sgsmsg/../../../sys/cddl/compat/opensolaris -I/usr/src/cddl/usr.bin/ sgsmsg/../../../cddl/compat/opensolaris/include -I/usr/src/cd In file included from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/tools/common/sgsmsg.c:81: /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/contrib/opensolaris/cmd/sgs/ include/sgs.h:57:20: libelf.h: No such file or directory In file included from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/include/alist.h:45, from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/include/sgs.h:59, from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/tools/common/sgsmsg.c:81: /usr/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/compat/opensolaris/sys/ elf.h:30:26: sys/elf.h: No such file or directory In file included from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/tools/common/string_table.c:31: /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/contrib/opensolaris/cmd/sgs/ include/sgs.h:57:20: libelf.h: No such file or directory In file included from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/include/alist.h:45, from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/include/sgs.h:59, from /usr/src/cddl/usr.bin/sgsmsg/../../../cddl/ contrib/opensolaris/cmd/sgs/tools/common/string_table.c:31: /usr/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/compat/opensolaris/sys/ elf.h:30:26: sys/elf.h: No such file or directory In file included from
Re: gnu tar checkpoint variable expansion
Try this: /usr/local/gtar-1.22/bin/tar -cf - ${WHATTOBACKUP} \ --checkpoint-action='echo=Checkpoint #%u' \ --checkpoint-action=exec=/usr/local/scripts/check_disk_usage.sh $ {DIR} The use of single quotes prohibits the expansion of environment variables. Use double qoutes instead. Thanks Trond, this did the trick. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
gnu tar checkpoint variable expansion
Ladies and Gentlemen, I am working with gnu tar checkpoints this morning can cannot seem to get variables to expand properly when they are passed as part of a checkpoint action. Following is how I am using gnu tar DIR=/home/test WHATTOBACKUP=/home/somedir /usr/local/gtar-1.22/bin/tar -cf - ${WHATTOBACKUP} \ --checkpoint-action='echo=Checkpoint #%u' --checkpoint-action='exec=/ usr/local/scripts/check_disk_usage.sh ${DIR}' When I use ${DIR} as a parameter, it is not sent to the check_disk_usage_script. However, if I replace ${DIR} with /home/ test, everything works fine. Any suggestions anyone has would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gnu tar checkpoint variable expansion
On Oct 21, 2009, at 8:55 AM, Matthew Seaman wrote: That's fairly basic shell syntax. Use double quotes on any string where you want variable interpolation. Cheers, Matthew I will try that again and let you know what happens. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Capturing netflows
I have run into a need to capture netflows from the internal interface of my FreeBSD 6 server. The internal interface is em0 and the external interface is em1. I am using the following to setup the netflows. /usr/sbin/ngctl -f- SEQ mkpeer em0: netflow lower iface0 name: em0: lower netflow connect em0: netflow: upper out0 mkpeer netflow: ksocket export inet/dgram/udp msg netflow:export connect inet/1.2.3.4:12345 SEQ When I run the commands above, I receive the following message. ngctl: send msg: No such file or directory ngctl: line 1: error in file I am at a complete loss here. My understanding of netgraph is poor at best. Any suggestions would be appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
rsync include and exclude
Ladies and Gentlemen, I am using rsync to backup some information and I am having some problem with including and excluding directories. I want to include everything in the user's mail directory and everything in the user's documents directory. Everything else should be excluded. And, it is possible to have multiple users on a single computer. Following is what I am using for my include/exclude patterns. + /Users/*/Library/Mail/ + /Users/*/Documents/ - /Users/*/Documents/* - /Users/*/Library/* This gives me close to the desired result. However, there are some extra files included which I do not need to backup which are stored in /Users/username directory. If I add -/Users/*, no files are backed up. After reading the man pages and several examples, I thought I had a handle on this. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: rsync include and exclude
Thanks. That took care of the problem. Jay On Oct 7, 2009, at 3:02 PM, krad wrote: 2009/10/7 Jay Hall jh...@socket.net Ladies and Gentlemen, I am using rsync to backup some information and I am having some problem with including and excluding directories. I want to include everything in the user's mail directory and everything in the user's documents directory. Everything else should be excluded. And, it is possible to have multiple users on a single computer. Following is what I am using for my include/exclude patterns. + /Users/*/Library/Mail/ + /Users/*/Documents/ - /Users/*/Documents/* - /Users/*/Library/* This gives me close to the desired result. However, there are some extra files included which I do not need to backup which are stored in /Users/username directory. If I add -/Users/*, no files are backed up. After reading the man pages and several examples, I thought I had a handle on this. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org try adding this line to the top + /Users/* then this to the bottom - /Users/*/* I use lists like this at work a lot and you have to be careful. The ordering of the rules is very important. The common on for people to get wrong is the mysql rules.. We generally dont copy the binary db files as they would never be consistent, so we dump the db else where and exclude the files. Except we need to capture the my.cnf file. The following ruleset does it + /var/db/mysql + /var/db/mysql/my.cnf - /var/db/mysql/** If you deviate from this things dont tend to work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Backup Size
On Aug 11, 2009, at 12:09 PM, Roland Smith wrote: Just execute the tar command, and dump the output to /dev/null through dd: tar -cf - /etc |dd of=/dev/null tar: Removing leading '/' from member names 3160+0 records in 3160+0 records out 1617920 bytes transferred in 0.057690 secs (28045115 bytes/sec) This will give you the exact size without writing anything to disk. Thanks. I had not thought of that. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd-questions Digest, Vol 270, Issue 19
On Aug 9, 2009, at 7:00 AM, freebsd-questions-requ...@freebsd.org wrote: I had no problems using that command line with GNU tar versions 1.14 and 1.22. I'd grab the source and upgrade if I were you: http://ftp.gnu.org/gnu/tar/tar-1.22.tar.gz I upgraded and everything is fine now. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Backup Size
I am sure there is an easy explanation for this, but I cannot find it. I am backing up my /etc directory using the following command. tar -cvf - /etc | dd of=/dev/nsa1 obs=10240 When the command completes, I receive the following message. 3080+0 records in 154+0 records out 1576960 bytes transferred in 0.179921 secs (8764740 bytes/sec) What concerns me is when running du -h /etc, the size of the folder is reported as 1.7M. Is the number of bytes written to the tape less than the reported size of the directory because of the way the files are written to the tape? If so, how can the amount of space used be calculated? Thanks for your help. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Backup Size
On Aug 10, 2009, at 12:09 PM, Roland Smith wrote: The fact that you are using tar also plays a part. Tar has some overhead to store information about the files it contains. Is it possible to calculate the amount of overhead tar will use? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Backup Size
Difficult. 512 bytes per entry + 1024 (EOF). See man 5 tar. But since files will be padded there is some extra overhead. Also, it is hard to calculate hard links and sparse files. Tar will handle these correctly (i.e. preserve hard links and detect sparse files and try not archive blocks of nulls) but it is hard to calculate the size because of this before the archive operation because of this. -- Mel Thanks. I have been able to come close, but not exact. Looks like close will have to be good enough. Thanks again. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
GNU Tar and -T option
Has anyone had any luck using the -T option with GNU tar 1.16.1? I am using the following command line. /usr/local/gtar/bin/tar -c -T filelist -f - | dd of=/dev/nsa1 obs=128k And, I am receiving the following error message. This happens whether I use the -T option or --files-from=. If I remove these options, the command runs fine. tar: --: (PROGRAM ERROR) Option should have been recognized!? Try `tar --help' or `tar --usage' for more information. I have also tried placing the -T after the -f - and receive the same error message. Any suggestions concerning how to correct this would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
find question
I am sure this is something I am doing that is obviously wrong, but I cannot figure it out. I am reading a list of directories from a file, and then listing all of the files in the directory to a file. Here is the code. #!/usr/local/bin/bash cat ${FILELIST} | while read LINE do echo ${LINE} `find ${LINE} -type f ${TMPFILE}` done Here is the output. /usr/home/windowsaccess find: illegal option -- t find: illegal option -- y find: illegal option -- p find: illegal option -- e find: f: No such file or directory Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find question
What is -type supposed to do? I've never used it before, never needed it. Type is used to specify the type of file to be found. f is a regular file. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find question
Ah yes, I do remember now. Plus, for once the syntax is almost self explanatory. So, did the OPs question get answered? I think I just found the problem. I am testing now. There was a blank line at the end of the file. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ipf rules question
Ladies and Gentlemen, I think I am missing something. I am running a FreeBSD 6. server with ipf compiled into the kernel. Following are the headers from an email. From: oea...@brantbenun.com Subject: SUSPECTED SPAM REAL Doctors, REAL Science, REAL Results! Date: July 27, 2009 2:33:25 PM CDT To: xx...@mnea.org Reply-To: oea...@brantbenun.com Received: from mail.mnea.org ([10.129.10.45]) by mo-hq-s1.mo.loc with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Jul 2009 14:33:29 -0500 Received: by mail.mnea.org (Postfix, from userid 10071) id 572563F661; Mon, 27 Jul 2009 14:33:29 -0500 (CDT) Received: from speedtouch.lan (213-84-78-162.adsl.xs4all.nl [82.95.130.154]) by mail.mnea.org (Postfix) with ESMTP id DD9233F659 for x...@mnea.org; Mon, 27 Jul 2009 14:33:24 -0500 (CDT) Received: from 82.95.130.154 by smtp.secureserver.net; Mon, 27 Jul 2009 20:33:25 +0100 Following are the relevant entries from /var/log/maillog Jul 27 14:33:22 mail postfix/smtpd[8557]: connect from 213-84-78-162.adsl.xs4all.nl[82.95.130.154] Jul 27 14:33:24 mail postfix/smtpd[8557]: DD9233F659: client=213-84-78-162.adsl.xs4all.nl[82.95.130.154] Jul 27 14:33:26 mail postfix/cleanup[7974]: DD9233F659: message-id=824460019.99376997845...@brantbenun.com Jul 27 14:33:26 mail postfix/qmgr[52904]: DD9233F659: from=oea...@brantbenun.com , size=1245, nrcpt=1 (queue active) And, following is the output from ipfstat showing the relevant rule(s). @140 block in quick proto tcp from 82.0.0.0/8 to any port = smtp If I am looking at everything correctly all traffic coming into the system from the 82.0.0.0/8 network to port 25 on the mail server should be blocked. What am I missing? Thanks for your help. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ipf rules question
On Jul 27, 2009, at 4:40 PM, Chuck Swiger wrote: On Jul 27, 2009, at 2:27 PM, Jay Hall wrote: [ ... ] If I am looking at everything correctly all traffic coming into the system from the 82.0.0.0/8 network to port 25 on the mail server should be blocked. What am I missing? Otherwise, maybe your firewall rules are not working, are applied to the wrong network interface, etc. Sorry about the confusion. Postfix is listening on port 25 on mail.mnea.org. Port 587 is not open. I will post some modified log files shortly. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Bash and arrays
On Jul 15, 2009, at 12:53 AM, Dan Nelson wrote: In the last episode (Jul 15), Bryan Venteicher said: I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has a length of 0. Following is the code I am using. #!/usr/local/bin/bash COUNTER=0 cat ./test_file.txt | while read LINE do echo ${LINE} FOO[${COUNTER}]=${LINE} COUNTER=`expr ${COUNTER} + 1` done echo ${#f...@]} echo ${#FOO[*]} And, here is the output. test_file file_size 0 0 Thanks in advance for any help you can offer. The right hand side of the pipe is running in its own subshell so it has its own copy of FOO. One fix is #!/usr/local/bin/bash COUNTER=0 while read LINE do echo ${LINE} FOO[${COUNTER}]=${LINE} COUNTER=`expr ${COUNTER} + 1` done ./test_file.txt Another alternative would be to use zsh, which makes sure that the last component of a pipeline is run in the current shell process so the original script would have worked. -- Dan Nelson dnel...@allantgroup.com Thanks to everyone for their help. I had forgotten the right side of the pipe runs in its own subshell. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Bash and arrays
Ladies and Gentlemen, I thought I understood how arrays work in bash, but I have been proven wrong. I am reading lines from a file and placing them in an array. However, when I am finished, the array has a length of 0. Following is the code I am using. #!/usr/local/bin/bash COUNTER=0 cat ./test_file.txt | while read LINE do echo ${LINE} FOO[${COUNTER}]=${LINE} COUNTER=`expr ${COUNTER} + 1` done echo ${#f...@]} echo ${#FOO[*]} And, here is the output. test_file file_size 0 0 Thanks in advance for any help you can offer. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Adaptec 29320ALP-R and tape drive
I just installed an Adaptec 29320ALP-R in my FreeBSD 7.2 server. Connected to the card is an HP Ultrium 1/8 G2 tape drive. During the boot sequence, FreeBSD pauses to wait for the SCSI devices to settle. Then, I receive the following message (probe79:ahd0:0:4:0: Probable outgoing LQ CRC error. Retrying command. I have moved the card to a different slot with the same results, replaced the cable, etc. If I do not power on the tape drive, the system will boot normally. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Adaptec 29320ALP-R and tape drive
That worked. Would any of the information displayed while booting be helpful at this point? Jay On Jul 7, 2009, at 10:46 AM, Justin T. Gibbs wrote: Go into the card 29320's BIOS and configure your tape drive for non- packetized negotiation. If this works, we can try a few other things in the driver to see if it is possible to get things working in packetized mode. -- Justin Jay Hall wrote: I just installed an Adaptec 29320ALP-R in my FreeBSD 7.2 server. Connected to the card is an HP Ultrium 1/8 G2 tape drive. During the boot sequence, FreeBSD pauses to wait for the SCSI devices to settle. Then, I receive the following message (probe79:ahd0:0:4:0: Probable outgoing LQ CRC error. Retrying command. I have moved the card to a different slot with the same results, replaced the cable, etc. If I do not power on the tape drive, the system will boot normally. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD wireless connection problems
Ladies and Gentlemen, I have a development box which is connected to the wireless network via an Intellinet wireless bridge. Periodically, the development box will no longer pass data on the network. However, checking the access point, I can see the bridge is still associated with the access point and is reporting the correct IP address. I am running FreeBSD 7.2 on the development box, running the em driver for the network card. The wireless bridge is connected via an ethernet cable to the em0 interface. The wireless bridge is an Intellinet Wireless LAN Base Stand set to Bridge in Infrastructure mode. The access point is a Cisco 1131AG with 3 vlans. Only the guest SSID is not hidden. I am not connecting to the guest SSID. At first I thought this was a problem with the wireless bridge. However, connecting the bridge to a Windows box yields a stable connection. If I disable ARP Caching on the access point, clear the arp cache, and then re-enable ARP caching, (dot11 arp-cache optional) the system will reappear on the network. I have upgraded to the latest/greatest IOS for the access point without any improvement. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Inexpensive PCI-X SCSI Card
I am looking for an inexpensive, but reliable, PCI-X SCSI card that will support an HP Autoloader. Any suggestions? Am I best to go with an HP card? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: find command question
It has to wait for completion to see the exit status. Thanks. I misunderstood what I read. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
find command question
When using the find command with the -exec option, does the find command wait for the command being executed to finish before returning the next result? For example, if I am using find -exec {} to copy files to tape, will find wait for the command to write the file to tape complete before it returns the next result? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Controllers/Drives renumbered
Earlier today, I installed a new HP SCSI (HP SmartArray 642)controller and an HP Drive Array in my company's HP ML 350 G5. The system drive which had been da0 became da1 and the new controller became da0. Unfortunately, I cannot rearrange the controllers in the system since one is PCI-X and one is PCI Express. Is it possible to force FreeBSD 6.2 to detect the cards in a particular order so my drives are not renumbered. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ldapsearch question
I am running the following against an Active Directory server. ldapsearch -D cn=admin_user,cn=users,dc=xx,dc=com -x -w password - h 10.129.10.42 -p 3268 -b 'dc=abc,dc=com' -s sub '(! (objectclass=computer))' '(!(mail=*))' dn mail I am trying to return only objects for which the mail attribute is defined. I think my search is incorrect, and I am searching for the mail attribute being null. Any suggestions would be greatly appreciated. Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ldapsearch question
On Jan 18, 2009, at 9:53 PM, Olivier Nicole wrote: That's right, (!(mail=*)) means everything where mail is null. You would like to search for mail=*, meaning everything where mail is not null. I receive the same results using mail=*. Following is the latest ldapsearch command. ldapsearch -D cn=admin_user,cn=users,dc=xx,dc=com -x -w password - h 10.129.10.42 -p 3268 -b 'dc=abc,dc=com' -s sub '(! (objectclass=computer))' '(mail=*)' dn mail Is it possible to search on the attribute, mail, not being present? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ldapsearch question
On Jan 18, 2009, at 10:32 PM, Dan Nelson wrote: Your search filter is currently (!(objectclass=computer)) , and you are asking for the attributes (!(mail=*)), dn, and mail to be returned. I think you want this: '((!(objectclass=computer))(mail=*))' i.e. (objectclass isn't computer) AND (mail attribute is present). http://tools.ietf.org/html/rfc2254 Thank you this is exactly what I was trying to do. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
NFS or an alternative?
I am in the process of redesigning my organization's network. And, since we will be using mostly Macintosh OS X clients, I am considering using NFS. However, I will need the ability to perform user/group authentication since users may not always log in from the same PC. Essentially, each user has a home directory which only they, and possibly their secretary, needs to have access to. And, we have directories which groups of people need access to. From the reading I have done this evening, my understanding is NFSv4 will meet all of these needs. Is this correct? And, is there a better way to accomplish this? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Bypassing Transparent Proxy
Ladies and Gentlemen, A situation has arisen for which I need to bypass my transparent proxy server (Squid) for a ceratin IP address range. Following are the contents of my ipnat.rules file. map em1 192.d.e.f/24 - 0/32 map em1 from 10.a.b.c/24 to 69.147.83.33/32 - 0/32 rdr em0 0.0.0.0/0 port 80 - 10.x.y.z port 3128 tcp map em1 10.a.b.c/24 - 0/32 em1 is the external interface on my server. My thinking with the rules, was adding the map command before the rdr would prevent traffic destined for 69.147.83.33 from hitting the proxy server. Unfortunately, it did not work. Is there an easy way to bypass the proxy server when accessing this one address? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Autoloader Compatability
Ladies and Gentlemen, I am getting ready to start my journey into the world of tape autoloaders. At this point in time, I have an HP ML350-G5, and I am looking at an HP 1/8 G2 Tape Autoloader Ultrium 920. I did not find this device specifically listed on the compatability list. Where can I look to find out if this device will work with FBSD 7.0? Thanks, Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Perl 5.8.8 Compile
I received the same error with both make and gmake. Thanks, Jay On Thu, May 1, 2008 at 8:30 AM, Lowell Gilbert wrote: Jay Hall [EMAIL PROTECTED] writes: I am attempting to compile Perl 5.8.8 on FreeBSD 7.0-RELEASE. I make it through the configuration just fine, but when I attempt to run the make command, I receive the following error message. I am creating a custom install. The only parameter I am changing is the installation location. make: don't know how to make command-line. Stop. I have run make depend, and it finishes without any problems. I'm sure this is something simple I am missing because I have been looking at the problem for so long. Thanks in advance for your assistance. Even for non-standard location installs, I recommend using the ports instead of building yourself, but if you really want to do it by hand, expect to need to know a bit more about what you're doing. In this case, I suspect you need to use gmake instead of (the native) make. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Perl 5.8.8 Compile
I am attempting to compile Perl 5.8.8 on FreeBSD 7.0-RELEASE. I make it through the configuration just fine, but when I attempt to run the make command, I receive the following error message. I am creating a custom install. The only parameter I am changing is the installation location. make: don't know how to make command-line. Stop. I have run make depend, and it finishes without any problems. I'm sure this is something simple I am missing because I have been looking at the problem for so long. Thanks in advance for your assistance. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mpd as a dial-up server
I am in the process of adding dial-up capabilities to the FreeBSD servers I maintain so in the event of a problem, if the server starts, I can at least dial in and see what is wrong and hopefully correct the problem. I already have mpd in place for the VPN connections. Is it possible to use mpd with cu or tip as a dial-in solution? At this point in time, I have been able to connect to the FreeBSD server, but only see garbage on the screen. My guess is that I have conflicting modem settings on each end, but I wanted to make sure what I was doing would work before continuing. Thanks for your help. Jay ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: panic: ufs_dirbad
I found the problem, and I think it might be hardware related. In order for the OS to install properly, I replaced the 80 wire cable with a 40 wire cable. Once the install was completed, I replaced the 80 wire cable and all is well. If anyone would like more information, please let me know. Jay Jay Hall wrote: Today, I have tried to install FBSD 4.10 on a Gateway 920 Server (Celeron 2.4 GHz, 128 MB RAM, 60 GB Maxtor DiamondMax Plus 9 HDD, two Intel Pro 10/100/1000 NICs). In order to make the server work correctly, I have to boot with hw.hasbrokenint12=1. After setting up the drive (fdisk and disklabel), the install begins just as it should. Shortly after creating the Emergency Holographic Shell, when the installation process starts to copy files, I receive a message stating, panic: ufs_dirbad bad dir syncing disks ... I have tried mutiple CDs downloaded from multiple sources with the same results. When this happens I am unable to use the shell created on VTY 4. I am able to install FreeBSD 4.8 without any problems on this system. Any suggestions would be greatly appreciated. Thanks in advance for your assistance. Jay ___ [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]
panic: ufs_dirbad
Today, I have tried to install FBSD 4.10 on a Gateway 920 Server (Celeron 2.4 GHz, 128 MB RAM, 60 GB Maxtor DiamondMax Plus 9 HDD, two Intel Pro 10/100/1000 NICs). In order to make the server work correctly, I have to boot with hw.hasbrokenint12=1. After setting up the drive (fdisk and disklabel), the install begins just as it should. Shortly after creating the Emergency Holographic Shell, when the installation process starts to copy files, I receive a message stating, panic: ufs_dirbad bad dir syncing disks ... I have tried mutiple CDs downloaded from multiple sources with the same results. When this happens I am unable to use the shell created on VTY 4. I am able to install FreeBSD 4.8 without any problems on this system. Any suggestions would be greatly appreciated. Thanks in advance for your assistance. Jay ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pptp and ppp
I have a FreeBSD server in one of the smaller offices I support using ppp and nat to provide an Internet connection to the people in the office. Now, they want to connect to the corporate network using pptp. My plan here is to simply connect the FreeBSD box to the corporate network using pptp and then allow the clients to use the FreeBSD box as their gateway to the corporate network. I am able to connect to the VPN using the pptpclient port without any problems. However, from the FreeBSD box, I am only able to ping the IP address assigned to tun1 (created by the VPN). The routes appear to be correct. Following is the output of netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default209.248.48.3 UGSc2 65 tun0 10.129/16 10.129.10.10 UGSc0 11 tun1 10.129.10.10 10.129.10.140 UH 22 tun1 127.0.0.1 127.0.0.1 UH 00lo0 192.168.40 10.129.10.10 UGSc00 tun1 209.248.48.3 209.248.48.149 UH 30 tun0 tun0 is created by ppp and tun1 is created by pptp. Following is my ppp.conf file. # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by [EMAIL PROTECTED] # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $ # default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that device references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa0 set speed 115200 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT set timeout 180# 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone AAA- set authname X set authkey Y set timeout 0 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 add default HISADDR # Add a (sticky) default route # nat enable yes mneavpn: set log phase chat lcp ipcp ccp tun command set timeout 0 # enable dns set authname C set authkey D # set mppe 128 stateless set ifaddr 0 0 add 10.129.0.0/16 HISADDR # add 172.16.8.0/255.255.248.0 HISADDR add 192.168.40.0/24 HISADDR # alias enable yes Following are the errors I am seeing in ppp.log Sep 16 16:19:10 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:10 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:13 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:13 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: Phase: deflink: HDLC errors - FCS: 0, ADDR: 0, COMD: 0, PROTO: 3 Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:31 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:31 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened These errors occur whenever I try to access something on the remote network via tun1. gateway_enable=YES is enabled in rc.conf and router_enable=NO is also set. Any suggestions as to what might be wrong would be greatly appreciated. I'm sure this is something simple that I have overlooked. Thanks in advance for your assistance. Jay Hall ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pptp and ppp
OK, I have some additional information from TCPDUMP and I'm not really sure what I am being told. Here is part of the output from tcpdump. 23:10:41.232115 ppp048076.usmo.com a.b.c.d: gre [KAv1] ID: A:241 [|gre] 23:10:41.241938 ppp048076.usmo.com a.b.c.d: gre [KSv1] ID: S:503 ppp: Prot-Rej(3), Rejected-Protocol=2145 23:10:41.558003 a.b.c.d ppp048076.usmo.com: gre [KAv1] ID:a3c6 A:503 [|gre] From what I can tell, I am connecting to the pptp server correctly, and the routes are being established, but I am unable to connect to any services on the remote network, or ping any hosts. Please let me know what additional information might be helpful Thanks, Jay Hall wrote: I have a FreeBSD server in one of the smaller offices I support using ppp and nat to provide an Internet connection to the people in the office. Now, they want to connect to the corporate network using pptp. My plan here is to simply connect the FreeBSD box to the corporate network using pptp and then allow the clients to use the FreeBSD box as their gateway to the corporate network. I am able to connect to the VPN using the pptpclient port without any problems. However, from the FreeBSD box, I am only able to ping the IP address assigned to tun1 (created by the VPN). The routes appear to be correct. Following is the output of netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default209.248.48.3 UGSc2 65 tun0 10.129/16 10.129.10.10 UGSc0 11 tun1 10.129.10.10 10.129.10.140 UH 22 tun1 127.0.0.1 127.0.0.1 UH 00lo0 192.168.40 10.129.10.10 UGSc00 tun1 209.248.48.3 209.248.48.149 UH 30 tun0 tun0 is created by ppp and tun1 is created by pptp. Following is my ppp.conf file. # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by [EMAIL PROTECTED] # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $ # default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that device references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa0 set speed 115200 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT set timeout 180# 3 minute idle timer (the default) enable dns# request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone AAA- set authname X set authkey Y set timeout 0 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 add default HISADDR# Add a (sticky) default route # nat enable yes mneavpn: set log phase chat lcp ipcp ccp tun command set timeout 0 # enable dns set authname C set authkey D # set mppe 128 stateless set ifaddr 0 0 add 10.129.0.0/16 HISADDR # add 172.16.8.0/255.255.248.0 HISADDR add 192.168.40.0/24 HISADDR # alias enable yes Following are the errors I am seeing in ppp.log Sep 16 16:19:10 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:10 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:13 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:13 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: Phase: deflink: HDLC errors - FCS: 0, ADDR: 0, COMD: 0, PROTO: 3 Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:19 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened Sep 16 16:19:31 MNEA-Springfield ppp[243]: tun1: Phase: Unknown protocol 0x2145 (unrecognised protocol) Sep 16 16:19:31 MNEA-Springfield ppp[243]: tun1: LCP: deflink: SendProtocolRej(3) state = Opened These errors occur whenever I try to access something on the remote network via tun1. gateway_enable=YES is enabled in rc.conf and router_enable=NO is also set. Any suggestions as to what might be wrong would be greatly appreciated. I'm sure this is something simple that I have overlooked. Thanks in advance for your assistance. Jay Hall ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED