Re: FreeBSD do dbus & hal work?
On Wed, Oct 15, 2008 at 08:36:39AM +0200, Aniruddha wrote: > On Tue, 2008-10-14 at 12:14 +0200, Dominique Goncalves wrote: > > Hi, > > > > On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote: > > > I'm trying to mount (USB) devices in KDE/Gnome automagically through > > > dbus and hal. I added the following lines to /etc/rc.conf: > > > > > > dbus_enable="YES" > > > hald_enable="YES" > > > > > > Unfortunately when I insert an USB (NTFS formatted) nothing happens. > > > When I insert a (fat) sdcard in my cardreader still nothing happens. > > > I do think I'm missing something obvious, who know what it is? > > > > Do a 'tail -f /var/log/messages' then insert your sd card and see > > what's going on. > > > > The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html. > > > > Thanks, I followed the faq to the letter and it show a dialog when I > insert a USB stick. Unfortunately when I insert an sdcard still nothing > happens. Can anyone confirm that dbus and/or hald have anything to do with this? (I thought those were specific to X...) When attaching a USB device to a USB port, the kernel will notice the device has been added and will do the proper enumeration. For example, when adding a USB hard disk or a USB pen drive, a umass device will be found, then a daX device should be created (which is what you use to access the disk; USB storage devices appear as SCSI disks). But in the case of a USB device that's already attached to the bus, e.g. one of those 7-in-1 card readers, I cannot see how adding a SD/MMC card would cause the hard disk to suddenly show up. You would need to run "camcontrol rescan 0", to cause the device to be re-scanned for any media which was inserted. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD do dbus & hal work?
On Tue, 2008-10-14 at 12:14 +0200, Dominique Goncalves wrote: > Hi, > > On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote: > > I'm trying to mount (USB) devices in KDE/Gnome automagically through > > dbus and hal. I added the following lines to /etc/rc.conf: > > > > dbus_enable="YES" > > hald_enable="YES" > > > > Unfortunately when I insert an USB (NTFS formatted) nothing happens. > > When I insert a (fat) sdcard in my cardreader still nothing happens. > > I do think I'm missing something obvious, who know what it is? > > Do a 'tail -f /var/log/messages' then insert your sd card and see > what's going on. > > The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html. > Thanks, I followed the faq to the letter and it show a dialog when I insert a USB stick. Unfortunately when I insert an sdcard still nothing happens. -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recommended linux_base for 8.0?
Steve Kargl <[EMAIL PROTECTED]> writes: > On Wed, Oct 15, 2008 at 09:33:39AM +0400, Boris Samorodov wrote: >> Steve Kargl <[EMAIL PROTECTED]> writes: >> >> > Which linux base port is recommended for FreeBSD-current on amd64? >> >> Well, the answer is "just install any linux application you need from >> ports/packages and the ports infrastructure will DTRT". ;-) > > matlab isn't in the ports collection. Yes. There is a PR about new port Matlab7 though. >> > linux_base-f7/ >> > linux_base-f8/ >> > linux_base-fc4/ >> > linux_base-fc6/ >> > linux_base-gentoo-stage1/ >> > linux_base-gentoo-stage2/ >> > linux_base-gentoo-stage3/ >> > >> > I currently have fc4 installed, but have run into some pthread >> > problems. >> >> This one is the default for now. > > % matlab >>> plotTAIHR_bin_30D > system error(34): __kmp_set_stack_info: pthread_getattr_np: Numerical result > out of range > OMP abort: fatal system error detected. > > hpc:kargl[206] pkg_info | grep linux_base > linux_base-fc-4_10 Base set of packages needed in Linux mode (for i386/amd64) > hpc:kargl[208] portversion -vl '<' | grep linux_base > linux_base-fc-4_10 < needs updating (port has 4_13) Since you don't have other linux ports at this system it will be not hard to test linux_base-f8 which is intended to become a new linux base default in the future. > Guess which port is broken? I'm not sure whether it's a port or a system blame. CCing to emulation@ since there are more sharp linuxulator eyes there. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
System lockup when out of space in /usr
Hi, FreeBSD ayiin.octantis.com.au 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #94: Wed Oct 15 09:46:16 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/AYIIN i386 I've noticed when /usr becomes full (due to a large port build or other reasons) that my computer becomes completely locked up - frozen. There is no panic or crash, the system starts becoming more and pegged down - load starts to climb, then system blocks intermittently for ever longing periods, load climbs over 30 and it never comes back from locked-land. Other than "don't let the system run out of disk space", is there any other fix? FWIW,i have 3 GELI md-backed volumes located + mounted in /usr/home/betom/ . b _ {Beto|Norberto|Numard} Meijome "Always do right. This will gratify some and astonish the rest." Mark Twain I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recommended linux_base for 8.0?
On Wed, Oct 15, 2008 at 09:33:39AM +0400, Boris Samorodov wrote: > Steve Kargl <[EMAIL PROTECTED]> writes: > > > Which linux base port is recommended for FreeBSD-current on amd64? > > Well, the answer is "just install any linux application you need from > ports/packages and the ports infrastructure will DTRT". ;-) matlab isn't in the ports collection. > > linux_base-f7/ > > linux_base-f8/ > > linux_base-fc4/ > > linux_base-fc6/ > > linux_base-gentoo-stage1/ > > linux_base-gentoo-stage2/ > > linux_base-gentoo-stage3/ > > > > I currently have fc4 installed, but have run into some pthread > > problems. > > This one is the default for now. % matlab >> plotTAIHR_bin_30D system error(34): __kmp_set_stack_info: pthread_getattr_np: Numerical result out of range OMP abort: fatal system error detected. hpc:kargl[206] pkg_info | grep linux_base linux_base-fc-4_10 Base set of packages needed in Linux mode (for i386/amd64) hpc:kargl[208] portversion -vl '<' | grep linux_base linux_base-fc-4_10 < needs updating (port has 4_13) Guess which port is broken? -- Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Recommended linux_base for 8.0?
Steve Kargl <[EMAIL PROTECTED]> writes: > Which linux base port is recommended for FreeBSD-current on amd64? Well, the answer is "just install any linux application you need from ports/packages and the ports infrastructure will DTRT". ;-) > linux_base-f7/ > linux_base-f8/ > linux_base-fc4/ > linux_base-fc6/ > linux_base-gentoo-stage1/ > linux_base-gentoo-stage2/ > linux_base-gentoo-stage3/ > > I currently have fc4 installed, but have run into some pthread > problems. This one is the default for now. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tracing pf code
yes, exact. thanks a lot! On Tue, Oct 14, 2008 at 6:02 PM, Max Laier <[EMAIL PROTECTED]> wrote: > On Wednesday 15 October 2008 02:47:46 alan yang wrote: >> hello, >> >> for pf port on freebsd, i would like to trace the packet flow, looking >> at from ether_input -> etiher_demux -> ip_input -> tcp_input where / >> how pf handles / process the packet. >> >> can people shed some lights where to start. really appreciate. > > ps hooks into the pfil(9) hook point in ip[6]_{in,out}put(). Look for calls > to "pfil_run_hooks" in the code. From there the call proceeds to the hook > functions defined in pf_ioctl.c pf_check_{in,out}[6]. > > The processing inside pf is best understood by looking at the following chart: > http://homepage.mac.com/quension/pf/flow.png > > Is this the information you are looking for? > > -- > /"\ Best regards, | [EMAIL PROTECTED] > \ / Max Laier | ICQ #67774661 > X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] > / \ ASCII Ribbon Campaign | Against HTML Mail and News > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Recommended linux_base for 8.0?
Which linux base port is recommended for FreeBSD-current on amd64? linux_base-f7/ linux_base-f8/ linux_base-fc4/ linux_base-fc6/ linux_base-gentoo-stage1/ linux_base-gentoo-stage2/ linux_base-gentoo-stage3/ I currently have fc4 installed, but have run into some pthread problems. -- Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
SATA devices not added/probed from ICH7 sata300 controller, FreeBSD7.0, 7.1beta, 8.0 Daily
Hi, I am not very familiar with using mailing lists so if I have made a mistake in the format or scope of the message please correct me. I am pretty desperate for an answer by now so any help at all is really very appreciated. I have a Shuttle SD30G2 computer (Specs: http://preview.tinyurl.com/3knjrp ) which utilizes the intel ICH7 southbridge for sata devices. I am currently running FreeBSD 7.0-STABLE. The issue is that although the sata controller is apparently detected correctly (It shows up by name in dmesg) the devices attached to it do not show up when running 'atacontrol list'. There are no errors produced on a normal boot, but booting in verbose mode produces a few repetetive messages that may be telling, although I am unable to decipher them. Some other symptoms; When booting from an installer or bootonly iso, the installer is unable to find the sata drive to install to and will exit with error. This applies to 7.0-release, 7.1 beta (From Oct 11), and the daily 8.0 bootonly (From may.) I have successfully installed Ubuntu 7.04 to the machine however, and it correctly installs and utilizes both the sata hard drive (ata2 in bsd) and the sata cdrom (ata3.) so this eliminates any possibility of the drive(s) or controller being faulty. and although I am currently using a custom built kernel, the fact that several bootonlys/installers cannot find the drive either would suggest it is not my configuration modifications which have caused this behavior. The full output from a verbose boot can be found here: http://pastebin.ca/1227417 ; The relevant (I think) section starts at roughly line #386 ("Intel ICH7 UDMA100 controller") where the first controller for the IDE drives are found. ata0 is probed successfully, ata1 is skipped (there are no devices attached here), and then the sata controller is found, but ata2 and ata3 appear to be probed incorrectly, spitting out a message like this a bunch of times before quietly failing: "ata2: stat0=0x7f err=0xff lsb=0xff msb=0xff". If this is the wrong mailing list, or I am in the wrong place entirely, please point me in the right direction, your help and time are appreciated. --John H ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tracing pf code
On Wednesday 15 October 2008 02:47:46 alan yang wrote: > hello, > > for pf port on freebsd, i would like to trace the packet flow, looking > at from ether_input -> etiher_demux -> ip_input -> tcp_input where / > how pf handles / process the packet. > > can people shed some lights where to start. really appreciate. ps hooks into the pfil(9) hook point in ip[6]_{in,out}put(). Look for calls to "pfil_run_hooks" in the code. From there the call proceeds to the hook functions defined in pf_ioctl.c pf_check_{in,out}[6]. The processing inside pf is best understood by looking at the following chart: http://homepage.mac.com/quension/pf/flow.png Is this the information you are looking for? -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
tracing pf code
hello, for pf port on freebsd, i would like to trace the packet flow, looking at from ether_input -> etiher_demux -> ip_input -> tcp_input where / how pf handles / process the packet. can people shed some lights where to start. really appreciate. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
virtualbox kBuild security
http://www.virtualbox.org/ticket/1499 http://wiki.archlinux.org/index.php/VirtualBox#Getting_USB_to_work_in_the_guest_machine Even though these issues relate to Linux hosts, I have had the same results while trying to build on FreeBSD. That which applies the PUEL release also applies to the OSE release. This problem still exists for FreeBSD amd64 when building VBox current. kBuild is still a security risk due to it changing permissions without the users consent. The developers have not stated if the qemu code used in vbox is current with that used in FreeBSD nor if the networking and image options- qemu related- needed to work on FreeBSD amd64 current have been added. Please do not reply to this message. _ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RES: FreeBSD 7 and ESXi
Same Here. ESXi U2 and FreeBSD 7 on AMD64 (Other 64-bits). Working Flawless. Vmware Box Setup: Gigabyte GA-945GCM-S2 . 2x 1GB DDR2 2x 500GB SATA2 Disks 1x 3COM 100mbit PCI Ethernet 1x HP PCI-Exp Giga Ethernet. No issue by now. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Steve Polyack Enviada em: terça-feira, 14 de outubro de 2008 18:10 Para: [EMAIL PROTECTED] Cc: Jeremy Chadwick; freebsd-questions@FreeBSD.org; Todor Genov; [EMAIL PROTECTED] Assunto: Re: FreeBSD 7 and ESXi [EMAIL PROTECTED] wrote: > Jeremy, > > On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > > |On Tue, Oct 14, 2008 at 02:44:13AM -0300, [EMAIL PROTECTED] wrote: > |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > |> > |> |On Tue, Oct 14, 2008 at 02:04:07AM -0300, [EMAIL PROTECTED] wrote: > |> |> Jeremy, > |> |> > |> |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > |> |> > |> |> |On Tue, Oct 14, 2008 at 12:54:26AM -0300, [EMAIL PROTECTED] wrote: > |> |> |> I'm facing some problems trying to install a FreeBSD > |> |> |> 7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. > |> |> |> After (FBSD) boot menu count down, it shows a dump of the CPU > |> |> |> registers and a message: BTX Halted. No matter what is changed in VM > |> |> |> setup. > |> |> | > |> |> |Can you please download the 7.1-BETA2 ISO and try it instead? There > |> |> |have been changes to the FreeBSD boot loader between 7.0-RELEASE and > |> |> |7.1-BETA2 which may improve things for you. The 7.1-BETA2 ISOs are > |> |> |available here: > |> |> > |> |> The same behavior with 7.1-BETA2. > |> | > |> |I'm not sure what to do at this point, or what to tell you, since the > |> |kernel can't even load. > |> | > |> |Are you installing this off of CD, and is the CD drive hooked up to > |> |the PC via ATA/SATA (rather than USB or something else)? > |> > |>It's a bit more complicated, since, for some reason the Vmware > |> client is unable to boot the VM from CD on the host server. It's > |> booting an ISO image on the client machine. > |>I already read something saying that it's a known issue of the > |> ESXi. > |>Without the virtulization layer, the amd64 CD boots without > |> problems in this machine. > | > |Ah, so the truth comes out... :-) > | > |Have you brought this fact up with the VMware folks? They're quite a > |nice bunch, I wouldn't be surprised if they provided a hotfix for you > |for this problem. > > This will be my next step. > I sent here first, once it's a boot loader problem, specific to > 64bits version of Fbsd. I thought someone could faced the same and came > with a howto to workaround. > > Thank you anyway. :-) > > - Marcelo > > Are you sure that you have chosen Other (64-bit) selected for the Guest OS type? I have never had an issue with using FreeBSD on ESXi. Currently running VMs include 6.3, 7.0, and 7.1-PRE. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" __ Information from ESET NOD32 Antivirus, version of virus signature database 3520 (20081014) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3520 (20081014) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
YADQ.
Yes, folks, another dippy question: is there an *easy* way of installing X11 on sage? [ sage is the engine of my one-jail server; it is very slow--400MHz--but I'd like to be able to run CTWM for root ] It's got a Matrox Millennium card with (32M of memory). tia, guys, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
nmap and Nessus in a jail -- scans fail
Hi all, Running 7.0-RELEASE-p2, I set up a jail from which to perform NMAP and Nessus scans. I set the sysctl security.jail.allow_raw_sockets=1, which I expected to prevent any problems. Unfortunately, I'm getting this whenever I try to NMAP: $ sudo nmap -P0 localhost Starting Nmap 4.76 ( http://nmap.org ) at 2008-10-14 16:56 CDT WARNING: Unable to find appropriate interface for system route to xxx.xx.xx.xx WARNING: Unable to find appropriate interface for system route to 127.0.0.1 nexthost: failed to determine route to 127.0.0.1 QUITTING! Nessus scans fail shortly after being started if port scanning is enabled. If port scanning is disabled, the vulnerability scan succeeds. Identical configurations outside of a jail work just fine, which lead me to believe that the Nessus and NMAP issues are related to the processes being jailed. $ sysctl -a | grep jail security.jail.jailed: 1 security.jail.mount_allowed: 0 security.jail.chflags_allowed: 1 security.jail.allow_raw_sockets: 1 security.jail.enforce_statfs: 2 security.jail.sysvipc_allowed: 0 security.jail.socket_unixiproute_only: 1 security.jail.set_hostname_allowed: 1 Anyone have any hope for me? Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: brasero
you need cam and atapicam to record DVD BTW it's much easier to use command line tools to record discs. /usr/ports/sysutils/growisofs to record from image: growisofs -dvd-compat -Z /dev/cd0=imagefile to record ISO DVD growisofs -dvd-compat -Z /dev/cd0 -r . (or -rJ to be Joliet compatible) of course - read manuals for more. On Tue, 14 Oct 2008, Dánielisz László wrote: hello! I just installed Brasero and because a strange reason I can not select any dvd writer drive, I included device atapicam to my kernel? Do you have any idea what can I try? Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: KDE 4 Cannot run as regular user
On Wednesday 08 October 2008 07:58:14 Tom Stuart wrote: > Hello, > > I just installed KDE4 via ports and am getting errors upon attempting > to start as a "regular" user. When I run startkde as root it works > fine but I don't want to use root on this machine. > > Error Generated when started as a regular user > $ startx > /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by > "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, > required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not > found, required by "xauth" /libexec/ld-elf.so.1: Shared object > "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared > object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: > Shared object "libX11.so.6" not found, required by "xinit" > /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by > "xauth" > > The files are there > $ ls -l /usr/local/lib/libXau.so /usr/local/lib/libX11.so > lrwxr-xr-x 1 root wheel 11 Oct 6 03:09 /usr/local/lib/libX11.so -> > libX11.so.6 > lrwxr-xr-x 1 root wheel 11 Oct 6 03:06 /usr/local/lib/libXau.so -> > libXau.so.6 Where the files are on your system is of no concern. Whether ld(1) knows where they are is. ldconfig -r |grep Xau should show /usr/local/lib/libXau.so.6, if not, ldconfig -m /usr/local/lib run as root should fix your problem. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 7 and ESXi
[EMAIL PROTECTED] wrote: Jeremy, On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |On Tue, Oct 14, 2008 at 02:44:13AM -0300, [EMAIL PROTECTED] wrote: |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |On Tue, Oct 14, 2008 at 02:04:07AM -0300, [EMAIL PROTECTED] wrote: |> |> Jeremy, |> |> |> |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |> |> |On Tue, Oct 14, 2008 at 12:54:26AM -0300, [EMAIL PROTECTED] wrote: |> |> |> I'm facing some problems trying to install a FreeBSD |> |> |> 7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. |> |> |> After (FBSD) boot menu count down, it shows a dump of the CPU |> |> |> registers and a message: BTX Halted. No matter what is changed in VM |> |> |> setup. |> |> | |> |> |Can you please download the 7.1-BETA2 ISO and try it instead? There |> |> |have been changes to the FreeBSD boot loader between 7.0-RELEASE and |> |> |7.1-BETA2 which may improve things for you. The 7.1-BETA2 ISOs are |> |> |available here: |> |> |> |> The same behavior with 7.1-BETA2. |> | |> |I'm not sure what to do at this point, or what to tell you, since the |> |kernel can't even load. |> | |> |Are you installing this off of CD, and is the CD drive hooked up to |> |the PC via ATA/SATA (rather than USB or something else)? |> |> It's a bit more complicated, since, for some reason the Vmware |> client is unable to boot the VM from CD on the host server. It's |> booting an ISO image on the client machine. |> I already read something saying that it's a known issue of the |> ESXi. |> Without the virtulization layer, the amd64 CD boots without |> problems in this machine. | |Ah, so the truth comes out... :-) | |Have you brought this fact up with the VMware folks? They're quite a |nice bunch, I wouldn't be surprised if they provided a hotfix for you |for this problem. This will be my next step. I sent here first, once it's a boot loader problem, specific to 64bits version of Fbsd. I thought someone could faced the same and came with a howto to workaround. Thank you anyway. :-) - Marcelo ___ Also, to eliminate any chance of this being hardware-related, I am also running this on a Dell PE2950 with a similar configuration. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: php5 segfault
On Thursday 09 October 2008 12:00:47 Jeremy Chadwick wrote: > On Thu, Oct 09, 2008 at 11:53:11AM +0200, Laszlo Nagy wrote: > >>> There are no options to configure in php5-pgsql. > >>> > >>> I tried to change the order or module in extensions.ini, no success so > >>> far. > >> > >> Then my recommendation is to build PHP with DEBUG enabled (see "make > >> config"), reproduce the situation, and provide a backtrace here. > > > > Problem solved. I put pgsql.so on top of all other modules and now there > > is no segfault. Thank you! > > I thought you said you changed the order and it didn't work? *confused* > > > Although I do not understand why it has not been fixed. The same > > problem existed two years ago, right? > > What "problem" are you referring to? The extension ordering issue? > > If so: it should be obvious why it hasn't been fixed. It doesn't appear > to affect everyone -- for example, we have never seen this problem in > the 4-5 years we've been using PHP on FreeBSD -- and the solution > doesn't really make much sense anyway. Just browse the archive of this list to see how many times it came up. Everyone is quite arbitrary. Just cause you never hit it, doesn't mean it's random. I've traced it to zend_module_shutdown, but then hit stuff I don't understand, namely, dlclose(3), specifically _fini() and how the zend engine uses it and why it's not working right. I hit ENOTIME, when trying to unwrap the code there. These two notes are in my extensions.ini: ; NOTE: spl makes php coredump if loaded after pspell ; NOTE 2: simplexml makes php coredump if loaded after pspell I don't have pspell anymore, since I stopped using it, but maybe you can then reproduce it. If not, I can provide you with a full extensions.ini that will coredump on shutdown 100% of the time (for me at least). What I remember from my tracing attempts is that extensions are expected to clean up their recourses (as in php resources, the library context handlers). At the same time, modules are unloaded in reverse order as they are loaded. In the case where Module A needs Module B, module B needs to be loaded first, but is unloaded last. My prime suspect was that Module A frees it's resources, but Module B still has a ref to it in it's own resource. However, I dind't find that criminal. For me it was a matter of "I can spend a few days tracking it down or just re-order my extensions". Where the culprit is is hard to tell, since people report this doesn't happen on other platforms, it can be a FreeBSD specific problem with how it handles dlclose() and/or garbage collection magic, or it's a problem within php that is as you suspect, being worked around on other platforms by package managers. > It smells of a missing symbol > problem (e.g. libxx.so wants a symbol named "hello_bob", but the symbol > is available in libyy.so, which has to be loaded first; however, ld.so > and dlopen(3) have explicit handling for this scenario (see RTLD_NOW vs. > RTLD_LAZY), so I'm at a loss). Missing symbols happen also, but then no segfaults, simply php won't start (obviously). Easily traceable by module dependencies. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: brasero
Thank you! I will try it right now. - Original Message From: Manolis Kiagias <[EMAIL PROTECTED]> To: Dánielisz László <[EMAIL PROTECTED]> Cc: freebsd-questions@freebsd.org Sent: Tuesday, October 14, 2008 10:08:26 PM Subject: Re: brasero Dánielisz László wrote: > hello! > > I just installed Brasero and because a strange reason I can not select any > dvd writer drive, I included device atapicam to my kernel? > > Do you have any idea what can I try? > > > Laci > > > While I have not used brasero on FreeBSD, I know (from k3b) that you will need several other settings. It all boils down to giving a normal user permissions to use the CD/DVD recorder device. Both brasero and k3b depend on ports like sysutils/cdrdao, sysutils/cdrtools and sysutils/dvd+rw-tools. You can find these settings in the info for k3b: cd /usr/ports/sysutils/k3b make showinfo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: brasero
Dánielisz László wrote: hello! I just installed Brasero and because a strange reason I can not select any dvd writer drive, I included device atapicam to my kernel? Do you have any idea what can I try? Laci While I have not used brasero on FreeBSD, I know (from k3b) that you will need several other settings. It all boils down to giving a normal user permissions to use the CD/DVD recorder device. Both brasero and k3b depend on ports like sysutils/cdrdao, sysutils/cdrtools and sysutils/dvd+rw-tools. You can find these settings in the info for k3b: cd /usr/ports/sysutils/k3b make showinfo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 7 and ESXi
[EMAIL PROTECTED] wrote: Jeremy, On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |On Tue, Oct 14, 2008 at 02:44:13AM -0300, [EMAIL PROTECTED] wrote: |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |On Tue, Oct 14, 2008 at 02:04:07AM -0300, [EMAIL PROTECTED] wrote: |> |> Jeremy, |> |> |> |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |> |> |On Tue, Oct 14, 2008 at 12:54:26AM -0300, [EMAIL PROTECTED] wrote: |> |> |> I'm facing some problems trying to install a FreeBSD |> |> |> 7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. |> |> |> After (FBSD) boot menu count down, it shows a dump of the CPU |> |> |> registers and a message: BTX Halted. No matter what is changed in VM |> |> |> setup. |> |> | |> |> |Can you please download the 7.1-BETA2 ISO and try it instead? There |> |> |have been changes to the FreeBSD boot loader between 7.0-RELEASE and |> |> |7.1-BETA2 which may improve things for you. The 7.1-BETA2 ISOs are |> |> |available here: |> |> |> |> The same behavior with 7.1-BETA2. |> | |> |I'm not sure what to do at this point, or what to tell you, since the |> |kernel can't even load. |> | |> |Are you installing this off of CD, and is the CD drive hooked up to |> |the PC via ATA/SATA (rather than USB or something else)? |> |> It's a bit more complicated, since, for some reason the Vmware |> client is unable to boot the VM from CD on the host server. It's |> booting an ISO image on the client machine. |> I already read something saying that it's a known issue of the |> ESXi. |> Without the virtulization layer, the amd64 CD boots without |> problems in this machine. | |Ah, so the truth comes out... :-) | |Have you brought this fact up with the VMware folks? They're quite a |nice bunch, I wouldn't be surprised if they provided a hotfix for you |for this problem. This will be my next step. I sent here first, once it's a boot loader problem, specific to 64bits version of Fbsd. I thought someone could faced the same and came with a howto to workaround. Thank you anyway. :-) - Marcelo Are you sure that you have chosen Other (64-bit) selected for the Guest OS type? I have never had an issue with using FreeBSD on ESXi. Currently running VMs include 6.3, 7.0, and 7.1-PRE. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mailman + Apache + Cookies + FreeBSD
On 10/09/08 14:59, Grant Peel wrote: > Hi all, > > I am not a fan of cross posting, but, I have to make a exception in this > case as I can't seem to nail down whether its the software or OS causing > me the problem. > > Software: Apache 2.2, Python 2.5, Mailmain 2.1.11 > OS: FreeBSD 6.2 Release #0 > > Apache and Python were built from ports, Mailman was built from source. > > Problem: I can't stay logged into the Mailman web interface. Each time I > submit a form, I am logged out. When I do log in, If I look on my local > machine, I cant find a session cookie anywhere. It like is never set. > And the Mailman documentation clearly states that none of the changes > will be saved in that scenario. > > Question: are there any people out there who can point me in the right > direction? I assume that Python should be setting a cookie, but thats > just a guess ... could it be OS related? Is your Mailman web interface served over https? If so, you might want to check that DEFAULT_URL_PATTERN is set correctly in mm_cfg.py, for instance: DEFAULT_URL_PATTERN = 'https://%s/mailman/' -- Benjamin Lee signature.asc Description: OpenPGP digital signature
Re: Can't login as root after changing the shell to bash
On Tue, 2008-10-14 at 12:27 -0700, Jeremy Chadwick wrote: > On Tue, Oct 14, 2008 at 09:17:38PM +0200, Aniruddha wrote: > > On Tue, 2008-10-14 at 11:37 -0700, Jeremy Chadwick wrote: > > > On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > > > > I tried to change the root's shell to bash. I used this command: 'chsh > > > > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > > > > for my user account using the same command without problems. > > > > Unfortunately after a reboot I can't login as root anymore because my > > > > system can't find /usr/local/bin/bash. > > > > > > I can't explain why your systems says it can't find /usr/local/bin/bash. > > > I would assume you also cannot log in as yourself. > > > > Thanks for your help! I changed the default shell back to /bin/csh but I > > still can't login as root?! I get the same message (can't > > find /bin/csh). > > I can't explain this. Possibly there's a permissions or ownership > problem on the / directory (ls -ld / will show you that)? I've no idea; > sounds odd. > Sorry for the confusion. I just checked with vipw and somehow there got a dot behind /dev/csh :# Thanks for the help! I learned a lot. -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, Oct 14, 2008 at 03:20:24PM -0400, Jerry McAllister wrote: > On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > > > I tried to change the root's shell to bash. I used this command: 'chsh > > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > > for my user account using the same command without problems. > > Unfortunately after a reboot I can't login as root anymore because my > > system can't find /usr/local/bin/bash. How can I fix this? I tried > > booting the freesbie cd but this wouldn't boot :(. Thanks in advance! > > Sounds like /usr/local/bin is either not in the path for root or > that the /usr or /usr/local file system is not mounted - which would > be true in a single user boot. > > You should never change root's shell. It is doable if you move > some files around, but it is too likely that you will come up with > a situation like this where the alternate shell is not available. > > You can try coming up in 'single user' mode. > Older systems required you to hit the space bar within the countdown. > Newer ones require you to select the right option from a menu. I think > it is '4' but don't want to reboot at the minute to check. > > It will ask you which shell you want. Just take the default (eg hit ENTER). > Then remount / by doing: > mount -u / > Then edit /etc/passwd using the vipw(8) utility - just type: > vipw Note that he'll need to mount /var and /tmp for vi to work. Has to do with use of temporary files being placed in /tmp, and recovery files using /var/tmp/vi.recover. It's usually best to just do: # mount -a # mount -o rw -u / Which under ideal circumstances should take care of everything. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
brasero
hello! I just installed Brasero and because a strange reason I can not select any dvd writer drive, I included device atapicam to my kernel? Do you have any idea what can I try? Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, Oct 14, 2008 at 09:17:38PM +0200, Aniruddha wrote: > On Tue, 2008-10-14 at 11:37 -0700, Jeremy Chadwick wrote: > > On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > > > I tried to change the root's shell to bash. I used this command: 'chsh > > > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > > > for my user account using the same command without problems. > > > Unfortunately after a reboot I can't login as root anymore because my > > > system can't find /usr/local/bin/bash. > > > > I can't explain why your systems says it can't find /usr/local/bin/bash. > > I would assume you also cannot log in as yourself. > > Thanks for your help! I changed the default shell back to /bin/csh but I > still can't login as root?! I get the same message (can't > find /bin/csh). I can't explain this. Possibly there's a permissions or ownership problem on the / directory (ls -ld / will show you that)? I've no idea; sounds odd. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, Oct 14, 2008 at 09:17:38PM +0200, Aniruddha wrote: > On Tue, 2008-10-14 at 11:37 -0700, Jeremy Chadwick wrote: > > On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > > > I tried to change the root's shell to bash. I used this command: 'chsh > > > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > > > for my user account using the same command without problems. > > > Unfortunately after a reboot I can't login as root anymore because my > > > system can't find /usr/local/bin/bash. > > > > I can't explain why your systems says it can't find /usr/local/bin/bash. > > I would assume you also cannot log in as yourself. > > Thanks for your help! I changed the default shell back to /bin/csh but I > still can't login as root?! I get the same message (can't > find /bin/csh). Your path is most likely screwed up.Probably it never got set correctly. Can you reboot? jerry > > -- > Regards, > > Aniruddha > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > I tried to change the root's shell to bash. I used this command: 'chsh > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > for my user account using the same command without problems. > Unfortunately after a reboot I can't login as root anymore because my > system can't find /usr/local/bin/bash. How can I fix this? I tried > booting the freesbie cd but this wouldn't boot :(. Thanks in advance! Sounds like /usr/local/bin is either not in the path for root or that the /usr or /usr/local file system is not mounted - which would be true in a single user boot. You should never change root's shell. It is doable if you move some files around, but it is too likely that you will come up with a situation like this where the alternate shell is not available. You can try coming up in 'single user' mode. Older systems required you to hit the space bar within the countdown. Newer ones require you to select the right option from a menu. I think it is '4' but don't want to reboot at the minute to check. It will ask you which shell you want. Just take the default (eg hit ENTER). Then remount / by doing: mount -u / Then edit /etc/passwd using the vipw(8) utility - just type: vipw It is just like using vi. Change your shell back to /bin/csh The shell is the last field in the line for the root account. Then, either reboot or just exit the single user mode and come up in full boot. If you absolutely must degenerate to using bash on a root account, create another root acount.Just go in to vipw and copy the root account line and replace the fields needed - namely the id, the name stuff, the login directory and the shell field. Of course, do not change the original root line. Suggestion, for example, if your usual account might be clyde, then make a root account called Rclyde. Make a home directory of /root/Rclyde.Don't forget to go and create that directory. It you can live without making that alternate root account, it is better to log in with your non-root account and then su(1) to get to root.Don't forget to add your non-root account to the 'wheel' group. Edit the /etc/group file. This is safer than logging in over the net directly to a root account because you can make sure your transmissions are encripted before going in to root. jerry > -- > Regards, > > Aniruddha > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, 2008-10-14 at 11:37 -0700, Jeremy Chadwick wrote: > On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > > I tried to change the root's shell to bash. I used this command: 'chsh > > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > > for my user account using the same command without problems. > > Unfortunately after a reboot I can't login as root anymore because my > > system can't find /usr/local/bin/bash. > > I can't explain why your systems says it can't find /usr/local/bin/bash. > I would assume you also cannot log in as yourself. Thanks for your help! I changed the default shell back to /bin/csh but I still can't login as root?! I get the same message (can't find /bin/csh). -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mktime() output not the same as the date utility
On Tue, Oct 14, 2008 at 1:50 PM, Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 12:43:54PM -0400, Mark B. wrote: >> I can't figure out from the man pages why >> mktime() is giving a different result than date -f. >> Both strptime and mktime are supposed to use the >> local timezone, as does date. >> >> The output of date is correct; mktime() is an hour later. >> >> What am I missing here? > > I'm betting it's due to DST > Yes, set tm_isdst to -1 before calling mktime() and then my test program works as expected. Thanks, m ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 7 and ESXi
On Tuesday 14 October 2008 08:20:22 am [EMAIL PROTECTED] wrote: > Jeremy, > > On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > > |On Tue, Oct 14, 2008 at 02:44:13AM -0300, [EMAIL PROTECTED] wrote: > |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > |> > |> |On Tue, Oct 14, 2008 at 02:04:07AM -0300, [EMAIL PROTECTED] wrote: > |> |> Jeremy, > |> |> > |> |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: > |> |> > |> |> |On Tue, Oct 14, 2008 at 12:54:26AM -0300, [EMAIL PROTECTED] wrote: > |> |> |> I'm facing some problems trying to install a FreeBSD > |> |> |> 7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. > |> |> |> After (FBSD) boot menu count down, it shows a dump of the CPU > |> |> |> registers and a message: BTX Halted. No matter what is changed in VM > |> |> |> setup. > |> |> | > |> |> |Can you please download the 7.1-BETA2 ISO and try it instead? There > |> |> |have been changes to the FreeBSD boot loader between 7.0-RELEASE and > |> |> |7.1-BETA2 which may improve things for you. The 7.1-BETA2 ISOs are > |> |> |available here: > |> |> > |> |> The same behavior with 7.1-BETA2. > |> | > |> |I'm not sure what to do at this point, or what to tell you, since the > |> |kernel can't even load. > |> | > |> |Are you installing this off of CD, and is the CD drive hooked up to > |> |the PC via ATA/SATA (rather than USB or something else)? > |> > |>It's a bit more complicated, since, for some reason the Vmware > |> client is unable to boot the VM from CD on the host server. It's > |> booting an ISO image on the client machine. > |>I already read something saying that it's a known issue of the > |> ESXi. > |>Without the virtulization layer, the amd64 CD boots without > |> problems in this machine. > | > |Ah, so the truth comes out... :-) > | > |Have you brought this fact up with the VMware folks? They're quite a > |nice bunch, I wouldn't be surprised if they provided a hotfix for you > |for this problem. > > This will be my next step. > I sent here first, once it's a boot loader problem, specific to > 64bits version of Fbsd. I thought someone could faced the same and came > with a howto to workaround. > > Thank you anyway. :-) It sounds like vmware is not emulating 64-bit CPUs, but only 32-bit CPUs. -- John Baldwin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't login as root after changing the shell to bash
On Tue, Oct 14, 2008 at 08:28:13PM +0200, Aniruddha wrote: > I tried to change the root's shell to bash. I used this command: 'chsh > -s /usr/local/bin/bash'. Prior to changing the shell for root I did it > for my user account using the same command without problems. > Unfortunately after a reboot I can't login as root anymore because my > system can't find /usr/local/bin/bash. I can't explain why your systems says it can't find /usr/local/bin/bash. I would assume you also cannot log in as yourself. You should not change root's shell. I believe this has been discussed many times in the past on lists -- you should use tools like sudo or su2 to change UIDs. Both of those tools will allow you to take on root credentials while using the shell of your user account (bash). > How can I fix this? I tried booting the freesbie cd but this > wouldn't boot :(. Thanks in advance! You'll need to boot your machine and at the FreeBSD boot menu, choose option 4 for single-user mode. You'll eventually be dropped into a simple /bin/sh prompt. You'll need to do "mount -a", then use "vipw" to edit all of the fields in /etc/master.passwd -- specifically, change root's shell back to /bin/csh. Write the file, exit vipw, and reboot the system. You should be up and working after that. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
no access to web server behind ipfw
Dear All, I think I need help from the group. The situation is kind of simple, but I can not get it work for me. I wanted to access to a web server behind of firewall/gateway 191.168.1.1 (firewall/gateway/natd) 192.168.1.10 (internal web server) 191.168.1.1 has these info. = FreeBSD 5.3-RELEASE-p26 Kernel complied with following lines: optionsIPFIREWALL optionsIPFIREWALL_VERBOSE optionsIPFIREWALL_VERBOSE_LIMIT=5 optionsIPDIVERT rc.conf has those lines: - # Add stuff for firewall - ipfw firewall_enable="YES" firewall_type="OPEN" firewall_script="/etc/ipfw.rules" firewall_logging="YES" gateway_enable="YES" # Enable natd. natd_enable="YES" natd_interface="fxp0" #natd_flags="-dynamic -m" # preserve port numbers if possible natd_flags="-f /etc/natd.conf" # preserve port numbers if possible /etc/natd.conf port 8668 interface fxp0 redirect_port tcp 192.168.1.10:80 80 /etc/ipfw.rules #!/bin/sh ipfw -q -f flush cmd="ipfw -q add" skip="skipto 500" pif=fxp0 ks="keep-state" good_tcpo="22" ipfw -q -f flush $cmd 002 allow all from any to any via em0 # exclude LAN traffic $cmd 003 allow all from any to any via lo0 # exclude loopback traffic $cmd 100 divert natd ip from any to any in via $pif $cmd 101 check-state # Authorized outbound packets $cmd 120 $skip udp from any to x.x.x.11 53 out via $pif $ks $cmd 121 $skip udp from any to x.x.x.12 53 out via $pif $ks ## --> block only one PC running windows (192.168.1.2) $cmd 123 deny tcp from 192.168.1.2 to any 80 out via $pif $cmd 124 $skip tcp from any to any 80 out via $pif setup $ks # $cmd 129 $skip tcp from any to any $good_tcpo out via $pif setup $ks $cmd 130 $skip icmp from any to any out via $pif $ks $cmd 135 $skip udp from any to any 123 out via $pif $ks # root can do cvsup etc. like a GOD $cmd 140 allow tcp from me to any out via $pif $ks uid root # Deny all inbound traffic from non-routable reserved address spaces $cmd 300 deny all from 192.168.0.0/16 to any in via $pif #RFC 1918 private IP $cmd 301 deny all from 172.16.0.0/12 to any in via $pif #RFC 1918 private IP $cmd 302 deny all from 10.0.0.0/8 to any in via $pif #RFC 1918 private IP $cmd 303 deny all from 127.0.0.0/8 to any in via $pif #loopback $cmd 304 deny all from 0.0.0.0/8 to any in via $pif #loopback $cmd 305 deny all from 169.254.0.0/16 to any in via $pif #DHCP auto-config $cmd 306 deny all from 192.0.2.0/24to any in via $pif #reserved for docs $cmd 307 deny all from 204.152.64.0/23 to any in via $pif #Sun cluster $cmd 308 deny all from 224.0.0.0/3 to any in via $pif #Class D & E multicast # Authorized inbound packets $cmd 421 allow tcp from any to 192.168.1.10 80 in via $pif setup limit src-addr 5 $cmd 450 deny log ip from any to any # This is skipto location for outbound stateful rules $cmd 500 divert natd ip from any to any out via $pif $cmd 510 allow ip from any to any end of rules ## apparently rule 421 is not enough to access the webserver 192.168.1.10 at port 80. I need help here. Thanks, Chen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Can't login as root after changing the shell to bash
I tried to change the root's shell to bash. I used this command: 'chsh -s /usr/local/bin/bash'. Prior to changing the shell for root I did it for my user account using the same command without problems. Unfortunately after a reboot I can't login as root anymore because my system can't find /usr/local/bin/bash. How can I fix this? I tried booting the freesbie cd but this wouldn't boot :(. Thanks in advance! -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD reference installations?
Nejc Skoberne wrote: Hello, is there any list of FreeBSD reference installations? Like a list of big companies that use FreeBSD as their core servers? Thanks, Nejc ___ You may have some luck looking around and/or contacting the FreeBSD Advocacy Project - http://www.freebsd.org/advocacy/ They also have their own mailing list. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, 14 Oct 2008 15:35:31 +0300, Manolis Kiagias <[EMAIL PROTECTED]> wrote: > Giorgos Keramidas wrote: >> Adding a few options in `loader.conf' should preload IPFW and DIVERT in >> the running kernel: >> >> ipfw_load="YES" >> ipdivert_load="YES" >> >> Then the rest of the `rc.conf' options described in the current text >> work as expected. >> >> I can't boot my 6.2-RELEASE installation today to verify that this works >> in that version too, but if you have one around and it seems to work, >> let me know and I'll handle the doc bits :-) > > FWIW, both modules load fine in my VMWare based 6.2-RELEASE. Thanks :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
usb keeps disconnecting on Freebsd 6.3 amd box
Hi peeps, On my AMD64 box running freebsd 6.3 I have a lot of trouble with my usb ports lately. I have attached a samsung ml-1610 printer to one usb port, but I do experience the same when I plug in a usb stick (kingston data traveller). Take a look at what dmesg says: module_register_init: MOD_LOAD (logo_saver, 0xb4ecf3d0, 0) error 19 ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offline ulpt0: offlin
Re: mktime() output not the same as the date utility
On Tue, Oct 14, 2008 at 12:43:54PM -0400, Mark B. wrote: > I can't figure out from the man pages why > mktime() is giving a different result than date -f. > Both strptime and mktime are supposed to use the > local timezone, as does date. > > The output of date is correct; mktime() is an hour later. > > What am I missing here? I'm betting it's due to DST I believe you have to do the math yourself if tm_isdst is non-zero. Otherwise, consider using functions like ctime() and others (which are also POSIX compliant). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD reference installations?
Hello, is there any list of FreeBSD reference installations? Like a list of big companies that use FreeBSD as their core servers? Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems with portupgrade or db
On Tue, Oct 14, 2008 at 05:18:36PM +0200, Marco Beishuizen wrote: > On Tue, 14 Oct 2008 08:06:46 -0700 (PDT) > mdh <[EMAIL PROTECTED]> wrote: > > > Have you tried installing db42 from ports manually? ie: > > (cd /usr/ports/databases/db42 && make deinstall && make clean && make > > install && make clean) > > > > If that doesn't work, perhaps try installing the db42 pkg from the > > FreeBSD ftp servers? Personally, I try to stay away from portupgrade > > or anything else that comes around claiming to make something easier > > that's already easy enough. ;) > > > > - mdh > > Yes, I did try to install it manually but that results in: > ... > ===> Extracting for db42-4.2.52_5 > => MD5 Checksum mismatch for bdb/db-4.2.52.tar.gz. > => SHA256 Checksum mismatch for bdb/db-4.2.52.tar.gz. > => MD5 Checksum OK for bdb/patch.4.2.52.1. > => SHA256 Checksum OK for bdb/patch.4.2.52.1. > => MD5 Checksum OK for bdb/patch.4.2.52.2. > => SHA256 Checksum OK for bdb/patch.4.2.52.2. > => MD5 Checksum OK for bdb/patch.4.2.52.3. > => SHA256 Checksum OK for bdb/patch.4.2.52.3. > => MD5 Checksum OK for bdb/patch.4.2.52.4. > => SHA256 Checksum OK for bdb/patch.4.2.52.4. > => MD5 Checksum OK for bdb/patch.4.2.52.5. > => SHA256 Checksum OK for bdb/patch.4.2.52.5. > ===> Refetch for 1 more times files: bdb/db-4.2.52.tar.gz > bdb/db-4.2.52.tar.gz => db-4.2.52.tar.gz doesn't seem to exist > in /usr/ports/distfiles/bdb. => Attempting to fetch from > http://download-east.oracle.com/berkeley-db/. fetch: > http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested > Range Not Satisfiable => Attempting to fetch from > http://download-west.oracle.com/berkeley-db/. fetch: > http://download-west.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested > Range Not Satisfiable => Attempting to fetch from > http://download-uk.oracle.com/berkeley-db/. fetch: > http://download-uk.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested > Range Not Satisfiable => Attempting to fetch from > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bdb/. fetch: > db-4.2.52.tar.gz: local modification time does not match remote => > Couldn't fetch it - please try to retrieve this => port manually > into /usr/ports/distfiles/bdb and try again. *** Error code 1 > > Stop in /usr/ports/databases/db42. > *** Error code 1 > > Stop in /usr/ports/databases/db42. > ... > > The package is already present in /usr/ports/distfiles/bdb and when I > download it manually I get the error above. The "Range Not Satisfiable" errors are because your db-4.2.52.tar.gz is of an incorrect size (probably larger than what's on the source site). The last error (talking about modification time) could indicate that you have a clock which is severely skewed or incorrect in some way. Otherwise, if you're *absolutely 100% positive* all is well, then the issue could be one of the following: 1) The db-4.2.52.tar.gz tarball on the distribution sites has changed, 2) There is a proxy server between you and the distribution site which is caching data and returning bad stuff, 3) You're experiencing underlying corruption going on (network or disk), 4) Your ports tree is outdated or broken (some pieces are out of date while others are correct). Here's some evidence that things are indeed working (on my systems) how you'd expect -- everything matches up perfectly: $ wget -q http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz $ md5 db-4.2.52.tar.gz MD5 (db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c $ grep db-4.2.52.tar.gz /usr/ports/databases/db42/distinfo MD5 (bdb/db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c SHA256 (bdb/db-4.2.52.tar.gz) = f4bddd8d1b4cde0daf5e13e3493ed62a25b736b0bf258e1d929e47bc6a82a28c SIZE (bdb/db-4.2.52.tar.gz) = 3919271 -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems with portupgrade or db
On Tue, 14 Oct 2008 17:18:36 +0200 Marco Beishuizen <[EMAIL PROTECTED]> wrote: >The package is already present in /usr/ports/distfiles/bdb and when I >download it manually I get the error above. No guarantee that this will work; however, at this point you have nothing to lose. 1) Empty the '/usr/ports/distfiles' directory 2) Run 'make clean' in /usr/ports/databases/db42 3) Run 'portsclean -CLPP' 4) Update your ports tree. Use whatever method works for you. 5) Run 'make install' and see what transpires. -- Jerry [EMAIL PROTECTED] I'd like to meet the guy who invented beer and see what he's working on now. signature.asc Description: PGP signature
installing Eclipse CDT on freebsd 6.2
Hi all, Can someone provide information about installing eclipse CDT on FreeBSD 6.2 platform? Does a regular eclipse installation for linux is good enough or do I need a specific installation for FreeBSD? THX Shlomi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, Oct 14, 2008 at 10:01 AM, Jerry McAllister <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 09:52:54AM +0200, Wojciech Puchar wrote: > > > >internet. My freebsd 6.2 box is connected to the internet and has 2 > > >network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly > > >connected via a long Ethernet cable to the NIC on my dad's machine. > While > > >I can access the internet easily, I want my dad to be able to connect to > > >the internet with my freebsd box serving as the gateway. Can anyone > please > > >explain to me in easy steps how to accomplish this ? > > > > If you use (or are willing to use) IPFirewall, this should help: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html Best of luck, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mktime() output not the same as the date utility
Hi, I can't figure out from the man pages why mktime() is giving a different result than date -f. Both strptime and mktime are supposed to use the local timezone, as does date. The output of date is correct; mktime() is an hour later. What am I missing here? Thanks, m $ uname -s; uname -r FreeBSD 6.0-RELEASE-p9 $ gcc test.c $ ./a.out date -j -f "%Y-%m-%d %H:%M:%S" "2008-10-14 08:06:21" +%s returns 1223985981 a.out: tm.tm_sec= 21 a.out: tm.tm_min= 6 a.out: tm.tm_hour = 8 a.out: tm.tm_mday = 14 a.out: tm.tm_mon= 9 a.out: tm.tm_year = 108 a.out: tm.tm_wday = 0 a.out: tm.tm_yday = 0 a.out: tm.tm_isdst = 0 a.out: tm.tm_zone = (null) a.out: tm.tm_gmtoff = 0 exp 1223985981, got 1223989581: delta = -3600 $ date -j -r 1223985981 Tue Oct 14 08:06:21 EDT 2008 $ date -j -r 1223989581 Tue Oct 14 09:06:21 EDT 2008 $ cat test.c #include #include #include #include #include #include #include #include #include #define EXITOK(rc) (WIFEXITED(rc) && WEXITSTATUS(rc) == 0) static char *time_s = "2008-10-14 08:06:21"; static char *fmt= "%Y-%m-%d %H:%M:%S"; /* Return seconds since epoch computed from date utility. */ time_t expected() { char cmd[500] = {0}; char outbuf[4096]; unsigned longexp, act; int rc; FILE*pfp; /* date -j -f "%Y-%m-%d %H:%M:%S" "2008-10-14 08:06:21" +%s */ (void) snprintf(cmd, sizeof(cmd), "date -j -f \"%s\" \"%s\" +%%s", fmt, time_s); if ((pfp = popen(cmd, "r")) == NULL) errx(1, "popen failed."); while (fgets(outbuf, sizeof(outbuf), pfp) != NULL) printf("%s returns %s", cmd, outbuf); if((rc = pclose(pfp)) == -1) errx(1, "pclose returns -1"); if (!EXITOK(rc)) errx(1, "%s didn't terminate normally", cmd); return (time_t) strtoul(outbuf, 0, 10); } /* Returns seconds since epoch using strptime() and mktime() */ time_t actual() { struct tm tm; time_t rval; rval = (time_t) 0; memset(&tm, 0, sizeof(tm)); if (strptime(time_s, fmt, &tm) == NULL) errx(1, "fmt '%s' didn't match '%s'", fmt, time_s); warnx("tm.tm_sec= %d", tm.tm_sec); warnx("tm.tm_min= %d", tm.tm_min); warnx("tm.tm_hour = %d", tm.tm_hour); warnx("tm.tm_mday = %d", tm.tm_mday); warnx("tm.tm_mon= %d", tm.tm_mon); warnx("tm.tm_year = %d", tm.tm_year); warnx("tm.tm_wday = %d", tm.tm_wday); warnx("tm.tm_yday = %d", tm.tm_yday); warnx("tm.tm_isdst = %d", tm.tm_isdst); warnx("tm.tm_zone = %s", tm.tm_zone); warnx("tm.tm_gmtoff = %lu", tm.tm_gmtoff); return mktime(&tm); } int main(void) { time_t act, exp; double delta; exp = expected(); act = actual(); delta = difftime(exp, act); if (fabs(delta) > DBL_EPSILON) { printf("exp %llu, got %llu: delta = %.0f\n", (long long int) exp, (long long int) act, delta); return 1; } else return 0; } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems with portupgrade or db
On Tue, 14 Oct 2008 09:35:55 -0700 Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > The "Range Not Satisfiable" errors are because your db-4.2.52.tar.gz > is of an incorrect size (probably larger than what's on the source > site). The last error (talking about modification time) could > indicate that you have a clock which is severely skewed or incorrect > in some way. > > Otherwise, if you're *absolutely 100% positive* all is well, then the > issue could be one of the following: > > 1) The db-4.2.52.tar.gz tarball on the distribution sites has changed, > 2) There is a proxy server between you and the distribution site which >is caching data and returning bad stuff, > 3) You're experiencing underlying corruption going on (network or > disk), 4) Your ports tree is outdated or broken (some pieces are out > of date while others are correct). > > Here's some evidence that things are indeed working (on my systems) > how you'd expect -- everything matches up perfectly: > > $ wget -q http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz > > $ md5 db-4.2.52.tar.gz > MD5 (db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c > > $ grep db-4.2.52.tar.gz /usr/ports/databases/db42/distinfo > MD5 (bdb/db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c > SHA256 (bdb/db-4.2.52.tar.gz) = > f4bddd8d1b4cde0daf5e13e3493ed62a25b736b0bf258e1d929e47bc6a82a28c SIZE > (bdb/db-4.2.52.tar.gz) = 3919271 > I got the tarball you mentioned and this one installed fine so it was probably changed. I had one of a different size. My clock seems fine too, it gets updated by a ntp daemon. But all seems to be working again so thanks for the help. Regards, Marco -- I think the sky is blue because it's a shift from black through purple to blue, and it has to do with where the light is. You know, the farther we get into darkness, and there's a shifting of color of light into the blueness, and I think as you go farther and farther away from the reflected light we have from the sun or the light that's bouncing off this earth, uh, the darker it gets ... I think if you look at the color scale, you start at black, move it through purple, move it on out, it's the shifting of color. We mentioned before about the stars singing, and that's one of the effects of the shifting of colors. -- Pat Robertson, The 700 Club ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
--On Tuesday, October 14, 2008 01:39:45 -0500 Manish Jain <[EMAIL PROTECTED]> wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet How is your FreeBSD 6.2 box connected to the internet? Directly to the modem? What sort of connection do you have? Dial-up? DSL? Satellite? Cable? The answers to these questions determine how you go about networking the two machines together. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** Check the headers before clicking on Reply. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, Oct 14, 2008 at 09:52:54AM +0200, Wojciech Puchar wrote: > >internet. My freebsd 6.2 box is connected to the internet and has 2 > >network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly > >connected via a long Ethernet cable to the NIC on my dad's machine. While > >I can access the internet easily, I want my dad to be able to connect to > >the internet with my freebsd box serving as the gateway. Can anyone please > >explain to me in easy steps how to accomplish this ? > > > reading admin's handbook or using google will give you an answer True, but often it is helpful to give some hints about what to search for in the handbook or the net.Where to start looking and/or how to narrow the search is often the biggest problem. Unless the question is as broad as 'how do I learn about FreeBSD' it is worthwhile to help the person aim that shotgun or exchange it for a rifle. jerry > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems with portupgrade or db
On Tue, 14 Oct 2008 08:06:46 -0700 (PDT) mdh <[EMAIL PROTECTED]> wrote: > Have you tried installing db42 from ports manually? ie: > (cd /usr/ports/databases/db42 && make deinstall && make clean && make > install && make clean) > > If that doesn't work, perhaps try installing the db42 pkg from the > FreeBSD ftp servers? Personally, I try to stay away from portupgrade > or anything else that comes around claiming to make something easier > that's already easy enough. ;) > > - mdh Yes, I did try to install it manually but that results in: ... ===> Extracting for db42-4.2.52_5 => MD5 Checksum mismatch for bdb/db-4.2.52.tar.gz. => SHA256 Checksum mismatch for bdb/db-4.2.52.tar.gz. => MD5 Checksum OK for bdb/patch.4.2.52.1. => SHA256 Checksum OK for bdb/patch.4.2.52.1. => MD5 Checksum OK for bdb/patch.4.2.52.2. => SHA256 Checksum OK for bdb/patch.4.2.52.2. => MD5 Checksum OK for bdb/patch.4.2.52.3. => SHA256 Checksum OK for bdb/patch.4.2.52.3. => MD5 Checksum OK for bdb/patch.4.2.52.4. => SHA256 Checksum OK for bdb/patch.4.2.52.4. => MD5 Checksum OK for bdb/patch.4.2.52.5. => SHA256 Checksum OK for bdb/patch.4.2.52.5. ===> Refetch for 1 more times files: bdb/db-4.2.52.tar.gz bdb/db-4.2.52.tar.gz => db-4.2.52.tar.gz doesn't seem to exist in /usr/ports/distfiles/bdb. => Attempting to fetch from http://download-east.oracle.com/berkeley-db/. fetch: http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested Range Not Satisfiable => Attempting to fetch from http://download-west.oracle.com/berkeley-db/. fetch: http://download-west.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested Range Not Satisfiable => Attempting to fetch from http://download-uk.oracle.com/berkeley-db/. fetch: http://download-uk.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested Range Not Satisfiable => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bdb/. fetch: db-4.2.52.tar.gz: local modification time does not match remote => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles/bdb and try again. *** Error code 1 Stop in /usr/ports/databases/db42. *** Error code 1 Stop in /usr/ports/databases/db42. ... The package is already present in /usr/ports/distfiles/bdb and when I download it manually I get the error above. Regards, Marco -- Beauty and harmony are as necessary to you as the very breath of life. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problems with portupgrade or db
--- On Tue, 10/14/08, Marco Beishuizen <[EMAIL PROTECTED]> wrote: > From: Marco Beishuizen <[EMAIL PROTECTED]> > Subject: Problems with portupgrade or db > To: "FreeBSD-Questions" <[EMAIL PROTECTED]> > Date: Tuesday, October 14, 2008, 8:08 AM > Hi, > > In an attempt to upgrade db42 to db47 I seem to have broken > some > things. If I try to portupgrade anything I get: > > ... > #portupgrade -a > ** Makefile possibly broken: www/gnome-user-share: > /libexec/ld-elf.so.1: Shared object > "libdb-4.2.so.2" not found, > required by "libaprutil-1.so.3" [: -le: argument > expected > gnome-user-share-0.31_2 > : Your apache does not support DSO modules > > /usr/local/sbin/portupgrade:1468:in `get_pkgname': > Makefile broken > (MakefileBrokenError) from > /usr/local/sbin/portupgrade:622:in `main' > from /usr/local/sbin/portupgrade:613:in `each' > from /usr/local/sbin/portupgrade:613:in `main' > from /usr/local/sbin/portupgrade:588:in `catch' > from /usr/local/sbin/portupgrade:588:in `main' > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in > `call' > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in > `parse_in_order' from > /usr/local/lib/ruby/1.8/optparse.rb:1299:in > `catch' ... 6 levels... > from /usr/local/lib/ruby/1.8/optparse.rb:785:in > `initialize' > from /usr/local/sbin/portupgrade:229:in `new' > from /usr/local/sbin/portupgrade:229:in `main' > from /usr/local/sbin/portupgrade:2208 > ... > > If I try to reinstall db42 (or anything else) I get the > same error > message. > What can I do to make things work again? > > Thanks in advance, > > Marco Have you tried installing db42 from ports manually? ie: (cd /usr/ports/databases/db42 && make deinstall && make clean && make install && make clean) If that doesn't work, perhaps try installing the db42 pkg from the FreeBSD ftp servers? Personally, I try to stay away from portupgrade or anything else that comes around claiming to make something easier that's already easy enough. ;) - mdh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: An endian error
--- On Tue, 10/14/08, Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > From: Jeremy Chadwick <[EMAIL PROTECTED]> > Subject: Re: An endian error > To: "Unga" <[EMAIL PROTECTED]> > Cc: freebsd-questions@freebsd.org > Date: Tuesday, October 14, 2008, 8:50 AM > On Tue, Oct 14, 2008 at 05:00:26AM -0700, Unga wrote: > > Hi all > > > > I'm trying to compile RELENG_7 kernel on i386. > > > > The "make buildkernel" develops an endian > related error: > > I cannot reproduce this error on any of our i386 boxes or > our amd64 > boxes. > > Is this kernel being built with the new gcc you've been > messing around > with in other threads? I have to ask that question, for > obvious > reasons. I wonder if that code is right - normally an endian check on FreeBSD entails comparing BYTE_ORDER with _BIG_ENDIAN and/or _LITTLE_ENDIAN to determine which is the case, which would seemingly imply that it is OK to have both of those defined. - mdh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: An endian error
--- On Tue, 10/14/08, Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > From: Jeremy Chadwick <[EMAIL PROTECTED]> > Subject: Re: An endian error > To: "Unga" <[EMAIL PROTECTED]> > Cc: freebsd-questions@freebsd.org > Date: Tuesday, October 14, 2008, 8:50 PM > On Tue, Oct 14, 2008 at 05:00:26AM -0700, Unga wrote: > > Hi all > > > > I'm trying to compile RELENG_7 kernel on i386. > > > > The "make buildkernel" develops an endian > related error: > > I cannot reproduce this error on any of our i386 boxes or > our amd64 > boxes. > > Is this kernel being built with the new gcc you've been > messing around > with in other threads? I have to ask that question, for > obvious > reasons. > Yes :) The new gcc compiler was built with bootstraps. Sample programs compile fine. As per Alexander's patch, it doesn't meddle with endians except for arm. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: An endian error
On Tue, Oct 14, 2008 at 05:00:26AM -0700, Unga wrote: > Hi all > > I'm trying to compile RELENG_7 kernel on i386. > > The "make buildkernel" develops an endian related error: I cannot reproduce this error on any of our i386 boxes or our amd64 boxes. Is this kernel being built with the new gcc you've been messing around with in other threads? I have to ask that question, for obvious reasons. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: An endian error
are you sure there's nothing strange in your make.conf i just did it with week old RELENG_7 On Tue, 14 Oct 2008, Unga wrote: Hi all I'm trying to compile RELENG_7 kernel on i386. The "make buildkernel" develops an endian related error: ===> xl (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq /usr/src/sys/modules/xl/../../pci/if_xl.c ===> zfs (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h rm -f .depend mkdep -f .depend -a -nostdinc -DFREEBSD_NAMECACHE -D_SOLARIS_C_SOURCE -D_KERNEL -DKLD_MODULE -I/usr/src/sys/modules/zfs/../../cddl/compat/opensolaris : : /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/rpc/xdr.c:63:2: error: #error "Only one of _BIG_ENDIAN or _LITTLE_ENDIAN may be defined" mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/zfs. *** Error code 1 Where could possibly be wrong? Any ideas? Many thanks in advance. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Giorgos Keramidas wrote: Hi Manolis & everyone else, `ipdivert.ko' works fine as a module too. You don't really *have* to recompile the kernel, but we probably have to update the relevant Handbook bits to mention that `ipdivert.ko' can be kldload'ed now. Adding a few options in `loader.conf' should preload IPFW and DIVERT in the running kernel: ipfw_load="YES" ipdivert_load="YES" Then the rest of the `rc.conf' options described in the current text work as expected. I can't boot my 6.2-RELEASE installation today to verify that this works in that version too, but if you have one around and it seems to work, let me know and I'll handle the doc bits :-) FWIW, both modules load fine in my VMWare based 6.2-RELEASE. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
ack! sorry for the blank reply barrage - my apologies! i was inadvertently holding down a key combination that caused my mail client to send off a flurry of blank responses before i realized it was occurring. probably a sign to stay away from computers today :) -b On Oct 14, 2008, at 08.10, benjamin thielsen wrote: Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 7 and ESXi
Jeremy, On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |On Tue, Oct 14, 2008 at 02:44:13AM -0300, [EMAIL PROTECTED] wrote: |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |On Tue, Oct 14, 2008 at 02:04:07AM -0300, [EMAIL PROTECTED] wrote: |> |> Jeremy, |> |> |> |> On Mon, 13 Oct 2008, Jeremy Chadwick wrote: |> |> |> |> |On Tue, Oct 14, 2008 at 12:54:26AM -0300, [EMAIL PROTECTED] wrote: |> |> |>I'm facing some problems trying to install a FreeBSD |> |> |> 7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. |> |> |>After (FBSD) boot menu count down, it shows a dump of the CPU |> |> |> registers and a message: BTX Halted. No matter what is changed in VM |> |> |> setup. |> |> | |> |> |Can you please download the 7.1-BETA2 ISO and try it instead? There |> |> |have been changes to the FreeBSD boot loader between 7.0-RELEASE and |> |> |7.1-BETA2 which may improve things for you. The 7.1-BETA2 ISOs are |> |> |available here: |> |> |> |> The same behavior with 7.1-BETA2. |> | |> |I'm not sure what to do at this point, or what to tell you, since the |> |kernel can't even load. |> | |> |Are you installing this off of CD, and is the CD drive hooked up to |> |the PC via ATA/SATA (rather than USB or something else)? |> |> It's a bit more complicated, since, for some reason the Vmware |> client is unable to boot the VM from CD on the host server. It's |> booting an ISO image on the client machine. |> I already read something saying that it's a known issue of the |> ESXi. |> Without the virtulization layer, the amd64 CD boots without |> problems in this machine. | |Ah, so the truth comes out... :-) | |Have you brought this fact up with the VMware folks? They're quite a |nice bunch, I wouldn't be surprised if they provided a hotfix for you |for this problem. This will be my next step. I sent here first, once it's a boot loader problem, specific to 64bits version of Fbsd. I thought someone could faced the same and came with a howto to workaround. Thank you anyway. :-) - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
El día Tuesday, October 14, 2008 a las 08:10:42AM -0400, benjamin thielsen escribió: > Manish Jain wrote: > > > > >Hi, > > > >I am poor at networking and need a little bit of help. My dad has a > >Windows 2000 machine with a network card but does not have a > >connection > >to the internet. My freebsd 6.2 box is connected to the internet and > >has > >2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is > >directly connected via a long Ethernet cable to the NIC on my dad's > >machine. While I can access the internet easily, I want my dad to be > >able to connect to the internet with my freebsd box serving as the > >gateway. Can anyone please explain to me in easy steps how to > >accomplish > >this ? > > > > Although to many old-timers this is easily achieved, to someone new to > networking it is difficult to explain it in "easy steps". It involves > a set > of pieces that have to fit together correctly in order to work. You will > need to do some proper reading on the underlying concepts first. You wrote the same mail 6 times (at least) to the mailing-list; I've checked the Message-ID lines, all are diffrent: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> ... please stop that; thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED] " ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Problems with portupgrade or db
Hi, In an attempt to upgrade db42 to db47 I seem to have broken some things. If I try to portupgrade anything I get: ... #portupgrade -a ** Makefile possibly broken: www/gnome-user-share: /libexec/ld-elf.so.1: Shared object "libdb-4.2.so.2" not found, required by "libaprutil-1.so.3" [: -le: argument expected gnome-user-share-0.31_2 : Your apache does not support DSO modules /usr/local/sbin/portupgrade:1468:in `get_pkgname': Makefile broken (MakefileBrokenError) from /usr/local/sbin/portupgrade:622:in `main' from /usr/local/sbin/portupgrade:613:in `each' from /usr/local/sbin/portupgrade:613:in `main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `catch' ... 6 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2208 ... If I try to reinstall db42 (or anything else) I get the same error message. What can I do to make things work again? Thanks in advance, Marco -- Remember, if it's being done correctly, here or abroad, it's *not* the U.S. Army doing it! -- Good Morning, Vietnam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Oct 13, 2008, at 11:39 PM, Manish Jain wrote: Hi, I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? Thanks in advance for any help. Here is an alternative if there is no actual requirement for routing. It works on 6.2. If your network already has a router/firewall/NAT dhcp server (e.g., a Linksys, netgear router, a satellite modem, etc), investigate the use of if_bridge rather than attempt to use NAT and routing. This eliminates a number of issues that you will find difficult as someone new to networking and possibly FreeBSD. This allows you to make your FreeBSD machine transparent to the network as if the W2K box were another peer (in many ways). The benefits would be not having to proxy the private addresses/serve dhcp while maintaining your existing hardware set up. I add in "options if_bridge" to the kernel and rebuild though it can be loaded dynamically at boot. Your rc.conf entries would look something like this given a router to this ISP using a 192.168.1.0 private network space. # the FreeBSD <-> ISP NIC card ifconfig_rl0="inet 192.168.1.2 netmask 255.255.255.0" # the ISP Router connection to the LAN defaultrouter="192.168.1.1" gateway_enable="YES" #rl0 is the WAN Facing nic. #rl1 is the second nic to other computers. This connects to switch or crossover # note that no address is set for rl1, it serves no purpose # the media statements are just shown to reflect rl1s existence # and other settings it may need ifconfig_rl1="up media 100baseTX mediaopt full-duplex" cloned_interfaces="bridge0" ifconfig_bridge0="addm rl0 addm rl1 up" Look at man if_bridge for sysctl.conf entries that may be needed. They determine what is passed on the bridge and can easily block necessary traffic if not set correctly. For my purposes, I found the following necessary: net.link.bridge.ipfw=1 net.link.bridge.ipfw_arp=1 These allow me to control the traffic within ipfw which makes me more comfortable than passing everything. Once a simple bridge is functional, investigate the entries necessary to further inhibit traffic using ipfw. This can be quite helpful in protecting a W2K box which is likely weak in it's security. The combination of these two products is thought of as a transparent firewall and is quite effective. It serves as a foundation for more complex configurations up to a complete Intrusion Detection System using snort_inline which can actually filter and drop virus signatures headed for the weaker windows platforms. Documentation is quite weak out there on this configuration but I can provide basic examples of ipfw commands to monitor, allow and deny traffic using ipfw and if_bridge. I'm unable to accurately provide this on the fly though. What some people do, is build a set of rules early in the ipfw ruleset to handle all traffic associated with the local FreeBSD computer's use of the net and separate traffic for the bridge into in and out sections (e.g. use of skipto). Then you can allow or deny what goes to and comes from the W2K box/other workstations, just like you do to the local machine. There is some minimal info here: http://www.freebsd.org/doc/en/books/handbook/network-bridging.html Manish Jain [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions- [EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
An endian error
Hi all I'm trying to compile RELENG_7 kernel on i386. The "make buildkernel" develops an endian related error: ===> xl (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq /usr/src/sys/modules/xl/../../pci/if_xl.c ===> zfs (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h rm -f .depend mkdep -f .depend -a -nostdinc -DFREEBSD_NAMECACHE -D_SOLARIS_C_SOURCE -D_KERNEL -DKLD_MODULE -I/usr/src/sys/modules/zfs/../../cddl/compat/opensolaris : : /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/rpc/xdr.c:63:2: error: #error "Only one of _BIG_ENDIAN or _LITTLE_ENDIAN may be defined" mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/zfs. *** Error code 1 Where could possibly be wrong? Any ideas? Many thanks in advance. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, 14 Oct 2008 14:40:01 +0300, Manolis Kiagias <[EMAIL PROTECTED]> wrote: > Inspired by this discussion (and just replying to a random post) I > tried for the first time to get a test machine as a gateway. I tried > the handbook's instructions, here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html > > These work flawlessly, you will need to recompile your kernel > though. The rest of the setup is relatively simple. Hi Manolis & everyone else, `ipdivert.ko' works fine as a module too. You don't really *have* to recompile the kernel, but we probably have to update the relevant Handbook bits to mention that `ipdivert.ko' can be kldload'ed now. Adding a few options in `loader.conf' should preload IPFW and DIVERT in the running kernel: ipfw_load="YES" ipdivert_load="YES" Then the rest of the `rc.conf' options described in the current text work as expected. I can't boot my 6.2-RELEASE installation today to verify that this works in that version too, but if you have one around and it seems to work, let me know and I'll handle the doc bits :-) pgpZI84jv0wq8.pgp Description: PGP signature
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Jeremy Chadwick wrote: [snip] >> > >> > Doesn't he need to also set sysctl net.inet.ip.forwarding=1 for his >> > box to act as a gateway? Or is this handled by the NAT portion? >> > >> The gateway_enable="YES" in /etc/rc.conf sets this. > > Right, but it wasn't in your /etc/rc.conf example (see your mail), so I > figured the OP would come back saying "Okay I did what you said but it > still doesn't work!" Well that is going to happen anyway. ;-) I wasn't trying to write a tutorial, but rather an overview of what's involved. It's up to him to do the necessary RTFM to fill in the blanks. Yes - I agree it should have included it in the example snippet. By the time I got to that portion my thinking was fixated on the firewall aspect. It would have been clearer, perhaps, had it been so. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Peter N. M. Hansteen wrote: Manish Jain <[EMAIL PROTECTED]> writes: I am poor at networking and need a little bit of help. My dad has a Windows 2000 machine with a network card but does not have a connection to the internet. When I started writing this, I thought that system had been abandoned already, but it appears Microsoft will offer a measure of support through next year sometime. Do see that the system gets properly updated before you put it on the net. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? The keyword is that you need to set up your machine as a gateway. There are numerous guides available on how to do that (including the FreeBSD Handbook (free, online and likely already on your system) my PF tutorial (http://home.nuug.no/~peter/pf/) contains more than a few hints, as do several books available at better bookstores), but I would recommend that you pick literature that enables you to learn the basics of TCP/IP as well as the actual commands needed. Looking into packet filtering for basic protection won't hurt either. With those keywords in hand, you should be able to dig up something useful. - Peter Inspired by this discussion (and just replying to a random post) I tried for the first time to get a test machine as a gateway. I tried the handbook's instructions, here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html These work flawlessly, you will need to recompile your kernel though. The rest of the setup is relatively simple. I am more accustomed to using pf rather than IPFW though, and as I wanted to test this on my main system, I came up with this setup: /etc/rc.conf pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="" gateway_enable="YES" (Run sysctl net.inet.ip.forwarding=1 *and* /etc/rc.d/routing restart if you do not wish to reboot after modifying rc.conf) I added this rule before the filtering rules section in my /etc/pf.conf: nat pass on rl1 from rl0:network to any -> rl1 (This is an excellent read: http://www.openbsd.org/faq/pf/ ) where rl1 is the Internet-facing card, and rl0 is the local network one. Also added a few simple rules to allow traffic from rl0 as I am normally using pf for firewalling. This also worked nicely, and has the added advantage of not having to recompile the kernel. So the OP has quite a few options, and it may prove not to be very difficult after all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, Oct 14, 2008 at 06:46:10AM -0400, Michael Powell wrote: > Jeremy Chadwick wrote: > > > On Tue, Oct 14, 2008 at 04:55:11AM -0400, Michael Powell wrote: > [snip] > >> Next, you will want to configure your FreeBSD machine as a NAT gateway. > >> In your /etc/rc.conf you will want something like gateway_enable="YES" > >> and some form of firewall initialization[1]. The gateway_enable is what > >> allows the forwarding of packets between your rl0 and your rl1, but the > >> activation of NAT functionality is usually a function contained within a > >> firewall. So conceptually, the firewall will be "in between" rl0 and rl1. > >> > >> There are three different firewalls you can choose from. Configuring the > >> firewall is usually where the inexperienced get stuck. This subject > >> material is beyond the scope of this missive, and you would do well to > >> start reading in the Handbook. But essentially, when you configure NAT in > >> the firewall your rl0 (connected to the ISP) will be assigned a "Public" > >> IP address and the NAT function will translate between "Public" and > >> "Private". > > With respect to "NAT", the caveat here is the assumption that your DSL/Cable > modem is *not* already performing NAT. The situation you do not want to get > into is having *two* NATs. The content herein is assuming that the external > (rl0) interface is getting assigned a "Public" IP from the ISP. > > [snip] > > > > Doesn't he need to also set sysctl net.inet.ip.forwarding=1 for his > > box to act as a gateway? Or is this handled by the NAT portion? > > > The gateway_enable="YES" in /etc/rc.conf sets this. Right, but it wasn't in your /etc/rc.conf example (see your mail), so I figured the OP would come back saying "Okay I did what you said but it still doesn't work!" -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Jeremy Chadwick wrote: > On Tue, Oct 14, 2008 at 04:55:11AM -0400, Michael Powell wrote: [snip] >> Next, you will want to configure your FreeBSD machine as a NAT gateway. >> In your /etc/rc.conf you will want something like gateway_enable="YES" >> and some form of firewall initialization[1]. The gateway_enable is what >> allows the forwarding of packets between your rl0 and your rl1, but the >> activation of NAT functionality is usually a function contained within a >> firewall. So conceptually, the firewall will be "in between" rl0 and rl1. >> >> There are three different firewalls you can choose from. Configuring the >> firewall is usually where the inexperienced get stuck. This subject >> material is beyond the scope of this missive, and you would do well to >> start reading in the Handbook. But essentially, when you configure NAT in >> the firewall your rl0 (connected to the ISP) will be assigned a "Public" >> IP address and the NAT function will translate between "Public" and >> "Private". With respect to "NAT", the caveat here is the assumption that your DSL/Cable modem is *not* already performing NAT. The situation you do not want to get into is having *two* NATs. The content herein is assuming that the external (rl0) interface is getting assigned a "Public" IP from the ISP. [snip] > > Doesn't he need to also set sysctl net.inet.ip.forwarding=1 for his > box to act as a gateway? Or is this handled by the NAT portion? > The gateway_enable="YES" in /etc/rc.conf sets this. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, Oct 14, 2008 at 04:55:11AM -0400, Michael Powell wrote: > Manish Jain wrote: > > > > > Hi, > > > > I am poor at networking and need a little bit of help. My dad has a > > Windows 2000 machine with a network card but does not have a connection > > to the internet. My freebsd 6.2 box is connected to the internet and has > > 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is > > directly connected via a long Ethernet cable to the NIC on my dad's > > machine. While I can access the internet easily, I want my dad to be > > able to connect to the internet with my freebsd box serving as the > > gateway. Can anyone please explain to me in easy steps how to accomplish > > this ? > > > > Although to many old-timers this is easily achieved, to someone new to > networking it is difficult to explain it in "easy steps". It involves a set > of pieces that have to fit together correctly in order to work. You will > need to do some proper reading on the underlying concepts first. > > First, establish that there exists basic network connectivity between your > machine and your dads. You may need to use a crossover cable. You will want > to assign a static IP address in the "Private" IP space range to your rl1 > interface. This is also known as RFC 1918. You will also want to manually > configure a static IP on your dad's machine that is in the same network, > instead of allowing it to come up on the link.local of 169.254.x.x. An > example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your > dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage > you can use hosts files on each host for name resolution. Ensure that each > machine can be ping'd by the other. > > Next, you will want to configure your FreeBSD machine as a NAT gateway. In > your /etc/rc.conf you will want something like gateway_enable="YES" and > some form of firewall initialization[1]. The gateway_enable is what allows > the forwarding of packets between your rl0 and your rl1, but the activation > of NAT functionality is usually a function contained within a firewall. So > conceptually, the firewall will be "in between" rl0 and rl1. > > There are three different firewalls you can choose from. Configuring the > firewall is usually where the inexperienced get stuck. This subject > material is beyond the scope of this missive, and you would do well to > start reading in the Handbook. But essentially, when you configure NAT in > the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP > address and the NAT function will translate between "Public" and "Private". > > The next sticky point that will happen, should you get this far, is name > resolution. You will want to place the IP addresses of the name servers of > your ISP in your /etc/resolv.conf. You will also want to enter these into > the TCP configuration of your dad's machine. In addition, on your dad's > machine you will enter the IP address you used on your rl1 as the "default > route". > > The subject is much too broad for exhaustive coverage here. If your > DSL/Cable modem has router ports on it, it might just be easier to plug > your dad's machine up there and forget about all of this. Much reading will > be required of you, and once you know most of it then you will know what > specific questions to ask when you encounter sticking points. This is > intended only as a very generic form of overview. > > -Mike > > [1] For example, a couple of lines from my /etc/rc.conf: > > pf_enable="YES" > pf_rules="/etc/pf.conf" > pf_flags="-e" > pflog_enable="YES" > pflog_logfile="/var/log/pflog" > pflog_flags="" > > and the NAT line from my /etc/pf.conf: > > nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) > > Please note that these are for illustrative purposes only, and by themselves > will do nothing for your specific situation. There is much more that you > will have to dig out of the documentation, understand, and configure > appropriately. Doesn't he need to also set sysctl net.inet.ip.forwarding=1 for his box to act as a gateway? Or is this handled by the NAT portion? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD do dbus & hal work?
Hi, On Tue, Oct 14, 2008 at 12:03 AM, Aniruddha <[EMAIL PROTECTED]> wrote: > I'm trying to mount (USB) devices in KDE/Gnome automagically through > dbus and hal. I added the following lines to /etc/rc.conf: > > dbus_enable="YES" > hald_enable="YES" > > Unfortunately when I insert an USB (NTFS formatted) nothing happens. > When I insert a (fat) sdcard in my cardreader still nothing happens. > I do think I'm missing something obvious, who know what it is? Do a 'tail -f /var/log/messages' then insert your sd card and see what's going on. The HAL faq may be useful http://www.freebsd.org/gnome/docs/halfaq.html. > -- > Regards, > > Aniruddha > > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > Regards. -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Kmail errors when checking mail
im running KDE 4.1.2 on AMD64 and each time i try and check my email i get an error window saying .. The Process for the pop3://pop3.server.name protocol died unexpectdley. Whats is causing this and how do i go about resolving this ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain <[EMAIL PROTECTED]> writes: > I am poor at networking and need a little bit of help. My dad has a > Windows 2000 machine with a network card but does not have a connection > to the internet. When I started writing this, I thought that system had been abandoned already, but it appears Microsoft will offer a measure of support through next year sometime. Do see that the system gets properly updated before you put it on the net. > My freebsd 6.2 box is connected to the internet and has > 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is > directly connected via a long Ethernet cable to the NIC on my dad's > machine. While I can access the internet easily, I want my dad to be > able to connect to the internet with my freebsd box serving as the > gateway. Can anyone please explain to me in easy steps how to accomplish > this ? The keyword is that you need to set up your machine as a gateway. There are numerous guides available on how to do that (including the FreeBSD Handbook (free, online and likely already on your system) my PF tutorial (http://home.nuug.no/~peter/pf/) contains more than a few hints, as do several books available at better bookstores), but I would recommend that you pick literature that enables you to learn the basics of TCP/IP as well as the actual commands needed. Looking into packet filtering for basic protection won't hurt either. With those keywords in hand, you should be able to dig up something useful. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cups-base port broken???
Matthew Seaman <[EMAIL PROTECTED]> writes: > Glyn Millington wrote: > | Is there a work-around which will get me a functional cups-base > > First read > http://www.vuxml.org/freebsd/ce29ce1d-971a-11dd-ab7e-001c2514716c.html > and the references cited therein and decide if installing this package is > still > a good idea despite the security problems. > > Then, if you do decide to go ahead: > > ~ # portupgrade -m "DISABLE_VULNERABILITIES=yes" cups-base > > Otherwise, wait until a fix comes out for the package. For something > like this, a fix will usually be available within a week or so. Bless you and many thanks! had done the homework, but I didn't know the incantation which would allow me to live dangerously ... atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cups-base port broken???
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Glyn Millington wrote: | | Happy St. Callistus' Day! | | | FreeBSD 7 release. | | I'm having trouble upgrading cups-base. With an up-to-date ports tree | this is what I get. | | , | | glynthebearded# portupgrade cups-base | | ---> Upgrading 'cups-base-1.3.5_2' to 'cups-base-1.3.8_1' (print/cups-base) | | ---> Building '/usr/ports/print/cups-base' | | ===> Cleaning for cups-base-1.3.8_1 | | ===> cups-base-1.3.8_1 has known vulnerabilities: | | | | ** Command failed [exit code 1]: /usr/bin/script -qa | |/tmp/portupgrade.5624.0 env UPGRADE_TOOL=portupgrade | |UPGRADE_PORT=cups-base-1.3.5_2 UPGRADE_PORT_VER=1.3.5_2 make | | | | ** Fix the problem and try again. | | ** Listing the failed packages (-:ignored / *:skipped / !:failed) | | ! print/cups-base (cups-base-1.3.5_2) (unknown build error) | ` | | The story behind this is that I deinstalled the cups-base package, then | found that I couldn't reinstall; so did pkg_add -r and got | cups-base-1.3.5_2; which is fine except that it won't work with the | installed version of gnutls, it wants an older version. | | Is there a work-around which will get me a functional cups-base First read http://www.vuxml.org/freebsd/ce29ce1d-971a-11dd-ab7e-001c2514716c.html and the references cited therein and decide if installing this package is still a good idea despite the security problems. Then, if you do decide to go ahead: ~ # portupgrade -m "DISABLE_VULNERABILITIES=yes" cups-base Otherwise, wait until a fix comes out for the package. For something like this, a fix will usually be available within a week or so. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkj0ZYkACgkQ3jDkPpsZ+VbabgCbBoca63kTVHeEzq+z359gPs0J C5gAn2C/ZU6EHD9J1a0Pi9cWBP4QpdlL =gl5F -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
Manish Jain wrote: > > Hi, > > I am poor at networking and need a little bit of help. My dad has a > Windows 2000 machine with a network card but does not have a connection > to the internet. My freebsd 6.2 box is connected to the internet and has > 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is > directly connected via a long Ethernet cable to the NIC on my dad's > machine. While I can access the internet easily, I want my dad to be > able to connect to the internet with my freebsd box serving as the > gateway. Can anyone please explain to me in easy steps how to accomplish > this ? > Although to many old-timers this is easily achieved, to someone new to networking it is difficult to explain it in "easy steps". It involves a set of pieces that have to fit together correctly in order to work. You will need to do some proper reading on the underlying concepts first. First, establish that there exists basic network connectivity between your machine and your dads. You may need to use a crossover cable. You will want to assign a static IP address in the "Private" IP space range to your rl1 interface. This is also known as RFC 1918. You will also want to manually configure a static IP on your dad's machine that is in the same network, instead of allowing it to come up on the link.local of 169.254.x.x. An example would be your rl1 == 192.168.10.1 netmask 255.255.255.0 and your dad's machine == 192.168.10.2 netmask 255.255.255.0. For DNS at this stage you can use hosts files on each host for name resolution. Ensure that each machine can be ping'd by the other. Next, you will want to configure your FreeBSD machine as a NAT gateway. In your /etc/rc.conf you will want something like gateway_enable="YES" and some form of firewall initialization[1]. The gateway_enable is what allows the forwarding of packets between your rl0 and your rl1, but the activation of NAT functionality is usually a function contained within a firewall. So conceptually, the firewall will be "in between" rl0 and rl1. There are three different firewalls you can choose from. Configuring the firewall is usually where the inexperienced get stuck. This subject material is beyond the scope of this missive, and you would do well to start reading in the Handbook. But essentially, when you configure NAT in the firewall your rl0 (connected to the ISP) will be assigned a "Public" IP address and the NAT function will translate between "Public" and "Private". The next sticky point that will happen, should you get this far, is name resolution. You will want to place the IP addresses of the name servers of your ISP in your /etc/resolv.conf. You will also want to enter these into the TCP configuration of your dad's machine. In addition, on your dad's machine you will enter the IP address you used on your rl1 as the "default route". The subject is much too broad for exhaustive coverage here. If your DSL/Cable modem has router ports on it, it might just be easier to plug your dad's machine up there and forget about all of this. Much reading will be required of you, and once you know most of it then you will know what specific questions to ask when you encounter sticking points. This is intended only as a very generic form of overview. -Mike [1] For example, a couple of lines from my /etc/rc.conf: pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="-e" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" and the NAT line from my /etc/pf.conf: nat on $ExtIF inet from $INTERNAL to any -> ($ExtIF) Please note that these are for illustrative purposes only, and by themselves will do nothing for your specific situation. There is much more that you will have to dig out of the documentation, understand, and configure appropriately. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
cups-base port broken???
Happy St. Callistus' Day! FreeBSD 7 release. I'm having trouble upgrading cups-base. With an up-to-date ports tree this is what I get. , | glynthebearded# portupgrade cups-base | ---> Upgrading 'cups-base-1.3.5_2' to 'cups-base-1.3.8_1' (print/cups-base) | ---> Building '/usr/ports/print/cups-base' | ===> Cleaning for cups-base-1.3.8_1 | ===> cups-base-1.3.8_1 has known vulnerabilities: | | ** Command failed [exit code 1]: /usr/bin/script -qa |/tmp/portupgrade.5624.0 env UPGRADE_TOOL=portupgrade |UPGRADE_PORT=cups-base-1.3.5_2 UPGRADE_PORT_VER=1.3.5_2 make | | ** Fix the problem and try again. | ** Listing the failed packages (-:ignored / *:skipped / !:failed) | ! print/cups-base (cups-base-1.3.5_2) (unknown build error) ` The story behind this is that I deinstalled the cups-base package, then found that I couldn't reinstall; so did pkg_add -r and got cups-base-1.3.5_2; which is fine except that it won't work with the installed version of gnutls, it wants an older version. Is there a work-around which will get me a functional cups-base atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Python + cx_Oracle
Hello, Lately i have installed linux Oracle instant_client with sqlplus and sdk packages. I have configured it properly and it works fine right now. Now I'am having trouble to compile cx_Oracle python module.. My Python use FreeBSD system libraries but cx_Oracle need to use libraries from linux Instant Client. I think that I need to install another version of Python that will be compiled with Linux libraries and will be running from Linux emulation. But how to compile that will be running from Linux ABI? Maybe someone have an issue with Python + cx_Oracle module running under FreeBSD greetings ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 7 and ESXi
you should stay with i386 (if I remember correctly there are no working amd64 nVidia drivers). This won't allow you to use the full 8GB of RAM you have installed, though, without building a custom kernel with PAE support (and there are known compatibility problems between PAE and certain kernel drivers). It's strongly recommended you stick with amd64 if at all possible. and use cheap (or even free) used diskless computer like 486-pentium as X terminal. it will even save electricity by not using these super-ultra-3D cards ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
On Tue, 14 Oct 2008 12:09:45 +0530 Manish Jain <[EMAIL PROTECTED]> wrote: > I want my dad to be able to connect to the internet with my freebsd box > serving as the gateway. You might want to read: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html Andreas -- GnuPG key : 0x2A573565|http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 pgpjiLS2YwRV9.pgp Description: PGP signature
Re: FreeBSD 7 and ESXi
7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM. After (FBSD) boot menu count down, it shows a dump of the CPU registers and a message: BTX Halted. No matter what is changed in VM setup. It does not happen with i386 version. really no idea, but same is on some machines (amd64) when trying to boot from USB drives. this is bootloader bug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system
internet. My freebsd 6.2 box is connected to the internet and has 2 network cards, rl0 and rl1. rl0 connects to the ISP and rl1 is directly connected via a long Ethernet cable to the NIC on my dad's machine. While I can access the internet easily, I want my dad to be able to connect to the internet with my freebsd box serving as the gateway. Can anyone please explain to me in easy steps how to accomplish this ? reading admin's handbook or using google will give you an answer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog naming scheme could be improved?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Walt Pawley wrote: | At 9:33 AM -0700 10/11/08, Kelly Jones wrote: |> newsyslog rotates logfiles so that messages.0.gz is yesterday's file, |> messages.1.gz is the day before's, etc. |> |> This is ugly. | | IMHO, this is worse than merely ugly. I gave up "rotating" log | files a long time ago when I kept running into problems that | needed extensive time periods worth of log data with which to | resolve issues. I use some modifications to the periodic | scripts to do the log data archiving with time related names. | | Of course, if you're generating megabytes of compressed log | data every day, this is likely impractical but it works well | for systems I normally use. I note that syslog.conf allows you to pipe log messages into some other application. Simply using cronolog (or rotatelogs from one of the Apache ports) would allow you to create date-stamped logfile names pretty easily. Eg. *.* |/usr/local/sbin/cronolog /var/log/all-%Y-%m-%d.log This doesn't provide control of file permissions or compression of old log files, but either of those are relatively simple to fix. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkj0TuEACgkQ3jDkPpsZ+VYhMQCfTMJFKWSGWLAOrbQgbZ3HFEWo DWgAoJDLjWy7kSwPxAzmUcXcZW1B1v0m =k4af -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"