Fwd: how access inside from outside when nat is done from inside to outside

2013-04-04 Thread s m
hello guys i am newbie in nat and have some problem with it. i want to nat inside traffic to outside and when i ping outside from inside, every thing is ok and nat is done perfectly. but when i ping inside from outside, request packets are sent without any nat translation while reply packets

Re: Fwd: how access inside from outside when nat is done from inside to outside

2013-04-04 Thread Daniel O'Callaghan
On 4/04/2013 6:41 PM, s m wrote: request packets: src:192.168.2.1 dst: 192.168.1.1 reply packets: src: 192.168.2.50 dst:192.168.2.1 This sort of thing tends to happen when the the packets are not being sent via divert socket properly. Look carefully, step by step, at your ipfw

9.1 panics on a daily basis

2013-04-04 Thread Volodymyr Kostyrko
Hi all. I have one machine with problems. I changed memory, motherboard, interface card with no luck. Yesterday it panics twice. Apr 3 12:16:50 kohrah kernel: interrupt total Apr 3 12:16:50 kohrah kernel: irq1: atkbd0 534 Apr 3 12:16:52 kohrah

OT: posix sh problem

2013-04-04 Thread Mark Felder
Hi all, Hopefully someone here is much more clever than I am. I've run out of ideas on how to cleanly convert this chunk of ksh to posix sh. This is from a BB/Hobbit/Xymon monitoring script for ZFS. I'd really like to have this working cleanly on FreeBSD without requiring any funky shells

Re: OT: posix sh problem

2013-04-04 Thread Quartz
I'd really like to have this working cleanly on FreeBSD without requiring any funky shells Define funky shell. Does it have to be straight up plain sh? Can it use csh or tcsh syntax? Does bash count as 'funky'? or using any temporary files. Do you mean manually created temp files?

Re: OT: posix sh problem

2013-04-04 Thread Mark Felder
On Thu, 04 Apr 2013 07:47:09 -0500, Quartz qua...@sneakertech.com wrote: I'd really like to have this working cleanly on FreeBSD without requiring any funky shells Define funky shell. Does it have to be straight up plain sh? Can it use csh or tcsh syntax? Does bash count as 'funky'? Any

Re: OT: posix sh problem

2013-04-04 Thread Quartz
fail on an unwritable filesystem. ...By which I mean you can't create new files because your disk is completely full or you're booting from a ramdisk that's messed up, etc. __ it has a certain smooth-brained appeal

Re: OT: posix sh problem

2013-04-04 Thread Nikos Vassiliadis
On 4/4/2013 3:32 μμ, Mark Felder wrote: Hi all, Hopefully someone here is much more clever than I am. I've run out of ideas on how to cleanly convert this chunk of ksh to posix sh. This is from a BB/Hobbit/Xymon monitoring script for ZFS. I'd really like to have this working cleanly on FreeBSD

Re: OT: posix sh problem

2013-04-04 Thread Teske, Devin
On Apr 4, 2013, at 5:32 AM, Mark Felder wrote: Hi all, Hopefully someone here is much more clever than I am. I've run out of ideas on how to cleanly convert this chunk of ksh to posix sh. /me takes the challenge (and shame on some of the current responses; this is trivial in sh and

Re: OT: posix sh problem

2013-04-04 Thread Mark Felder
On Thu, 04 Apr 2013 08:54:30 -0500, Teske, Devin devin.te...@fisglobal.com wrote: Wait, you can't? Then I've been doing something wrong all these years… #!/bin/sh printf line1\nline2\n | while read line do echo line=[$line] done You sort-of can, but it's not portable at all. As

Re: [ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Mark
Original Message From: Beeblebrox zap...@berentweb.com To: freebsd-questions@freebsd.org Sent: Wed, April 3, 2013 10:50:55 AM Subject: Re: [ZFS] recover destroyed zpool - what are the available options? Volodymyr, thank you very much for answering. A strange problem is that ZFS

Re: OT: posix sh problem

2013-04-04 Thread Teske, Devin
On Apr 4, 2013, at 7:42 AM, Mark Felder wrote: On Thu, 04 Apr 2013 08:54:30 -0500, Teske, Devin devin.te...@fisglobal.com wrote: Wait, you can't? Then I've been doing something wrong all these years… #!/bin/sh printf line1\nline2\n | while read line do echo line=[$line] done

Re: OT: posix sh problem

2013-04-04 Thread Teske, Devin
Oh, and just to cover all bases… If you suspect you have sub-shells in the loop, use export to export the vars so that the sub-shells get the vars in the loop. -- Devin On Apr 4, 2013, at 8:04 AM, Teske, Devin wrote: On Apr 4, 2013, at 7:42 AM, Mark Felder wrote: On Thu, 04 Apr 2013

Re: OT: posix sh problem

2013-04-04 Thread Mark Felder
Sorry, my email client did something weird with collapsing and I didn't see you mention that it appeared to be working for you. On Thu, 04 Apr 2013 08:54:30 -0500, Teske, Devin devin.te...@fisglobal.com wrote: The only things I saw that needed changing to go from ksh to /bin/sh were:

Re: [ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Volodymyr Kostyrko
04.04.2013 08:08, Beeblebrox пишет: I had a second pool on another partition of the same HDD, which was in the same degraded state as the bsdr pool. The data on that pool had been backed-up previously. I decided to try the export re-import method on that pool (-Z gives message: invalid option

[ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
Hi Mark. What does gpart show return? = 34 625142381 ada0 GPT (298G) 34 62914560 1 freebsd-zfs (30G) 62914594 562227821 2 freebsd-zfs (268G) Are all the pool members there and working? Yes - ada0p2 is the ONLY pool member. My guess is that one member is missing or a mbr

Re: [ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Volodymyr Kostyrko
2013-04-04 18:50, Beeblebrox wrote: Hi Mark. What does gpart show return? = 34 625142381 ada0 GPT (298G) 34 62914560 1 freebsd-zfs (30G) 62914594 562227821 2 freebsd-zfs (268G) Are all the pool members there and working? Yes - ada0p2 is the ONLY pool member. My

[ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
Thanks Volodymyr. The pools do not show up as deleted. # zpool list (the pool that had disappeared has returned) NAME SIZE ALLOC FREECAP DEDUP HEALTH ALTROOT asp - - - - - FAULTED - bsdr - - - - - FAULTED - bsds 48.8G 12.9G

Re: OT: posix sh problem

2013-04-04 Thread Teske, Devin
On Apr 4, 2013, at 8:11 AM, Mark Felder wrote: Sorry, my email client did something weird with collapsing and I didn't see you mention that it appeared to be working for you. On Thu, 04 Apr 2013 08:54:30 -0500, Teske, Devin devin.te...@fisglobal.com wrote: The only things I saw that

[ZFS] recover destroyed zpool - what are the available options?

2013-04-04 Thread Beeblebrox
test them with `zdb -l device`. When the output would be correct - you guessed your slice! LABEL 1 version: 28 name: 'bsdr' state: 2 txg: 10 pool_guid: 12018916494219117471 hostid: 2193536600 hostname: 'mfsbsd'

Re: OT: posix sh problem

2013-04-04 Thread Mark Felder
On Thu, 04 Apr 2013 11:16:11 -0500, Teske, Devin devin.te...@fisglobal.com wrote: Here's what I suggest (the following works for me -- lists all my pools and shows healthy): Fantastic! I'd have never considered wrapping the entire thing into STRING=$STRING$(). I can't tell you how much

Re: Recipie for CPU souffle'

2013-04-04 Thread Ian Smith
In freebsd-questions Digest, Vol 461, Issue 6, Message: 1 (sorry about the threading) On Wed, 3 Apr 2013 15:12:17 +0200 Polytropon free...@edvax.de wrote: On Tue, 02 Apr 2013 19:10:59 -0700, Ronald F. Guilmette wrote: See how the entire ioctl() interface for these device types is completely

State of Packages

2013-04-04 Thread doug
Its seems certain that pkg_add is not [going to] be[ing] restored. Index of ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.1-RELEASE/ NameSizeLast Modified File:MANIFEST 1 KB12/04/12 10:10:00 File:base.txz 58452 KB

Re: Recipie for CPU souffle'

2013-04-04 Thread Polytropon
On Fri, 5 Apr 2013 05:23:31 +1100 (EST), Ian Smith wrote: In freebsd-questions Digest, Vol 461, Issue 6, Message: 1 (sorry about the threading) On Wed, 3 Apr 2013 15:12:17 +0200 Polytropon free...@edvax.de wrote: On Tue, 02 Apr 2013 19:10:59 -0700, Ronald F. Guilmette wrote: It doesn't

Re: State of Packages

2013-04-04 Thread Bryan Drewery
On 4/4/2013 1:57 PM, d...@safeport.com wrote: Its seems certain that pkg_add is not [going to] be[ing] restored. Progress is being made on providing pkg_add and pkgng packages again. They will come back. Index of ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.1-RELEASE/ Name

Re: State of Packages

2013-04-04 Thread Mark Blackman
On 4 Apr 2013, at 21:21, Bryan Drewery bdrew...@freebsd.org wrote: On 4/4/2013 1:57 PM, d...@safeport.com wrote: Its seems certain that pkg_add is not [going to] be[ing] restored. Progress is being made on providing pkg_add and pkgng packages again. They will come back. For those who

Re: Regarding zfs send / receive

2013-04-04 Thread Joar Jegleim
Hi Terje ! sorry for late reply, I've been checking my mail, forgetting that all my mailing list mail are sorted into their own folders skipping inbox :p the zfs sync setup is a huge advantage over rsync simply because incremental rsync of the volume takes ~12 hours, while the zfs differential

NFSv4 questions and possible bugs

2013-04-04 Thread b w
I set up NFSv4, did some performance tests, setup looks like this: Server rc.conf: nfs_server_enable=YES nfsv4_server_enable=YES nfsuserd_enable=YES exports: /share -mapall=nobody 10.10.14.2 10.10.14.3 V4: / -sec=sys Client(s) fstab mount: srv:/share /mnt nfs nfsv4,rsize=32768,wsize=32768,rw

Debian/kFreeBSD vs linux jail?

2013-04-04 Thread Joshua Isom
Considering Debian's ported the standard Linux userland to the FreeBSD kernel, I'm wondering if it's possible/practical to use Debian inside of a jail instead of a Linux CentOS jail, which has been documented. I know some applications are linux specific, but are they really linux specific or

Re: Regarding zfs send / receive

2013-04-04 Thread Waitman Gobble
Waitman Gobble San Jose California USA On Apr 4, 2013 2:07 PM, Joar Jegleim joar.jegl...@gmail.com wrote: Hi Terje ! sorry for late reply, I've been checking my mail, forgetting that all my mailing list mail are sorted into their own folders skipping inbox :p the zfs sync setup is a huge

Re: State of Packages

2013-04-04 Thread doug
On Thu, 4 Apr 2013, Mark Blackman wrote: On 4 Apr 2013, at 21:21, Bryan Drewery bdrew...@freebsd.org wrote: On 4/4/2013 1:57 PM, d...@safeport.com wrote: Its seems certain that pkg_add is not [going to] be[ing] restored. Progress is being made on providing pkg_add and pkgng packages again.

using pax command for archive restore

2013-04-04 Thread Joe
I archive using the pax command like this pax -wzXt -x cpio -f ${archive_path_file} ${ip_path_file} ${ip_path_dir} and restore pax -rz -pe -f ${archive_path_file} and it restores the contents back to the same location it came from which is what I want. Now I would like to restore that