counting pages sent to postscript printer via samba and lpd

2009-06-18 Thread DA Forsyth
Hiya all.

I'm busy reading the manual on this, but am wondering if anyone has 
tips and howtos available.

I took delivery of our new color laser printer, a CP1515n, HP 
networked color laser.  since this thing is not exactly cheap to run 
I want to count pages per user, and since I have failed miserably to 
get this right when using PCL drivers, I'm thinking I can do it with 
Postscript drivers. but first, the system

Our Samba server hosts all printers (from a user perspective), and 
feeds the data directly to the print servers (FreeBSD minial install) 
for some printers, or directly to the printer for the other directly 
networked HP laser printer (PCL6).  This works fine, in fact very 
well, and a log of jobs per person is available (each person being an 
authorized samba user).

I have just installed the PS drivers on my XP PC and printed to the 
printer via the samba server with a simple printcap setup...

cp1515|CP1515n Color Laserjet:\
:sh:ff=:\
:lp=:\
:sd=/var/spool/lpd/cp1515:\
:lf=/var/log/lpd/lpd-cp1515errs:\
:ss=/var/log/lpd/stat-cp1515:\
:rm=xxx.yyy.zzz.aaa:\
:rp=RAW:

That means I have a record of *jobs* in the stat-cp1515 file, but 
what I need is a page count for each job.

tips?

(PS: I tried to set up LPng some time ago and somehow completely 
failed to get it to work and ended up just uninstalling it.  I'd 
really like to stay with stock lpd)


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: counting pages sent to postscript printer via samba and lpd

2009-06-18 Thread Olivier Nicole
Hi,

 I'm busy reading the manual on this, but am wondering if anyone has 
 tips and howtos available.
 
 I took delivery of our new color laser printer, a CP1515n, HP 
 networked color laser.  since this thing is not exactly cheap to run 
 I want to count pages per user, and since I have failed miserably to 
 get this right when using PCL drivers, I'm thinking I can do it with 
 Postscript drivers. but first, the system

From what I know:

- PostScript does not return page count;

- and lpd would not collect the page count even if it was returned by
  PostScript.

Now if you use PostScript encapsulated into PCL, the PCL outside job
can return page count.

And to be accurate, you must deny any user to access the printer
directly (setting access lit on the printer).

Ecapsulation in Perl:

# before the job
print S esc%-1234...@pjl JOB NAME=\$ID_STRING\\r\n;
print S \...@pjl USTATUS JOB=ON\r\n;
print S \...@pjl SET DUPLEX=ON\r\n;
# you PostScript or PCL file goes here\
# after the job
print S esc%-1234...@pjl EOJ NAME=\$ID_STRING\\r\n;
print S ESC%-12345X\r\n;

The ID_STRING is what you see fit, I use: 
$ID_STRING=PID=$$ USER=$user HOST=$host;

With such encapsulation, the printer will return something like:

my $end=0;
my $job=0;
while (S) {
$end=1 if $_ =~ /^END/;
$job=1 if $end  $_ =~ /^NAME=\$ID_STRING\/;
$pages=$1 if $end  $job  $_ =~ /^PAGES=(\d+)/;
}

As you see, you can encapsulate PCL inside PCL too. And you can force
some default arguments in your outside PCL job (like print double
side) that will be true unless the user specify otherwise.

The above has been working fine with several HP printers over the
years.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PF Routing to VPN Device

2009-06-18 Thread Valentin Bud
On Wed, Jun 17, 2009 at 10:31 PM, Mike Sweetser - Adhost
mik...@adhost.comwrote:

 Hello,

 We have a network with a VPN device sitting beside a PF server, both
 connected to an internal network.

 PF Server: 10.1.4.1
 VPN Device: 10.1.4.200

 The VPNs are set up for 10.1.1.0/24 and 10.1.2.0/24, so any traffic to
 these networks should be routed to 10.1.4.200.  We've set up routes on
 the PF server as such.

 We've set up the following rules:

 block in log
 pass in on $int_if route-to 10.1.4.200 from 10.1.4.0/24 to { 10.1.1.0/24
 10.1.2.0/24)

 However, the block in log is catching the return traffic.  From pflog
 when somebody on the VPN (10.1.2.105) tries to connect to 10.1.4.25 on
 port 80:

 00 rule 28/0(match): block in on bge1: 10.1.4.25.80 
 10.1.2.105.3558: [|tcp]

 If we remove the block in log, the traffic works.

 What are we missing?

 Thanks,
 Mike


Hello Mike,

 What version on FBSD are you using? The keep state is implicit from 7.0 as
far as i know. I might not be right so someone please correct.

 If that is the case you should add keep state to your rule and see what
happens.

my 7c,
v
-- 
network warrior since 2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: PF Routing to VPN Device

2009-06-18 Thread Mike Sweetser - Adhost
 -Original Message-
 From: Valentin Bud [mailto:valentin@gmail.com]
 Sent: Thursday, June 18, 2009 1:36 AM
 To: Mike Sweetser - Adhost
 Cc: freebsd-questions@freebsd.org
 Subject: Re: PF Routing to VPN Device
 
 
 
 On Wed, Jun 17, 2009 at 10:31 PM, Mike Sweetser - Adhost
 mik...@adhost.com wrote:
 
 
   Hello,
 
   We have a network with a VPN device sitting beside a PF server,
 both
   connected to an internal network.
 
   PF Server: 10.1.4.1
   VPN Device: 10.1.4.200
 
   The VPNs are set up for 10.1.1.0/24 and 10.1.2.0/24, so any
 traffic to
   these networks should be routed to 10.1.4.200.  We've set up
 routes on
   the PF server as such.
 
   We've set up the following rules:
 
   block in log
   pass in on $int_if route-to 10.1.4.200 from 10.1.4.0/24 to {
 10.1.1.0/24
   10.1.2.0/24)
 
   However, the block in log is catching the return traffic.  From
 pflog
   when somebody on the VPN (10.1.2.105) tries to connect to
 10.1.4.25 on
   port 80:
 
   00 rule 28/0(match): block in on bge1: 10.1.4.25.80 
   10.1.2.105.3558: [|tcp]
 
   If we remove the block in log, the traffic works.
 
   What are we missing?
 
   Thanks,
   Mike
 
 
 Hello Mike,
 
  What version on FBSD are you using? The keep state is implicit from
 7.0 as
 far as i know. I might not be right so someone please correct.
 
  If that is the case you should add keep state to your rule and see
 what happens.

We're using FreeBSD 7.2.

Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PF Routing to VPN Device

2009-06-18 Thread Valentin Bud
On Thu, Jun 18, 2009 at 11:35 AM, Valentin Bud valentin@gmail.comwrote:



 On Wed, Jun 17, 2009 at 10:31 PM, Mike Sweetser - Adhost 
 mik...@adhost.com wrote:

 Hello,

 We have a network with a VPN device sitting beside a PF server, both
 connected to an internal network.

 PF Server: 10.1.4.1
 VPN Device: 10.1.4.200

 The VPNs are set up for 10.1.1.0/24 and 10.1.2.0/24, so any traffic to
 these networks should be routed to 10.1.4.200.  We've set up routes on
 the PF server as such.

 We've set up the following rules:

 block in log
 pass in on $int_if route-to 10.1.4.200 from 10.1.4.0/24 to { 10.1.1.0/24
 10.1.2.0/24)

 However, the block in log is catching the return traffic.  From pflog
 when somebody on the VPN (10.1.2.105) tries to connect to 10.1.4.25 on
 port 80:

 00 rule 28/0(match): block in on bge1: 10.1.4.25.80 
 10.1.2.105.3558: [|tcp]

 If we remove the block in log, the traffic works.

 What are we missing?

 Thanks,
 Mike

  Hello Mike,
 What version on FBSD are you using? The keep state is implicit from 7.0
AFAIK.

So if you are using a version prior 7.0 you should add keep state so the
return traffic
can be passed.

v
-- 
network warrior since 2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: good morning to all

2009-06-18 Thread Daniel O'Connor
On Thu, 18 Jun 2009, malathi selvaraj wrote:
 how to  install samba in freebsd

Redirected to freebsd-questions@

You need to use the ports tree (check the handbook for how to 
install/update it)

Then do
cd /usr/ports/net/samba33
make install


-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: Gateway load balance

2009-06-18 Thread Wojciech Puchar

I've not yet had the luck with assigning more than one default gateway
in BSD,


simply use ipfw.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


IRC

2009-06-18 Thread malathi selvaraj
how to join  freebsd  in irc
-- 
S.MALATHI
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-hackers Digest, Vol 325, Issue 4

2009-06-18 Thread Daniel O'Connor
On Thu, 18 Jun 2009, malathi selvaraj wrote:
 how to start local host is freeBSD,
 i install apache22 even after localhost is not working

1) Don't pick a random email and reply to it with a totally unrelated 
question

2) This question should have gone to freebsd-questions@ same as your 
other one.

3) You need to create a config file and enable it in /etc/rc.conf before 
it will start on boot.


-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


good morning to all

2009-06-18 Thread malathi selvaraj
oneday before only i know the freeBSD and now i am working in that,i dn't
know to how to set up http://localhost:901 in that, any one guide me.


-- 
S.MALATHI
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


You have received a card from a family member!

2009-06-18 Thread webmaster

   [1]Hallmark.com [2]Shop Online [3]Hallmark Magazine [4]E-Cards  More
   [5]At Gold Crown 

 You have recieved A Hallmark E-Card.

 Hello!
   You have recieved a Hallmark E-Card.
   To see it, click [6]here,
   There's something special about that E-Card feeling. We invite you to
   make a friend's day and [7]send one.
   Hope to see you soon,
   Your friends at Hallmark
   Your privacy is our priority. Click the Privacy and Security link at
   the bottom of this E-mail to view our policy.

  [8]Hallmark.com | [9]Privacy  Security | [10]Customer Service |
 [11]Store Locator

References

   1. http://www.hallmark.com/
   2. 
http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-2|-2|products|unShopOnline|ShopOnline?lid=unShopOnline
   3. 
http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/HallmarkMagazine/|magazine|unHallmarkMagazine?lid=unHallmarkMagazine
   4. 
http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-1020!01|-102001|ecards|unEcardandMore|E-Cards?lid=unEcardandMore
   5. 
http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/GoldCrownStores/|stores|unGoldCrownStores?lid=unGoldCrownStores
   6. http://continua.ugr.es/hallmark/postcard.gif.exe
   7. http://continua.ugr.es/hallmark/postcard.gif.exe
   8. http://www.stomadent.pl/~kuba/hallmark.scr
   9. 
http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/LegalInformation/FOOTER_PRIVLEGL|
  10. http://hallmark.custhelp.com/?lid=lnhelp-Home%20Page
  11. 
http://go.mappoint.net/Hallmark/PrxInput.aspx?lid=lnStoreLocator-Home%20Page
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IRC

2009-06-18 Thread Neal Hogan
On Thu, Jun 18, 2009 at 6:05 AM, malathi selvarajmalathira...@gmail.com wrote:
 how to join  freebsd  in irc

http://www.freebsd.org/community/irc.html

Take a second to look around . . . (this refers to your other question, as well)

 --
 S.MALATHI
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: good morning to all

2009-06-18 Thread Samuel Martín Moro
Sorry, I forgot 'reply to all'

what do you mean ? what can't you do with the inetd.conf file ?

have you restart inetd daemon ? (/etc/rc.d/inetd restart)
when you restart, is stderr clean ?



On Thu, Jun 18, 2009 at 10:21 AM, malathi selvaraj malathira...@gmail.com
 wrote:

 i see the book and i install samba and i can not  do the inetd.config

 On Thu, Jun 18, 2009 at 12:51 PM, Samuel Martín Moro faus...@gmail.com
  wrote:

 read the handbook:
 http://www.freebsd.org/doc/en/books/handbook/network-samba.html
 http://www.freebsd.org/doc/en/books/handbook/network-samba.html
 Samuel Martín Moro
 CamTrace
 {EPITECH.} tek3


 On Thu, Jun 18, 2009 at 8:23 AM, malathi selvaraj malathira...@gmail.com
  wrote:

 how to  install samba in freebsd
 advance thanks
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to 
 freebsd-hackers-unsubscr...@freebsd.org





 --
 S.MALATHI



Samuel Martín Moro
CamTrace
{EPITECH.} tek3


On Thu, Jun 18, 2009 at 1:00 PM, malathi selvaraj malathira...@gmail.comwrote:

 oneday before only i know the freeBSD and now i am working in that,i dn't
 know to how to set up http://localhost:901 in that, any one guide me.


 --
 S.MALATHI
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Automated Production of Web Pages

2009-06-18 Thread Martin McCormick
I have been asked to come up with an automated way of producing
web pages. Specifically, this is for mrtg but it really doesn't
matter. The idea is that there are many pages which are
identical except for different names and a couple of other items
such as whether the page represents a system that is actively
being polled or was being polled at one time but is now here for
archival purposes, that sort of thing.

This needs to be some sort of script application so we
can feed it automatically and not have to manually build each
page.

Is there any open-source platform which makes this
especially quick and easy? Of course, as one who likes to script
repetitive tasks, I can attest to the fact that that first
script is murder at times but the time you spent building it is
payed back the next time when it runs automatically at 3 A.M.
and only took 15 seconds to run. That's why I love Unix.

So, are there php-based or other packages that help
automate this process?

Many thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automated Production of Web Pages

2009-06-18 Thread Wojciech Puchar

I have been asked to come up with an automated way of producing
web pages. Specifically, this is for mrtg but it really doesn't
matter. The idea is that there are many pages which are
identical except for different names and a couple of other items
such as whether the page represents a system that is actively
being polled or was being polled at one time but is now here for
archival purposes, that sort of thing.


sed is great for your needs.

If not enough - simply write bash script. HTML is purely text format, so 
generating it with unix tools is simple.



Is there any open-source platform which makes this
especially quick and easy? Of course, as one who likes to script


Yes. all standard unix tools. bash, sed, perl, awk, 100th of others.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automated Production of Web Pages

2009-06-18 Thread Bill Moran
In response to Martin McCormick mar...@dc.cis.okstate.edu:

 I have been asked to come up with an automated way of producing
 web pages. Specifically, this is for mrtg but it really doesn't
 matter. The idea is that there are many pages which are
 identical except for different names and a couple of other items
 such as whether the page represents a system that is actively
 being polled or was being polled at one time but is now here for
 archival purposes, that sort of thing.
 
   This needs to be some sort of script application so we
 can feed it automatically and not have to manually build each
 page.
 
   Is there any open-source platform which makes this
 especially quick and easy? Of course, as one who likes to script
 repetitive tasks, I can attest to the fact that that first
 script is murder at times but the time you spent building it is
 payed back the next time when it runs automatically at 3 A.M.
 and only took 15 seconds to run. That's why I love Unix.
 
   So, are there php-based or other packages that help
 automate this process?

routers2 may fit your need:
http://www.steveshipway.org/software/

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Raul I. Becette

Gary Gatten escribió:

PS: kudos for actually reading all that stuff!
  

A lot of time free in my former user support job...

- Original Message -
From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: FreeBSD Users freebsd-questions@freebsd.org
Sent: Wed Jun 17 12:18:07 2009
Subject: Gateway load balance

Hi all

First time posting.

I am a long time Linux user (desktop and server) and started with 
FreeBSD a year ago.
Thanks to the book Absolute FreeBSD 2nd Edition I learned a lot about 
the OS and how to configure different services I used in Linux (Slackware).


My post is regarding something I couldn't find information on how to 
implement it. Here's the situation:


I had a proxy server (Squid + Dansguardian) under Slackware on the LAN 
which, via 'ip route' I make it use 3 gateways connected each one to an 
ADSL line and balance the requests.
Unfortunately my server crashed and I took the oportunity to install a 
new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are working 
fine. My problem is that I don't know how to make the server use the 
other 2 gateways I have left and balance the requests on all ADSL lines.


192.168.10.9/16  proxy
192.168.10.2/16  1st gateway (1 NIC to LAN - 2 NIC 
to ADSL modem)

192.168.30.100/16 2nd gateway
192.168.30.1/16  3rd gateway

I found it could be done with PF (also read most of The Book of PF) but 
I am quite lost about how to do it.


Any information would be greatly appreciated.

Thanks in advance

Raúl I. Becette
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

  



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Raul I. Becette

Gary Gatten escribió:

Adding 2 more default routes with same weight to each dsl line won't work?
  

I have another problem which I realized just now.
I configured via rc.conf the ip and netmask below but when I do ifconfig 
the netmask appears as /24


calamardo# cat /etc/rc.conf | grep ifconfig
ifconfig_nfe0=192.168.10.9 255.255.0.0
calamardo# ifconfig nfe0
nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=8VLAN_MTU
   ether 00:1d:60:7e:38:7e
   inet 192.168.10.9 netmask 0xff00 broadcast 255.255.0.0
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active

This makes impossible to use 192.168.30.100 and 192.168.30.1 since they 
are on different networks and are unreachable (according to ifconfig).



- Original Message -

From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: FreeBSD Users freebsd-questions@freebsd.org
Sent: Wed Jun 17 12:18:07 2009
Subject: Gateway load balance

Hi all

First time posting.

I am a long time Linux user (desktop and server) and started with 
FreeBSD a year ago.
Thanks to the book Absolute FreeBSD 2nd Edition I learned a lot about 
the OS and how to configure different services I used in Linux (Slackware).


My post is regarding something I couldn't find information on how to 
implement it. Here's the situation:


I had a proxy server (Squid + Dansguardian) under Slackware on the LAN 
which, via 'ip route' I make it use 3 gateways connected each one to an 
ADSL line and balance the requests.
Unfortunately my server crashed and I took the oportunity to install a 
new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are working 
fine. My problem is that I don't know how to make the server use the 
other 2 gateways I have left and balance the requests on all ADSL lines.


192.168.10.9/16  proxy
192.168.10.2/16  1st gateway (1 NIC to LAN - 2 NIC 
to ADSL modem)

192.168.30.100/16 2nd gateway
192.168.30.1/16  3rd gateway

I found it could be done with PF (also read most of The Book of PF) but 
I am quite lost about how to do it.


Any information would be greatly appreciated.

Thanks in advance

Raúl I. Becette
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

  



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Raul I. Becette

Wojciech Puchar escribio':


I am a long time Linux user (desktop and server) and started with 
FreeBSD a year ago.
Thanks to the book Absolute FreeBSD 2nd Edition I learned a lot about 
the OS and how to configure different services I used in Linux 
(Slackware).


very rare case today - someone that read books FIRST :)))

We always said that when everything fails, go to the books =o)
Like I said previously... a lot of idle time in my former job.






I had a proxy server (Squid + Dansguardian) under Slackware on the 
LAN which, via 'ip route' I make it use 3 gateways connected each one 
to an ADSL line and balance the requests.
Unfortunately my server crashed and I took the oportunity to install 
a new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are 
working fine. My problem is that I don't know how to make the server 
use the other 2 gateways I have left and balance the requests on all 
ADSL lines.



use ipfw and fwd command.
for example with output section

add 1 fwd gw1_IP from DSL1_subnet to any via gw1_ethernet
add 10001 fwd gw2_IP from DSL2_subnet to any via gw2_ethernet
add 10002 fwd gw3_IP from DSL3_subnet to any via gw3_ethernet

please do treat above as an example of course.

Of course... more reading to do about ipfw


Of course use right squid commands so it will select right source IP 
based on the rules you want, but as you already did id under linux i 
assume you have this practiced already.
Last configurarion was a transparent proxy with request coming from the 
firewall LAN interface (actual LAN gateway). It is working that way now 
and I intend to take it away and make the proxy the default gateway of 
the LAN and do the balance..


i had 5+2 Polish Telecom links connected to one server - worked fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Jerry
I have been trying to get the 'auto-mount' feature working in xfce4
without success.

An error message is displayed when I place a data disk into the cd
drive. This is a screen shot of the error message:

http://imagebin.ca/view/sSCSEg.html

This is the version of xfce4:

Xfce 4 Desktop Environment
version 4.6.1 (Xfce 4.6)

This is being run from a FreeBSD-7.2 system.

-- 
Jerry
ges...@yahoo.com

The only constant is change.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sponsoring FreeBSD

2009-06-18 Thread Todor Dragnev

On 01.06.2009, at 18:48, Wojciech Puchar wrote:


every donation is highly welcome. Please have a look at
http://www.freebsdfoundation.org/donate/sponsors.shtml

As you can see, every donor is mentioned, no matter how
small the amount. They'll display a link for donations
of $5,000 or more, and a logo for donations of $10,000
or more.

finally clear rules! Exactly what i said in the beginning - add two  
zeroes to 50-100$ to get good advert.




Hey, Puchar, good flame at all, but after reading all of these emails  
I decided and make a donation. Do you ? :)  Is someone else ready for  
this ?


--
Drop by Drop We Make a River
http://www.freebsdfoundation.org/donate/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Raul I. Becette

Nikos Vassiliadis escribió:

Raul I. Becette wrote:

ifconfig_nfe0=192.168.10.9 255.255.0.0


If I recall correctly the correct syntax would be:
ifconfig_nfe0=192.168.10.9 netmask 255.255.0.0
or (the syntax I prefer)
ifconfig_nfe0=192.168.10.9/16




Yes. that was the problem. Forgot the netmask part
I forgot the basics of ifconfig command... =o)

Thanks

Raúl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Nikos Vassiliadis

Raul I. Becette wrote:

ifconfig_nfe0=192.168.10.9 255.255.0.0


If I recall correctly the correct syntax would be:
ifconfig_nfe0=192.168.10.9 netmask 255.255.0.0
or (the syntax I prefer)
ifconfig_nfe0=192.168.10.9/16

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Configuring VLANs - Why is IP address require on NIC connected to Trunk?

2009-06-18 Thread Geoff Roberts
Hi,

I am currently using FreeBSD 7.2 - although the configuration below was 
originally configured on FreeBSD 7.0.

I have a working VLAN configuration - two VLANS on one interface.

Let's call the interface ext0 and the VLANS bound to this interface vlan0 and 
vlan1

The interface ext0 is actually a symbolic name for the real interface (NIC) - 
done using ifconfig_em0_name=ext0 in rc.conf.

I find I have to give the ext0 interface an IP address in order for routing 
and packet filtering to work on the attached VLANs.

a) Is there a way to configure this so that I don't have to give ext0 an IP 
address?

In reality ext0 actually does nothing and has no traffic directed to or from 
it.

I would much rather have ext0 without an IP address, as then I don't have to 
worry about firewall rules etc.

b) If I do have to give the ext0 interface an IP address are there any general 
standards on IP address and mask to specify?

c) Should I also specify firewall rules in pf such as the following or will 
these rules cause other things to break.

block in on ext0 from any to (ext0)
block out on ext0 from (ext0) to any

Kind regards,

Geoff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Gelsema, P (Patrick)
On Thu, June 18, 2009 15:16, Raul I. Becette wrote:
 Gary Gatten escribió:
 Adding 2 more default routes with same weight to each dsl line won't
 work?

 I have another problem which I realized just now.
 I configured via rc.conf the ip and netmask below but when I do ifconfig
 the netmask appears as /24

 calamardo# cat /etc/rc.conf | grep ifconfig
 ifconfig_nfe0=192.168.10.9 255.255.0.0

If I am not mistaken, it should be
ifconfig_nfe0=192.168.10.9 netmask 255.255.0.0 or
ifconfig_nfe0=192.168.10.9/16

see #man rc.conf

 calamardo# ifconfig nfe0
 nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=8VLAN_MTU
 ether 00:1d:60:7e:38:7e
 inet 192.168.10.9 netmask 0xff00 broadcast 255.255.0.0
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active

 This makes impossible to use 192.168.30.100 and 192.168.30.1 since they
 are on different networks and are unreachable (according to ifconfig).


 - Original Message -
 From: owner-freebsd-questi...@freebsd.org
 owner-freebsd-questi...@freebsd.org
 To: FreeBSD Users freebsd-questions@freebsd.org
 Sent: Wed Jun 17 12:18:07 2009
 Subject: Gateway load balance

 Hi all

 First time posting.

 I am a long time Linux user (desktop and server) and started with
 FreeBSD a year ago.
 Thanks to the book Absolute FreeBSD 2nd Edition I learned a lot about
 the OS and how to configure different services I used in Linux
 (Slackware).

 My post is regarding something I couldn't find information on how to
 implement it. Here's the situation:

 I had a proxy server (Squid + Dansguardian) under Slackware on the LAN
 which, via 'ip route' I make it use 3 gateways connected each one to an
 ADSL line and balance the requests.
 Unfortunately my server crashed and I took the oportunity to install a
 new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are working
 fine. My problem is that I don't know how to make the server use the
 other 2 gateways I have left and balance the requests on all ADSL lines.

 192.168.10.9/16  proxy
 192.168.10.2/16  1st gateway (1 NIC to LAN - 2 NIC
 to ADSL modem)
 192.168.30.100/16 2nd gateway
 192.168.30.1/16  3rd gateway

 I found it could be done with PF (also read most of The Book of PF) but
 I am quite lost about how to do it.

 Any information would be greatly appreciated.

 Thanks in advance

 Raúl I. Becette
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org





 font size=1
 div style='border:none;border-bottom:double windowtext
 2.25pt;padding:0in 0in 1.0pt 0in'
 /div
 This email is intended to be reviewed by only the intended recipient
  and may contain information that is privileged and/or confidential.
  If you are not the intended recipient, you are hereby notified that
  any review, use, dissemination, disclosure or copying of this email
  and its attachments, if any, is strictly prohibited.  If you have
  received this email in error, please immediately notify the sender by
  return email and delete this email from your system.
 /font


 

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Configuring VLANs - Why is IP address require on NIC connected to Trunk?

2009-06-18 Thread Nikos Vassiliadis

Geoff Roberts wrote:
I find I have to give the ext0 interface an IP address in order for routing 
and packet filtering to work on the attached VLANs.


a) Is there a way to configure this so that I don't have to give ext0 an IP 
address?


Yes, you just have to up the interface:
ifconfig_em0=up

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Configuring VLANs - Why is IP address require on NIC connected to Trunk?

2009-06-18 Thread Steve Polyack

Geoff Roberts wrote:
I find I have to give the ext0 interface an IP address in order for routing 
and packet filtering to work on the attached VLANs.
  


This shouldn't be the case.  The ext0 interface should not need an IP 
address for the two vlanX interfaces to function correctly.  Are you 
sure you're setting the vlandev on the child interfaces?  Perhaps you 
need to force the ext0 interface up.  If em0 is your external/trunk 
interface, you should have something like:

ifconfig_em0=up
cloned_interfaces=vlan0 vlan1
ifconfig_vlan0 =inet X.X.X.X netmask X.X.X.X vlan 0 vlandev em0 up
ifconfig_vlan1 =inet X.X.X.X netmask X.X.X.X vlan 1 vlandev em0 up

After that, you should be able to simply filter on the vlan0 and vlan1 
interfaces using pf.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem authenticating with sasl in jail

2009-06-18 Thread Mel Flynn
On Wednesday 17 June 2009 21:51:03 Erik Norgaard wrote:

  Jun 17 23:39:17 jail imap[8412]: badlogin: jail.example.com [172.16.0.2]
  plaintext cy...@example.com SASL(-13): user not found: checkpass failed
 

 Jun 18 07:46:28 local6.notice alpha imap[14244]: badlogin:
 jail.example.com [172.16.0.2] plaintext games SASL(-13): authentication
 failure: checkpass failed


 Note there is no realm specified contrary to the log entries found in
 the jail.

So does the imap server know the domain name? How does it figure it out? Does 
it know to strip domain names because you configured the unix passwd backend?
If it uses the domainname command to figure out the domainname, you may have 
it set on the working server, yet not on the jail.
Any differences related to domains in /etc/rc.conf and /etc/resolv.conf that 
might shed some light?
I'm sorry I can't be of more Cyrus specific help.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automated Production of Web Pages

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 06:55:41 -0500, Martin McCormick 
mar...@dc.cis.okstate.edu wrote:
   This needs to be some sort of script application so we
 can feed it automatically and not have to manually build each
 page.
 
   Is there any open-source platform which makes this
 especially quick and easy?

I've found that a source file from : separated valus serves
well for the (sometimes changed and appended) source data,
and a Makefile that does everything else. From this Makefile,
I simply first call a preamble HTML file, then a simple
awk script that adds the data lines, sourced by the CSV
file, in HTML format, and finally a HTML file with the
rest of the page. The command make install would then
automatically upload it.



 Of course, as one who likes to script
 repetitive tasks, I can attest to the fact that that first
 script is murder at times but the time you spent building it is
 payed back the next time when it runs automatically at 3 A.M.
 and only took 15 seconds to run.

Really, it's not a big deal, no murder at times. The easiest
way is you start with one HTML file that represents what you
want to have in the end, then cut it into three parts (the
preamble, the changing part, the footer) and the replace the
changing part by a script.

Well, you can even (ab)use cpp for this.

HTMLPP=cpp -C -P -traditional

The advantage is that you have separated parts for everything.
The preamble file changes the look of the page, e. g. via CSS.
The CSV database contains the changing data, and the awk script
contains the description how the data should be displayed. This
separation makes it very easy if you want to change of of the
different aspects I mentioned.



   So, are there php-based or other packages that help
 automate this process?

Forgive my polite disagreement, but according to your description
which sounds to describe a relatively easy problem, PHP looks
like really too much, too big for this job. (I don't use PHP
very often, so my opinion might not be the best one to rely on.)



 That's why I love Unix.

If you love UNIX, why not following its philosophy? Keep the
thing simple. Make one solution that solves the problem best,
nothing more, nothing less. As you said, it may take some time
to get it running, but when it runs, it will run nearly forever.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Changing my login directory

2009-06-18 Thread Glen Barber
Steve Bertrand wrote: 
 I'd like to add for archive purposes, that with csh, adding the
 following within the 'if' block in .cshrc will provide a prompt that
 includes the current working directory, without the full path (which I
 also wanted:
 
 set prompt = %c1 % 
 
 Output:
 
 ~/devel % ll
 

Steve,

Thanks for that little tidbit in return -- I've been trying to figure how 
prompt settings. :)


-- 
Glen Barber 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automated Production of Web Pages

2009-06-18 Thread Wojciech Puchar

HTMLPP=cpp -C -P -traditional


actually it's the way i make webpages.


automate this process?


Forgive my polite disagreement, but according to your description
which sounds to describe a relatively easy problem, PHP looks
like really too much, too big for this job. (I don't use PHP
very often, so my opinion might not be the best one to rely on.)


PHP is popular, and like most popular things isn't very good. Maybe it's 
easy for some people (for me - not much), and fits someone's needs, it 
could be used but as PREPROCESSOR.


There is no sense to generate webpage every time someone watch it, unless 
it's contents changes every time someone watch it.


PHP interpreter can be called from command line, and output HTML to file 
like that


php -f file.php file.html

This can be done from cron for example. It's not more efficient way, but 
more secure - there is no fear someone abuse any bugs in PHP code. PHP 
support in web server can be not loaded at all.




That's why I love Unix.


If you love UNIX, why not following its philosophy? Keep the
thing simple. Make one solution that solves the problem best,
nothing more, nothing less. As you said, it may take some time
to get it running, but when it runs, it will run nearly forever.


I have my things going exactly that way - because - as you say - i keep
things simple.

No modern tools with it's unneeded overcomplexity.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Configuring VLANs - Why is IP address require on NIC connected to Trunk?

2009-06-18 Thread Wojciech Puchar

done using ifconfig_em0_name=ext0 in rc.conf.

I find I have to give the ext0 interface an IP address in order for routing
and packet filtering to work on the attached VLANs.


You have to set up IP address to vlans, not main interface. It's the way 
vlan's work.


Having 2 vlan's is like having 2 ethernet cards, while physically having 
one. switch is responsible to segregate your traffic and connect one 
virtual ethernet to right clients, and second to other clients - exactly 
how you configured switch.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sponsoring FreeBSD

2009-06-18 Thread Wojciech Puchar
finally clear rules! Exactly what i said in the beginning - add two zeroes 
to 50-100$ to get good advert.




Hey, Puchar, good flame at all, but after reading all of these emails I 
decided and make a donation. Do you ? :)  Is someone else ready for this ?


Today i sent some hardware to 2 people :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Changing my login directory

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber glen.j.bar...@gmail.com wrote:
 Thanks for that little tidbit in return -- I've been trying to
 figure how prompt settings. :)

See those:

set promptchars = %#
set prompt = %...@%m:%~%# 

Or even:

set prompt = [%T] %...@%m:%~%# 
set prompt = [%T] *%h =%? :%m/%l @%n %~%B%#%b 
set prompt = *%h=%? [%T] %...@%m/%l:%~%B%#%b 

There's lots of customization that you can do with csh's prompt
variable; man csh is really very interesting.

Ah yes, and don't forget to

set autolist

which is very handy, by the way.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


diablo-jre16

2009-06-18 Thread Roy Stuivenberg
Hello,

I'm having a problem getting java to work on Firefox 2.

diablo-jre16 latest version is installed.
After about:plugins it doesn't show.
Manual says to enter this as root, and so I do that.
ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
  /usr/local/lib/browser_plugins/
Then I get -- File exists !!
I'm running 7.2 stable gnome2

Anyone encountered this problem too?

Regards,

Roy.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: diablo-jre16

2009-06-18 Thread Manolis Kiagias
Roy Stuivenberg wrote:
 Hello,

 I'm having a problem getting java to work on Firefox 2.

 diablo-jre16 latest version is installed.
 After about:plugins it doesn't show.
 Manual says to enter this as root, and so I do that.
 ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
   /usr/local/lib/browser_plugins/
 Then I get -- File exists !!
 I'm running 7.2 stable gnome2

 Anyone encountered this problem too?

 Regards,

 Roy.
   

Hi,

For firefox 2.X, please try creating the symbolic link in
/usr/local/lib/firefox/plugins, i.e:

ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \
  /usr/local/lib/firefox/plugins/

and restart your browser.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


The short and curlies of vista networking

2009-06-18 Thread Mel Flynn
Does anyone have a how-to or pitfall summary on how to get a vista computer 
to:
- accept DHCP offers from isc-dhcp30-server-3.0.7_4
- connect to WPA-PSK using *any* scheme supported by FreeBSD's hostapd
- give debugging information that makes sense to someone not speaking if 
!not_working throw generic_catch_all_error lingo

Of course, all of the above works for 3 FreeBSD machines and one Kubuntu 
laptop and DHCP used to work for an XP machine that died.

As for the DHCP issue, I've read about the broadcast flag, but all of the 
answers seem to indicate it's a routing/firewall issue on the gateway that 
prevents the broadcast packet to reach the vista machine, yet I see no blocked 
traffic to that effect in pflog. Only igmpv3 packets, which I'm passing now 
regardless, just in case MS uses this VPN protocol to verify the connection is 
working.

There are programs unavailable on linux/freebsd using vendor lock-in data 
formats issues that prevent us from upgrading my future mother-in-law to a 
sensible OS, or we would.

Related info:
Vista, WPA-PSK: The settings saved on this computer for the network do not 
match the requirements of the network.
/var/log/dhcpd.log:
Jun 18 08:56:24 gate dhcpd: DHCPDISCOVER from 00:c0:a8:f1:e8:c3 (Tyler-PC) via 
bridge0
Jun 18 08:56:24 gate dhcpd: DHCPOFFER on 192.168.2.251 to 00:c0:a8:f1:e8:c3 
(Tyler-PC) via bridge0
repeat till vista gives up

$ ifconfig bridge0
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 5a:34:0d:23:3f:71
inet 192.168.2.10 netmask 0xff00 broadcast 192.168.2.255  main
inet 192.168.2.1 netmask 0x broadcast 192.168.2.1route
inet 192.168.2.11 netmask 0x broadcast 192.168.2.11  proxy
inet 192.168.2.12 netmask 0x broadcast 192.168.2.12  mailhub
inet 192.168.2.51 netmask 0x broadcast 192.168.2.51  dns
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ral0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ifmaxaddr 0 port 1 priority 128 path cost 370370
member: rl0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ifmaxaddr 0 port 3 priority 128 path cost 55

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Raul I. Becette


I had a proxy server (Squid + Dansguardian) under Slackware on the 
LAN which, via 'ip route' I make it use 3 gateways connected each one 
to an ADSL line and balance the requests.
Unfortunately my server crashed and I took the oportunity to install 
a new one under FreeBSD 7.0-RELEASE. Squid and Dansguardian are 
working fine. My problem is that I don't know how to make the server 
use the other 2 gateways I have left and balance the requests on all 
ADSL lines.



use ipfw and fwd command.

for example with output section

add 1 fwd gw1_IP from DSL1_subnet to any via gw1_ethernet
add 10001 fwd gw2_IP from DSL2_subnet to any via gw2_ethernet
add 10002 fwd gw3_IP from DSL3_subnet to any via gw3_ethernet


for my scenario I asume gwX_IP the IP address of my dsl gateways. What 
would be DSLX_subnet and gwX_ethernet?
The proxy has only 1 NIC. Just to be sure: gateway_enable=YES must be 
set in /rtc.rc.conf and the kernel must be recompiled with ip forwarding 
capabilities?





please do treat above as an example of course.

Of course use right squid commands so it will select right source IP 
based on the rules you want, but as you already did id under linux i 
assume you have this practiced already.


Under Linux I didn't used squid commands to do the balancing. Only 
defining the 3 gateways with ip route command.

Is it possible to do the same with ipfw as you mentioned above?




i had 5+2 Polish Telecom links connected to one server - worked fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Chuck Swiger

Hi--

On Jun 18, 2009, at 10:41 AM, Mel Flynn wrote:
Does anyone have a how-to or pitfall summary on how to get a vista  
computer

to:
- accept DHCP offers from isc-dhcp30-server-3.0.7_4
- connect to WPA-PSK using *any* scheme supported by FreeBSD's hostapd
- give debugging information that makes sense to someone not  
speaking if

!not_working throw generic_catch_all_error lingo

[ ... ]

Related info:
Vista, WPA-PSK: The settings saved on this computer for the network  
do not

match the requirements of the network.
/var/log/dhcpd.log:
Jun 18 08:56:24 gate dhcpd: DHCPDISCOVER from 00:c0:a8:f1:e8:c3  
(Tyler-PC) via

bridge0
Jun 18 08:56:24 gate dhcpd: DHCPOFFER on 192.168.2.251 to  
00:c0:a8:f1:e8:c3

(Tyler-PC) via bridge0
repeat till vista gives up


One common pitfall that affects people doing unusual network  
topologies like bridging between wired and wireless is whether you've  
got proxy-ARP going, which might cause the Vista box to thing the IP  
being offered to it is really in use.  Try pinging one of your IPs in  
the DHCP pool range, and see whether you're getting ARPOP_REPLYs.  If  
so, the MAC address you get ought to lead to the hardware which is  
generating proxy ARP replies.


Of course, it might just be some Vista oddity-- perhaps it doesn't  
trust your wireless network because it doesn't like the encryption  
strength or some such, but I won't try to advise you on how to  
administer Vista itself


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Chad Brown
See here (#3):
http://www.freebsd.org/gnome/docs/halfaq.html

On Thu, Jun 18, 2009 at 9:38 AM, Jerry ges...@yahoo.com wrote:

 I have been trying to get the 'auto-mount' feature working in xfce4
 without success.

 An error message is displayed when I place a data disk into the cd
 drive. This is a screen shot of the error message:

http://imagebin.ca/view/sSCSEg.html

 This is the version of xfce4:

 Xfce 4 Desktop Environment
 version 4.6.1 (Xfce 4.6)

 This is being run from a FreeBSD-7.2 system.

 --
 Jerry
 ges...@yahoo.com

 The only constant is change.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Tim Judd
Long ago in 2007, I saw a M$ article that describes that Vista has an
extremely short delay period to get an IP.  If it doesn't get it
within 1 second, it gives up (and maybe tries again).  Common DHCP
servers ping an IP address, wait 1 second for a reply, and if no
reply, assumes the IP is available and leases it to the booting
computer.

This one-second delay might be causing Vista to time out.  The article
explained how to lengthen the timeout, but I'm going to direct your
attention to another vector.

Is your DHCP server authoritative?  That means, that no matter if any
other DHCP servers are on the network, the authoritative DHCP will
butt in and force/offer it's lease in preference over any other DHCP
traffic on the network.



The other question is why you have it as a bridge, when sysctl
net.inet.ip.forwarding=1 might all you need.

Another Q is why you might have a DHCP server listen on one IP (let's
say it's the wired interface), but not on the wifi (this wasn't clear
in the OP, but it might be the case).

On 6/18/09, Chuck Swiger cswi...@mac.com wrote:
 Hi--

 On Jun 18, 2009, at 10:41 AM, Mel Flynn wrote:
 Does anyone have a how-to or pitfall summary on how to get a vista
 computer
 to:
 - accept DHCP offers from isc-dhcp30-server-3.0.7_4
 - connect to WPA-PSK using *any* scheme supported by FreeBSD's hostapd
 - give debugging information that makes sense to someone not
 speaking if
 !not_working throw generic_catch_all_error lingo
 [ ... ]
 Related info:
 Vista, WPA-PSK: The settings saved on this computer for the network
 do not
 match the requirements of the network.
 /var/log/dhcpd.log:
 Jun 18 08:56:24 gate dhcpd: DHCPDISCOVER from 00:c0:a8:f1:e8:c3
 (Tyler-PC) via
 bridge0
 Jun 18 08:56:24 gate dhcpd: DHCPOFFER on 192.168.2.251 to
 00:c0:a8:f1:e8:c3
 (Tyler-PC) via bridge0
 repeat till vista gives up

 One common pitfall that affects people doing unusual network
 topologies like bridging between wired and wireless is whether you've
 got proxy-ARP going, which might cause the Vista box to thing the IP
 being offered to it is really in use.  Try pinging one of your IPs in
 the DHCP pool range, and see whether you're getting ARPOP_REPLYs.  If
 so, the MAC address you get ought to lead to the hardware which is
 generating proxy ARP replies.

 Of course, it might just be some Vista oddity-- perhaps it doesn't
 trust your wireless network because it doesn't like the encryption
 strength or some such, but I won't try to advise you on how to
 administer Vista itself

 Regards,
 --
 -Chuck

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PF Routing to VPN Device

2009-06-18 Thread Tim Judd
On 6/17/09, Mike Sweetser - Adhost mik...@adhost.com wrote:
 Hello,

 We have a network with a VPN device sitting beside a PF server, both
 connected to an internal network.

 PF Server: 10.1.4.1
 VPN Device: 10.1.4.200

 The VPNs are set up for 10.1.1.0/24 and 10.1.2.0/24, so any traffic to
 these networks should be routed to 10.1.4.200.  We've set up routes on
 the PF server as such.

 We've set up the following rules:

 block in log
 pass in on $int_if route-to 10.1.4.200 from 10.1.4.0/24 to { 10.1.1.0/24
 10.1.2.0/24)

 However, the block in log is catching the return traffic.  From pflog
 when somebody on the VPN (10.1.2.105) tries to connect to 10.1.4.25 on
 port 80:

 00 rule 28/0(match): block in on bge1: 10.1.4.25.80 
 10.1.2.105.3558: [|tcp]

 If we remove the block in log, the traffic works.

 What are we missing?

 Thanks,
 Mike



Mike,

I know the typical firewall rules that are googleable are one of two
basic starting policies..

-- 1.
  block in all
  pass out all


-- 2.
  block all



They've become a headache to me to configure a firewall and I now
start with this base.  In this example, fxp0 is facing the Internet,
and xl0 is facing the trusted network.

-- 3.
  block in on fxp0 all
  pass out

This adds the benefit that VPN connections, TUNs, GIFs, and all other
ethernet devices aren't blindly evaluated to a simple block in rule,
rather it's just the fxp0 interface public Internet traffic that is
being blocked, while TUNs, GIFs, and the like are exempt from that
rule entry line.



Might you try by editing your rules to just block your public IP
firewall interface?



Good luck.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ftp user issues

2009-06-18 Thread Chris Maness
I just upgraded to 7.2, and I am no longer able to log in via ftp with
my user name.  Other accounts are ok on the server.  I checked the
ftpusers file and my name is not on the list.

Chris Maness
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ftp user issues

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 11:45:43 -0700, Chris Maness ch...@chrismaness.com wrote:
 I just upgraded to 7.2, and I am no longer able to log in via ftp with
 my user name.  Other accounts are ok on the server.  I checked the
 ftpusers file and my name is not on the list.

You can use ftp -v to get more information, and maybe tcpdump
from that interface so see what's happening.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Wojciech Puchar

Long ago in 2007, I saw a M$ article that describes that Vista has an
extremely short delay period to get an IP.  If it doesn't get it
within 1 second, it gives up (and maybe tries again).  Common DHCP
servers ping an IP address, wait 1 second for a reply, and if no
reply, assumes the IP is available and leases it to the booting
computer.


1 second is a lot of time. in my network there are lots of windoze vista 
users and they get IP by dhcpd without problems.


delays in LAN are within 10ms range even with a lot of switches.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gateway load balance

2009-06-18 Thread Wojciech Puchar


use ipfw and fwd command.

for example with output section

add 1 fwd gw1_IP from DSL1_subnet to any via gw1_ethernet
add 10001 fwd gw2_IP from DSL2_subnet to any via gw2_ethernet
add 10002 fwd gw3_IP from DSL3_subnet to any via gw3_ethernet


for my scenario I asume gwX_IP the IP address of my dsl gateways. What would 
be DSLX_subnet and gwX_ethernet?


sorry i thought you are not doing nat in gateways. if you do and cat 
change it - change it, but it's not a requirement.


replace DSL1_subnet with DSL1_outgoing address etc., if all 
gateways are connected by switch replace gw*_ethernet with the same.


you must start with different outgoing addresses (simple in squid) for 
each gateway.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


PXEBOOT based upgrade/install

2009-06-18 Thread Bruce Ferrell
Hi all!

I'm new in these parts, but not new to *nix.  I'm trying to upgrade a
system with FreeBSD 5.4 to 7.2.

I've gotten the pxeboot to work, but somehow the network interface isn't
seen by the installer.

loader.rc:
===
include /boot/loader.4th
include /boot/beastie.4th

\ Reads and processes loader.conf variables
start

load /boot/kernel/kernel
load -t mfs_root /boot/mfsroot
set vfs.root.mountfrom=ufs:/dev/md0c
boot

loader.conf:

mfsroot_load=YES
mfsroot_type=mfs_root
mfsroot_name=/boot/mfsroot
if_bge_load=yes

I added the if_bge line at that seems to be the module used on 5.4.

Any other leads?

Thanks in advance

Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ftp user issues

2009-06-18 Thread Tim Judd
On 6/18/09, Chris Maness ch...@chrismaness.com wrote:
 I just upgraded to 7.2, and I am no longer able to log in via ftp with
 my user name.  Other accounts are ok on the server.  I checked the
 ftpusers file and my name is not on the list.

 Chris Maness

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ftp.html

ftpusers file is used to prevent logins.

http://www.freebsd.org/cgi/man.cgi?query=ftpdapropos=0sektion=0manpath=FreeBSD+7.2-RELEASEformat=html

is your user's shell (i.e: bash) in /etc/shells ?

FreeBSD's stock ftpd requires the user's shell to be in /etc/shells in
order to login.  See
http://www.freebsd.org/cgi/man.cgi?query=getusershellsektion=3apropos=0manpath=FreeBSD+7.2-RELEASE



Documentation is great.  RTFM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ftp user issues

2009-06-18 Thread Chris Maness

 Documentation is great.  RTFM


I don't think a RTFM is justified as this connection is an esoteric
one for some of us.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PXEBOOT based upgrade/install

2009-06-18 Thread Tim Judd
If you're going to setup a netbooting server (congrats!), why are you
trying to limit yourself to what seems to be the bootonly CD?

There are some people who complain about broadcom cards, in the fact
that they're buggy support/nonexistant support.  Maybe your NIC
chipset is one of those.

The loader.rc is told to mount a memory filesystem from ufs formatted
disk located at /dev/md0c (a memory disk that is populated from the
previous line, a file-based filesystem).

So your system wouldn't be able to hit sysinstall or the /etc files
(as I'm seeing the boot process) to do the install or configuration.




Overall, what's to stop you from doing a diskless boot?  the handbook
makes it for a multi-PC setup, but for a single setup, it's quite
easy.


On 6/18/09, Bruce Ferrell bferr...@baywinds.org wrote:
 Hi all!

 I'm new in these parts, but not new to *nix.  I'm trying to upgrade a
 system with FreeBSD 5.4 to 7.2.

 I've gotten the pxeboot to work, but somehow the network interface isn't
 seen by the installer.

 loader.rc:
 ===
 include /boot/loader.4th
 include /boot/beastie.4th

 \ Reads and processes loader.conf variables
 start

 load /boot/kernel/kernel
 load -t mfs_root /boot/mfsroot
 set vfs.root.mountfrom=ufs:/dev/md0c
 boot

 loader.conf:
 
 mfsroot_load=YES
 mfsroot_type=mfs_root
 mfsroot_name=/boot/mfsroot
 if_bge_load=yes

 I added the if_bge line at that seems to be the module used on 5.4.

 Any other leads?

 Thanks in advance

 Bruce
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ftp user issues

2009-06-18 Thread Chris Maness

 is your user's shell (i.e: bash) in /etc/shells ?


This was the issue, thanks.  I guess I missed that one in mergemaster.

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem authenticating with sasl in jail

2009-06-18 Thread Erik Norgaard

Mel Flynn wrote:

On Wednesday 17 June 2009 21:51:03 Erik Norgaard wrote:


Jun 17 23:39:17 jail imap[8412]: badlogin: jail.example.com [172.16.0.2]
plaintext cy...@example.com SASL(-13): user not found: checkpass failed



So does the imap server know the domain name? How does it figure it out? Does 
it know to strip domain names because you configured the unix passwd backend?
If it uses the domainname command to figure out the domainname, you may have 
it set on the working server, yet not on the jail.
Any differences related to domains in /etc/rc.conf and /etc/resolv.conf that 
might shed some light?


I added the line

defaultdomain: example.com

to imapd.conf, this line is not in my working server configuration, 
however, it does make the realm part go away from the error message, not 
that it solves the problem though:


Jun 18 21:09:57 jail imap[22562]: badlogin: jail.example.com 
[172.16.0.2] plaintext cyrus SASL(-1): generic failure: checkpass failed


Now, adding debug mode to saslautd, I got some extra info in auth.log:

Jun 18 21:13:21 jail saslauthd[21300]: DEBUG: auth_pam: pam_authenticate 
failed: authentication error
Jun 18 21:13:21 jail saslauthd[21300]: do_auth : auth failure: 
[user=cy...@example.com] [service=imap] [realm=] [mech=pam] [reason=PAM 
auth error]


I have checked /etc/pam.d in the jail against the host and they are 
identical, also /usr/local/etc/pam.d - both empty. Are there any known 
problems with pam in jails?



I'm sorry I can't be of more Cyrus specific help.


Thanks for taking your time, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PXEBOOT based upgrade/install

2009-06-18 Thread Bruce Ferrell


Tim Judd wrote:
 If you're going to setup a netbooting server (congrats!), why are you
 trying to limit yourself to what seems to be the bootonly CD?

Uh... 'cause I don't know any better? :)  Point me to docs so I can do
better!

 There are some people who complain about broadcom cards, in the fact
 that they're buggy support/nonexistant support.  Maybe your NIC
 chipset is one of those.

I don't know about that.  This is in a Dell Power Edge 850 running
FreeBSD 5.4.

 The loader.rc is told to mount a memory filesystem from ufs formatted
 disk located at /dev/md0c (a memory disk that is populated from the
 previous line, a file-based filesystem).

So, I need to get rid of the set line?

before I added that (done by rote from googeling) I was getting a panic
about no init.

 So your system wouldn't be able to hit sysinstall or the /etc files
 (as I'm seeing the boot process) to do the install or configuration.
 
 
 
 
 Overall, what's to stop you from doing a diskless boot?  the handbook
 makes it for a multi-PC setup, but for a single setup, it's quite
 easy.

I need the stuff on the local disk as it runs an application that needs
local postgres and other stuff.  Yes, I could put it elsewhere, but it
would mean flying 5 hours to do it.  Rather just do an upgrade.

 
 On 6/18/09, Bruce Ferrell bferr...@baywinds.org wrote:
 Hi all!

 I'm new in these parts, but not new to *nix.  I'm trying to upgrade a
 system with FreeBSD 5.4 to 7.2.

 I've gotten the pxeboot to work, but somehow the network interface isn't
 seen by the installer.

 loader.rc:
 ===
 include /boot/loader.4th
 include /boot/beastie.4th

 \ Reads and processes loader.conf variables
 start

 load /boot/kernel/kernel
 load -t mfs_root /boot/mfsroot
 set vfs.root.mountfrom=ufs:/dev/md0c
 boot

 loader.conf:
 
 mfsroot_load=YES
 mfsroot_type=mfs_root
 mfsroot_name=/boot/mfsroot
 if_bge_load=yes

 I added the if_bge line at that seems to be the module used on 5.4.

 Any other leads?

 Thanks in advance

 Bruce
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Jerry
On Thu, 18 Jun 2009 14:09:58 -0400
Chad Brown free...@gmail.com wrote:

 See here (#3):
 http://www.freebsd.org/gnome/docs/halfaq.html

Thanks, that works. In retrospect, 99% of PC users insert a CD and it
just 'works'. Why can't FreeBSD make it that simple?

Just my 2 cents.

-- 
Jerry
ges...@yahoo.com

I think she must have been very strictly brought up, she's so
desperately anxious to do the wrong thing correctly.

Saki, Reginald on Worries
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Mel Flynn
On Thursday 18 June 2009 09:56:29 Chuck Swiger wrote:
 Hi--

 On Jun 18, 2009, at 10:41 AM, Mel Flynn wrote:
  Does anyone have a how-to or pitfall summary on how to get a vista
  computer
  to:
  - accept DHCP offers from isc-dhcp30-server-3.0.7_4
  - connect to WPA-PSK using *any* scheme supported by FreeBSD's hostapd
  - give debugging information that makes sense to someone not
  speaking if
  !not_working throw generic_catch_all_error lingo

 [ ... ]

  Related info:
  Vista, WPA-PSK: The settings saved on this computer for the network
  do not
  match the requirements of the network.
  /var/log/dhcpd.log:
  Jun 18 08:56:24 gate dhcpd: DHCPDISCOVER from 00:c0:a8:f1:e8:c3
  (Tyler-PC) via
  bridge0
  Jun 18 08:56:24 gate dhcpd: DHCPOFFER on 192.168.2.251 to
  00:c0:a8:f1:e8:c3
  (Tyler-PC) via bridge0
  repeat till vista gives up

 One common pitfall that affects people doing unusual network
 topologies like bridging between wired and wireless is whether you've
 got proxy-ARP going, which might cause the Vista box to thing the IP
 being offered to it is really in use.  Try pinging one of your IPs in
 the DHCP pool range, and see whether you're getting ARPOP_REPLYs.  If
 so, the MAC address you get ought to lead to the hardware which is
 generating proxy ARP replies.

Ah, forgot to mention. This isn't bridge specific. It didn't work with the 
same issues, when I was using a separate network for the wireless interface. I 
was actually hoping that using a bridge would fix it, as it cleaned up my 
firewall and NAT rules. It also persisted through a change from ath to ral 
hostap.
Also the IP isn't in use. My own laptop is one other wireless machine and I've 
kept it out of DHCP range. The Kubuntu laptop was powered off at the time, 
servers are also out of DHCP range and the work stations are assigned properly 
on different IPs. There's also no evidence of a hacked WEP connection in 
pftop, now that we've temporarily switched back to it. Static IP works, even 
the one that DHCP would have it assigned. The DHCPOFFER is just never seen by 
the vista client and I cannot at present determine where. It leaves the bridge 
interface just fine, but if it gets lost in wlan, dropped by vista firewall or 
silently ignored by vista because it doesn't adhere to vista's expectation is 
unknown. I'd appreciate it if someone would have tcpdump/wlantools etc rules 
available to track this and mention what to look for.
We've got some time set aside this weekend to do any sniffing/diagnostics and 
will post back results if any.

 Of course, it might just be some Vista oddity-- perhaps it doesn't
 trust your wireless network because it doesn't like the encryption
 strength or some such, but I won't try to advise you on how to
 administer Vista itself

Hehe, no. The objective here is to figure out how to get it working using 
tools and diagnostics on the gateway machine and go as far as applying 
hotfixes and service packs for Vista. But it should work without registry 
hacks or continuous maintenance.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PXEBOOT based upgrade/install

2009-06-18 Thread Erik Norgaard

Bruce Ferrell wrote:

Hi all!

I'm new in these parts, but not new to *nix.  I'm trying to upgrade a
system with FreeBSD 5.4 to 7.2.

I've gotten the pxeboot to work, but somehow the network interface isn't
seen by the installer.

loader.rc:
===
include /boot/loader.4th
include /boot/beastie.4th

\ Reads and processes loader.conf variables
start

load /boot/kernel/kernel
load -t mfs_root /boot/mfsroot
set vfs.root.mountfrom=ufs:/dev/md0c
boot

loader.conf:

mfsroot_load=YES
mfsroot_type=mfs_root
mfsroot_name=/boot/mfsroot
if_bge_load=yes

I added the if_bge line at that seems to be the module used on 5.4.

Any other leads?


I wrote a guide years ago, it hasn't been updated since 6.2, but for 
this stage I don't think there are any changes.


http://www.locolomo.org/pub/pxeboot/index.html

It also explains how to build your own custom mfsroot.

Does the kernel support tftp and/or nfs? is your mfsroot actually 
fetched from the server?


BR, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Polytropon
On Thu, 18 Jun 2009 15:30:22 -0400, Jerry ges...@yahoo.com wrote:
 Thanks, that works. In retrospect, 99% of PC users insert a CD and it
 just 'works'. Why can't FreeBSD make it that simple?

Because it is already doing it simple.

Personally, I find myself often putting in a CD and NOT
wanting to do something with it right now. Then any kind
of forced interaction would be annoying.

FreeBSD keeps it right in my opinion: Keep to the OS what
is the OS's stuff, and leave everything optional to modular
parts, such als HAL or DBUS.

What should, in your opinion, happen? Mounting the disc
to a predefined directory? Which one? What if it isn't
a ISO-9660 disc, but a UFS or tar or plain disc? What
if the disc is empty, should a CD recording applicaion
be launched? Which one should it be? If two discs are
put into two different drives (a situation common if you
want to copy a disc 1:1), what should happen then? What
if the order of puttin in the two discs is vice versa?
If it is a rewritable disc, mount it rw? What if it gets
popped out right after that (because it was the wrong
disc), what should the OS do? When there's something
executable on the disc, should it be executed right now?
Maybe with root privileges, just to be sure? If there's
more than one executable, should all of the executables
be launched? If there are documents on it, should they
be automatically opened? By which programs? If there's
an installer for some program on the disc, should the
application be installed automatically? Should the content
of the disc be indexed right away, because this could be
needed sometimes in the future?

If you can answer these and many following questions, you
are on your way on making FreeBSD being just like everything
else that just works - like Windows. :-)

FreeBSD is acting determinable: It does exactly what you
tell it to do, by commands or by preconfiguration. This
is a big strength, you always can predict what will happen.

Have you ever thought about using PC-BSD? It is very
convenient for 99% of the users you described, and still
a FreeBSD system.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PXEBOOT based upgrade/install

2009-06-18 Thread Tim Judd
As a very brief instruction to setup a single-PC diskless boot
(because of the pid files, mostly.  But files in /etc are also the
same concern) do the following on your NFS exported filesystems..

cd /path/to/installation/medium
cd 7.2-RELEASE/kernels
cat generic.?? | tar --unlink -xpzf - -C /path/to/exported/mountpoint
cd ../base
cat base.?? | tar --unlink -xpzf - -C /path/to/exported/mountpoint

Add some NFS server functionality (file locking [for editing
/etc/passwd], mostly) by adding to the server's rc.conf and starting
the services:
  rpc_statd_enable=YES
  rpc_lockd_enable=YES

Create the client's files:
  /etc/fstab
  /etc/rc.conf

The client ALSO needs statd and lockd in order for file locking to
work... don't forget to add it.

And create optionally the serial console ability as outlined in the handbook.



My ALIX (aka new PC Engines' WRAP boards) routers both have this
diskless setup.  If you're running it off Compact Flash, keep in mind
the limited write cycles.  I have them both running off Microdrives
now (1 hard disks at 3600RPM)


If anyone gets stuck, as I'm writing this from memory while I'm at
work, let me know.  I'll double check my config at home and update it
if I need to.  This does not add the manpages, the source files,
ports, or anything.  It's the same as sysinstall's minimal config.
This will boot to a Multi-User Interface (MUI) and you can run
sysinstall after logging in with root with no password.



On 6/18/09, Bruce Ferrell bferr...@baywinds.org wrote:


 Tim Judd wrote:
 If you're going to setup a netbooting server (congrats!), why are you
 trying to limit yourself to what seems to be the bootonly CD?

 Uh... 'cause I don't know any better? :)  Point me to docs so I can do
 better!

 There are some people who complain about broadcom cards, in the fact
 that they're buggy support/nonexistant support.  Maybe your NIC
 chipset is one of those.

 I don't know about that.  This is in a Dell Power Edge 850 running
 FreeBSD 5.4.

 The loader.rc is told to mount a memory filesystem from ufs formatted
 disk located at /dev/md0c (a memory disk that is populated from the
 previous line, a file-based filesystem).

 So, I need to get rid of the set line?

 before I added that (done by rote from googeling) I was getting a panic
 about no init.

 So your system wouldn't be able to hit sysinstall or the /etc files
 (as I'm seeing the boot process) to do the install or configuration.




 Overall, what's to stop you from doing a diskless boot?  the handbook
 makes it for a multi-PC setup, but for a single setup, it's quite
 easy.

 I need the stuff on the local disk as it runs an application that needs
 local postgres and other stuff.  Yes, I could put it elsewhere, but it
 would mean flying 5 hours to do it.  Rather just do an upgrade.


 On 6/18/09, Bruce Ferrell bferr...@baywinds.org wrote:
 Hi all!

 I'm new in these parts, but not new to *nix.  I'm trying to upgrade a
 system with FreeBSD 5.4 to 7.2.

 I've gotten the pxeboot to work, but somehow the network interface isn't
 seen by the installer.

 loader.rc:
 ===
 include /boot/loader.4th
 include /boot/beastie.4th

 \ Reads and processes loader.conf variables
 start

 load /boot/kernel/kernel
 load -t mfs_root /boot/mfsroot
 set vfs.root.mountfrom=ufs:/dev/md0c
 boot

 loader.conf:
 
 mfsroot_load=YES
 mfsroot_type=mfs_root
 mfsroot_name=/boot/mfsroot
 if_bge_load=yes

 I added the if_bge line at that seems to be the module used on 5.4.

 Any other leads?

 Thanks in advance

 Bruce
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Compact Freebsd 'appliance'

2009-06-18 Thread John Almberg
I have a client who has an application that he wants to deploy in his  
customer's offices as a headless 'appliance'. Basically, just a black  
box that you can plug into a Lan, turn it on, and it runs. No floppy  
disk or CD, no monitor/keyboard, just remotely managed.


This application won't store any critical data, so it doesn't need  
redundancy. It just needs to be reasonably reliable, compact, and quiet.


My first recommendation was to use a Mac Mini, but that excellent bit  
of hardware was deemed 'not professional enough'. So now I am looking  
for a compact pc that can run FreeBSD, of course. I think it probably  
just needs a power supply, tiny motherboard with onboard ethernet,  
usb, etc., and hard drive.


If anyone has a recommendation (or if their are any vendors lurking),  
please shoot me an email off list. I'll compile a list of  
recommendations and post it all at once, in case anyone else is  
interested in this.


Thanks: John -- jalmberg at identry dot com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Jerry
On Thu, 18 Jun 2009 14:09:58 -0400
Chad Brown free...@gmail.com wrote:

 See here (#3):
 http://www.freebsd.org/gnome/docs/halfaq.html

OK, now I discovered a new problem. When attempting to eject the CD, I
am greeted with another error message, viewable at the following URL.

http://imagebin.ca/view/wa99wB.html

I cannot remove the CD from the drive. That kind of sucks. I may have
to reboot to get it out.

The output of polkit-auth:

org.gnome.gconf.defaults.set-system
org.gnome.gconf.defaults.set-mandatory
org.freedesktop.hal.wol.enabled
org.freedesktop.hal.wol.enable
org.freedesktop.hal.wol.supported
org.freedesktop.hal.dockstation.undock
org.freedesktop.hal.killswitch.bluetooth
org.freedesktop.hal.killswitch.wlan
org.freedesktop.hal.killswitch.wwan
org.freedesktop.hal.power-management.shutdown
org.freedesktop.hal.power-management.shutdown-multiple-sessions
org.freedesktop.hal.power-management.reboot
org.freedesktop.hal.power-management.reboot-multiple-sessions
org.freedesktop.hal.power-management.set-powersave
org.freedesktop.hal.power-management.suspend
org.freedesktop.hal.power-management.hibernate
org.freedesktop.hal.power-management.cpufreq
org.freedesktop.hal.power-management.lcd-panel
org.freedesktop.hal.power-management.light-sensor
org.freedesktop.hal.power-management.keyboard-backlight
org.freedesktop.hal.storage.mount-fixed
org.freedesktop.hal.storage.mount-removable
org.freedesktop.hal.storage.unmount-others
org.freedesktop.hal.storage.eject
org.freedesktop.hal.storage.crypto-setup-fixed
org.freedesktop.hal.storage.crypto-setup-removable
org.freedesktop.hal.lock
org.freedesktop.consolekit.system.stop
org.freedesktop.consolekit.system.stop-multiple-users
org.freedesktop.consolekit.system.restart
org.freedesktop.consolekit.system.restart-multiple-users
org.freedesktop.policykit.read
org.freedesktop.policykit.revoke
org.freedesktop.policykit.grant
org.freedesktop.policykit.modify-defaults


-- 
Jerry
ges...@yahoo.com

Do not do unto others as you would they should do unto you.
Their tastes may not be the same.

George Bernard Shaw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to auto-mount a CD in XFCE4

2009-06-18 Thread Neal Hogan
man umount

On Thu, Jun 18, 2009 at 2:50 PM, Jerryges...@yahoo.com wrote:
 On Thu, 18 Jun 2009 14:09:58 -0400
 Chad Brown free...@gmail.com wrote:

 See here (#3):
 http://www.freebsd.org/gnome/docs/halfaq.html

 OK, now I discovered a new problem. When attempting to eject the CD, I
 am greeted with another error message, viewable at the following URL.

 http://imagebin.ca/view/wa99wB.html

 I cannot remove the CD from the drive. That kind of sucks. I may have
 to reboot to get it out.

 The output of polkit-auth:

 org.gnome.gconf.defaults.set-system
 org.gnome.gconf.defaults.set-mandatory
 org.freedesktop.hal.wol.enabled
 org.freedesktop.hal.wol.enable
 org.freedesktop.hal.wol.supported
 org.freedesktop.hal.dockstation.undock
 org.freedesktop.hal.killswitch.bluetooth
 org.freedesktop.hal.killswitch.wlan
 org.freedesktop.hal.killswitch.wwan
 org.freedesktop.hal.power-management.shutdown
 org.freedesktop.hal.power-management.shutdown-multiple-sessions
 org.freedesktop.hal.power-management.reboot
 org.freedesktop.hal.power-management.reboot-multiple-sessions
 org.freedesktop.hal.power-management.set-powersave
 org.freedesktop.hal.power-management.suspend
 org.freedesktop.hal.power-management.hibernate
 org.freedesktop.hal.power-management.cpufreq
 org.freedesktop.hal.power-management.lcd-panel
 org.freedesktop.hal.power-management.light-sensor
 org.freedesktop.hal.power-management.keyboard-backlight
 org.freedesktop.hal.storage.mount-fixed
 org.freedesktop.hal.storage.mount-removable
 org.freedesktop.hal.storage.unmount-others
 org.freedesktop.hal.storage.eject
 org.freedesktop.hal.storage.crypto-setup-fixed
 org.freedesktop.hal.storage.crypto-setup-removable
 org.freedesktop.hal.lock
 org.freedesktop.consolekit.system.stop
 org.freedesktop.consolekit.system.stop-multiple-users
 org.freedesktop.consolekit.system.restart
 org.freedesktop.consolekit.system.restart-multiple-users
 org.freedesktop.policykit.read
 org.freedesktop.policykit.revoke
 org.freedesktop.policykit.grant
 org.freedesktop.policykit.modify-defaults


 --
 Jerry
 ges...@yahoo.com

 Do not do unto others as you would they should do unto you.
 Their tastes may not be the same.

        George Bernard Shaw
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Tim Judd
What kind of application?  This is so we can gear a hardware that is
powerful enough to power your application.

Naming the application and/or website would be a good addition.


On 6/18/09, John Almberg jalmb...@identry.com wrote:
 I have a client who has an application that he wants to deploy in his
 customer's offices as a headless 'appliance'. Basically, just a black
 box that you can plug into a Lan, turn it on, and it runs. No floppy
 disk or CD, no monitor/keyboard, just remotely managed.

 This application won't store any critical data, so it doesn't need
 redundancy. It just needs to be reasonably reliable, compact, and quiet.

 My first recommendation was to use a Mac Mini, but that excellent bit
 of hardware was deemed 'not professional enough'. So now I am looking
 for a compact pc that can run FreeBSD, of course. I think it probably
 just needs a power supply, tiny motherboard with onboard ethernet,
 usb, etc., and hard drive.

 If anyone has a recommendation (or if their are any vendors lurking),
 please shoot me an email off list. I'll compile a list of
 recommendations and post it all at once, in case anyone else is
 interested in this.

 Thanks: John -- jalmberg at identry dot com
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Changing my login directory

2009-06-18 Thread Glen Barber
On Thu, Jun 18, 2009 at 12:59 PM, Polytroponfree...@edvax.de wrote:
 On Thu, 18 Jun 2009 12:33:24 -0400, Glen Barber glen.j.bar...@gmail.com 
 wrote:
 Thanks for that little tidbit in return -- I've been trying to
 figure how prompt settings. :)

 See those:

        set promptchars = %#
        set prompt = %...@%m:%~%# 

 Or even:

        set prompt = [%T] %...@%m:%~%# 
        set prompt = [%T] *%h =%? :%m/%l @%n %~%B%#%b 
        set prompt = *%h=%? [%T] %...@%m/%l:%~%B%#%b 

 There's lots of customization that you can do with csh's prompt
 variable; man csh is really very interesting.

 Ah yes, and don't forget to

        set autolist

 which is very handy, by the way.


I'm usually pretty happy with default settings (which is why I've
never looked at the prompts in 'man csh'), but since I was nose-deep
in $HOME/.muttrc configs yesterday, this peaked my interest. :)


-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Bill Moran

 On 6/18/09, John Almberg jalmb...@identry.com wrote:
  I have a client who has an application that he wants to deploy in his
  customer's offices as a headless 'appliance'. Basically, just a black
  box that you can plug into a Lan, turn it on, and it runs. No floppy
  disk or CD, no monitor/keyboard, just remotely managed.
 
  This application won't store any critical data, so it doesn't need
  redundancy. It just needs to be reasonably reliable, compact, and quiet.
 
  My first recommendation was to use a Mac Mini, but that excellent bit
  of hardware was deemed 'not professional enough'. So now I am looking
  for a compact pc that can run FreeBSD, of course. I think it probably
  just needs a power supply, tiny motherboard with onboard ethernet,
  usb, etc., and hard drive.
 
  If anyone has a recommendation (or if their are any vendors lurking),
  please shoot me an email off list. I'll compile a list of
  recommendations and post it all at once, in case anyone else is
  interested in this.

There's lots of hardware vendors out there that sell stuff like this, if
you're buying enough of them, they'll even brand the case for you.

Some terms you can search on: Soekris, AMD Geode

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


radio-buttons and PHP; may be a bit OT.

2009-06-18 Thread Gary Kline
After a lot of trial and error I have a PHP version of radio buttons
working in a test.php.  It asks the user to rate the article/story 
in standard Lykert (5-way) methodology.  1) Liked ... to 5) Disliked.

The code works; still polishing for errors.  I need a way to store the
results, tho.  So, for story baz.php, say, should I save the count of
times rated, then average [%f] the ratings?  Or is there a more swift
algorithm?

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.98a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: radio-buttons and PHP; may be a bit OT.

2009-06-18 Thread Bill Moran
In response to Gary Kline kl...@thought.org:

   After a lot of trial and error I have a PHP version of radio buttons
   working in a test.php.  It asks the user to rate the article/story 
   in standard Lykert (5-way) methodology.  1) Liked ... to 5) Disliked.
 
   The code works; still polishing for errors.  I need a way to store the
   results, tho.  So, for story baz.php, say, should I save the count of
   times rated, then average [%f] the ratings?  Or is there a more swift
   algorithm?

In my experience, you're best off storing the raw data, then generating
statistics in a separate step.  That way, if you decide that you want to
generate different statistics (mean vs. mode, for example) you still have
the raw data to do so.

If you're storing the results in a flat file, just have have the script
append the new results to the end of the file, then have another process
that comes along and reads the file, and generates a different file with
the statistics.

Of course, this is even easier if you're using a database.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Tim Judd
On 6/18/09, John Almberg jalmb...@identry.com wrote:

 On Jun 18, 2009, at 4:14 PM, Tim Judd wrote:

 What kind of application?  This is so we can gear a hardware that is
 powerful enough to power your application.

 Naming the application and/or website would be a good addition.

 It's main purpose is to fetch videos off a local server (i.e., on the
 same lan it's plugged into), convert them into flash videos, and
 upload them to a remote server.

 There will also be a small web application that will be used to
 manage the application.

 Why do we need this little box, at all? I.e., why can't the whole
 thing be done by a remote server? It probably could, but my client
 feels that this little box makes his service 'concrete' and easier to
 sell. It's something his customers can hold and marvel at.

 Marketing... go figure.

 I'm thinking something like the Intel BOXD945GCLF2D Intel Atom
 processor 330 Intel 945GC Mini ITX Motherboard/CPU Combo, might do
 the trick.

 -- John



John, so I'd use a system board like you described in preference to
all other boards that are referenced or called a embedded board.
Video processing can be very CPU intensive, plus RAM intensive.  I
didn't actually look at that product you posted, but that would be the
gear I would start looking at.


I've read reports (and forgotten it's source since then) that some
Intel Atom processors work well, some don't with FreeBSD.  This was
something I read within a couple months, so I would see if anyone here
can provide input on pros and cons on weather that particular Atom
model number is well received and well tested.

Nothing like developing a product based on inadequate or crappy
hardware OR support.  Do lots of prototypes, that's the only sure way
to test.


--Tim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: radio-buttons and PHP; may be a bit OT.

2009-06-18 Thread Gary Kline
On Thu, Jun 18, 2009 at 04:56:34PM -0400, Bill Moran wrote:
 In response to Gary Kline kl...@thought.org:
 
  After a lot of trial and error I have a PHP version of radio buttons
  working in a test.php.  It asks the user to rate the article/story 
  in standard Lykert (5-way) methodology.  1) Liked ... to 5) Disliked.
  
  The code works; still polishing for errors.  I need a way to store the
  results, tho.  So, for story baz.php, say, should I save the count of
  times rated, then average [%f] the ratings?  Or is there a more swift
  algorithm?
 
 In my experience, you're best off storing the raw data, then generating
 statistics in a separate step.  That way, if you decide that you want to
 generate different statistics (mean vs. mode, for example) you still have
 the raw data to do so.
 
 If you're storing the results in a flat file, just have have the script
 append the new results to the end of the file, then have another process
 that comes along and reads the file, and generates a different file with
 the statistics.
 
 Of course, this is even easier if you're using a database.
 
You're right about saving the raw data.  I know how to do that in a flat
file, but other than having used mysql for PHPBB, no idea.  Shouldn't i
only need that name of the file and that rating for mysql?  I do know 
how
to create a database in mysql, but no more.  Can you show me what is
required to grab from i need from the radiobutton data?

gary


 -- 
 Bill Moran
 http://www.potentialtech.com
 http://people.collaborativefusion.com/~wmoran/

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
   For FBSD list: http://transfinite.thought.org/slicejourney.php
The 4.98a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Mel Flynn
On Thursday 18 June 2009 10:27:44 Tim Judd wrote:
 Long ago in 2007, I saw a M$ article that describes that Vista has an
 extremely short delay period to get an IP.  If it doesn't get it
 within 1 second, it gives up (and maybe tries again).  Common DHCP
 servers ping an IP address, wait 1 second for a reply, and if no
 reply, assumes the IP is available and leases it to the booting
 computer.
ISC-dhcpd doesn't work that way. It keeps a lease db and assumes it's db is 
the authority on available iP's for the range.

 Is your DHCP server authoritative?

Yes:
authoritative;
ddns-update-style interim;

subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.200 192.168.2.254;

option subnet-mask 255.255.255.0;
option broadcast-address 255.255.255.255;
option domain-name lan.rachie.is-a-geek.net;
option domain-name-servers 192.168.2.51;
option routers 192.168.2.1;

option ntp-servers 192.168.2.10;
option wpad http://192.168.2.100/proxy.pac;;

# Dynamic DNS setup
snipped for brevity
}

 The other question is why you have it as a bridge, when sysctl
 net.inet.ip.forwarding=1 might all you need.

To merge wired and wireless into one network and for the firewall one 
internal interface. Also means I can use lagg(4) on this laptop.

 Another Q is why you might have a DHCP server listen on one IP (let's
 say it's the wired interface), but not on the wifi (this wasn't clear
 in the OP, but it might be the case).

It's on the bridge and as such on both and works on both. I have an IP 
assigned to be able to move it off the gateway should the need arrise or to 
simulate a migration like that for testing, in case I need it for a client.

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem authenticating with sasl in jail

2009-06-18 Thread Mel Flynn
On Thursday 18 June 2009 11:21:51 Erik Norgaard wrote:
 Mel Flynn wrote:
  On Wednesday 17 June 2009 21:51:03 Erik Norgaard wrote:
  Jun 17 23:39:17 jail imap[8412]: badlogin: jail.example.com
  [172.16.0.2] plaintext cy...@example.com SASL(-13): user not found:
  checkpass failed
 
  So does the imap server know the domain name? How does it figure it out?
  Does it know to strip domain names because you configured the unix passwd
  backend? If it uses the domainname command to figure out the domainname,
  you may have it set on the working server, yet not on the jail.
  Any differences related to domains in /etc/rc.conf and /etc/resolv.conf
  that might shed some light?

 I added the line

 defaultdomain: example.com

 to imapd.conf, this line is not in my working server configuration,
 however, it does make the realm part go away from the error message, not
 that it solves the problem though:

 Jun 18 21:09:57 jail imap[22562]: badlogin: jail.example.com
 [172.16.0.2] plaintext cyrus SASL(-1): generic failure: checkpass failed

 Now, adding debug mode to saslautd, I got some extra info in auth.log:

 Jun 18 21:13:21 jail saslauthd[21300]: DEBUG: auth_pam: pam_authenticate
 failed: authentication error
 Jun 18 21:13:21 jail saslauthd[21300]: do_auth : auth failure:
 [user=cy...@example.com] [service=imap] [realm=] [mech=pam] [reason=PAM
 auth error]

Can you add the same debug mode to the working server and do a failed login? 
Interesting point being if the user has the domain appended as well.

 I have checked /etc/pam.d in the jail against the host and they are
 identical, also /usr/local/etc/pam.d - both empty. Are there any known
 problems with pam in jails?

Not that I'm aware of.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Tim Judd
Replies inline

On 6/18/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 On Thursday 18 June 2009 10:27:44 Tim Judd wrote:
 Long ago in 2007, I saw a M$ article that describes that Vista has an
 extremely short delay period to get an IP.  If it doesn't get it
 within 1 second, it gives up (and maybe tries again).  Common DHCP
 servers ping an IP address, wait 1 second for a reply, and if no
 reply, assumes the IP is available and leases it to the booting
 computer.
 ISC-dhcpd doesn't work that way. It keeps a lease db and assumes it's db is
 the authority on available iP's for the range.

dhcpd.conf(5)
search for ping-check or ping-timeout

http://www.freebsd.org/cgi/man.cgi?query=dhcpd.confapropos=0sektion=5manpath=FreeBSD+7.2-RELEASE+and+Portsformat=html



 Is your DHCP server authoritative?

 Yes:
 authoritative;
 ddns-update-style interim;

 subnet 192.168.2.0 netmask 255.255.255.0 {
 range 192.168.2.200 192.168.2.254;

 option subnet-mask 255.255.255.0;
 option broadcast-address 255.255.255.255;
 option domain-name lan.rachie.is-a-geek.net;
 option domain-name-servers 192.168.2.51;
 option routers 192.168.2.1;

 option ntp-servers 192.168.2.10;
 option wpad http://192.168.2.100/proxy.pac;;

 # Dynamic DNS setup
   snipped for brevity
 }

A broadcast of 255.255.255.255 is misconfigured (not saying it's not
gonna work, I'm saying for your network, it's not configured right).
you need broadcast-address 192.168.2.255


 The other question is why you have it as a bridge, when sysctl
 net.inet.ip.forwarding=1 might all you need.

 To merge wired and wireless into one network and for the firewall one
 internal interface. Also means I can use lagg(4) on this laptop.

 Another Q is why you might have a DHCP server listen on one IP (let's
 say it's the wired interface), but not on the wifi (this wasn't clear
 in the OP, but it might be the case).

 It's on the bridge and as such on both and works on both. I have an IP
 assigned to be able to move it off the gateway should the need arrise or to
 simulate a migration like that for testing, in case I need it for a client.

 --
 Mel


HTH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Glen Barber
On Thu, Jun 18, 2009 at 5:51 PM, Tim Juddtaj...@gmail.com wrote:
 Replies inline

 On 6/18/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 On Thursday 18 June 2009 10:27:44 Tim Judd wrote:
 Long ago in 2007, I saw a M$ article that describes that Vista has an
 extremely short delay period to get an IP.  If it doesn't get it
 within 1 second, it gives up (and maybe tries again).  Common DHCP
 servers ping an IP address, wait 1 second for a reply, and if no
 reply, assumes the IP is available and leases it to the booting
 computer.
 ISC-dhcpd doesn't work that way. It keeps a lease db and assumes it's db is
 the authority on available iP's for the range.

 dhcpd.conf(5)
 search for ping-check or ping-timeout

 http://www.freebsd.org/cgi/man.cgi?query=dhcpd.confapropos=0sektion=5manpath=FreeBSD+7.2-RELEASE+and+Portsformat=html



 Is your DHCP server authoritative?

 Yes:
 authoritative;
 ddns-update-style interim;

 subnet 192.168.2.0 netmask 255.255.255.0 {
     range 192.168.2.200 192.168.2.254;

     option subnet-mask 255.255.255.0;
     option broadcast-address 255.255.255.255;
     option domain-name lan.rachie.is-a-geek.net;
     option domain-name-servers 192.168.2.51;
     option routers 192.168.2.1;

     option ntp-servers 192.168.2.10;
     option wpad http://192.168.2.100/proxy.pac;;

     # Dynamic DNS setup
       snipped for brevity
 }

 A broadcast of 255.255.255.255 is misconfigured (not saying it's not
 gonna work, I'm saying for your network, it's not configured right).
 you need broadcast-address 192.168.2.255


That is not 100% correct.  By default, dhclient will send an initial
DHCPREQUST to 0.0.0.0 (meaning this network).  The request is picked
up from the DHCP server broadcasting on 255.255.255.255.



-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Manolis Kiagias
Tim Judd wrote:
 On 6/18/09, John Almberg jalmb...@identry.com wrote:
   
 On Jun 18, 2009, at 4:14 PM, Tim Judd wrote:

 
 What kind of application?  This is so we can gear a hardware that is
 powerful enough to power your application.

 Naming the application and/or website would be a good addition.
   
 It's main purpose is to fetch videos off a local server (i.e., on the
 same lan it's plugged into), convert them into flash videos, and
 upload them to a remote server.

 There will also be a small web application that will be used to
 manage the application.

 Why do we need this little box, at all? I.e., why can't the whole
 thing be done by a remote server? It probably could, but my client
 feels that this little box makes his service 'concrete' and easier to
 sell. It's something his customers can hold and marvel at.

 Marketing... go figure.

 I'm thinking something like the Intel BOXD945GCLF2D Intel Atom
 processor 330 Intel 945GC Mini ITX Motherboard/CPU Combo, might do
 the trick.

 -- John

 


 John, so I'd use a system board like you described in preference to
 all other boards that are referenced or called a embedded board.
 Video processing can be very CPU intensive, plus RAM intensive.  I
 didn't actually look at that product you posted, but that would be the
 gear I would start looking at.


 I've read reports (and forgotten it's source since then) that some
 Intel Atom processors work well, some don't with FreeBSD.  This was
 something I read within a couple months, so I would see if anyone here
 can provide input on pros and cons on weather that particular Atom
 model number is well received and well tested.

 Nothing like developing a product based on inadequate or crappy
 hardware OR support.  Do lots of prototypes, that's the only sure way
 to test.


 --Tim
   

There was a discussion on this a few days ago. I happen to have one of
these Atom based systems, a Shuttle X27D:

CPU: Intel(R) Atom(TM) CPU  330   @ 1.60GHz (1596.01-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x106c2  Stepping = 2
 
Features=0xbfe9fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x40e31dSSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,b22
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 2
  Logical CPUs per core: 2
real memory  = 2137915392 (2038 MB)
avail memory = 2086662144 (1989 MB)
ACPI APIC Table: Shuttl Shuttle 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP/HT): APIC ID:  3
ioapic0: Changing APIC ID to 4
ioapic0 Version 2.0 irqs 0-23


This works nicely with FreeBSD (needs only a sysctl setting to hush some
messages on absurd temperature measurements - all onboard devices
work).  One disappointing thing about it: the one and only fan in the
system failed about after a week of continuous operation.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Tim Judd
The broadcast definition in his snippet is in his subnet declaration.
It is used within the TCP/IP paramaters when it's offering the lease.

DHCP protocol is what you're talking about.  And the client has
0.0.0.0 and broadcasts 255.255.255.255 to find any dhcp server that
might be out there.  But my statement is for his subnet block which
should be clarified.


On 6/18/09, Glen Barber glen.j.bar...@gmail.com wrote:
 On Thu, Jun 18, 2009 at 5:51 PM, Tim Juddtaj...@gmail.com wrote:
 Replies inline

 On 6/18/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net
 wrote:
 On Thursday 18 June 2009 10:27:44 Tim Judd wrote:
 Long ago in 2007, I saw a M$ article that describes that Vista has an
 extremely short delay period to get an IP.  If it doesn't get it
 within 1 second, it gives up (and maybe tries again).  Common DHCP
 servers ping an IP address, wait 1 second for a reply, and if no
 reply, assumes the IP is available and leases it to the booting
 computer.
 ISC-dhcpd doesn't work that way. It keeps a lease db and assumes it's db
 is
 the authority on available iP's for the range.

 dhcpd.conf(5)
 search for ping-check or ping-timeout

 http://www.freebsd.org/cgi/man.cgi?query=dhcpd.confapropos=0sektion=5manpath=FreeBSD+7.2-RELEASE+and+Portsformat=html



 Is your DHCP server authoritative?

 Yes:
 authoritative;
 ddns-update-style interim;

 subnet 192.168.2.0 netmask 255.255.255.0 {
     range 192.168.2.200 192.168.2.254;

     option subnet-mask 255.255.255.0;
     option broadcast-address 255.255.255.255;
     option domain-name lan.rachie.is-a-geek.net;
     option domain-name-servers 192.168.2.51;
     option routers 192.168.2.1;

     option ntp-servers 192.168.2.10;
     option wpad http://192.168.2.100/proxy.pac;;

     # Dynamic DNS setup
       snipped for brevity
 }

 A broadcast of 255.255.255.255 is misconfigured (not saying it's not
 gonna work, I'm saying for your network, it's not configured right).
 you need broadcast-address 192.168.2.255


 That is not 100% correct.  By default, dhclient will send an initial
 DHCPREQUST to 0.0.0.0 (meaning this network).  The request is picked
 up from the DHCP server broadcasting on 255.255.255.255.



 --
 Glen Barber

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: The short and curlies of vista networking

2009-06-18 Thread Chuck Swiger

On Jun 18, 2009, at 3:14 PM, Glen Barber wrote:

A broadcast of 255.255.255.255 is misconfigured (not saying it's not
gonna work, I'm saying for your network, it's not configured right).
you need broadcast-address 192.168.2.255


That is not 100% correct.  By default, dhclient will send an initial
DHCPREQUST to 0.0.0.0 (meaning this network).  The request is picked
up from the DHCP server broadcasting on 255.255.255.255.


The inconsistency between these two points might actually lead the OP  
to a solution.  Evidently Vista does something different with the DHCP  
broadcast flag, see:  http://support.microsoft.com/kb/928233


If you specify a network and netmask in the subnet statement, you  
shouldn't need to override the broadcast address it computes, which  
for the config posted ought to be 192.168.2.255.  Using the all-ones  
broadcast address should not be done by normal members of the  
network-- only for things which need to go beyond the network subnet/ 
topology (ie, the DHCP server itself might choose to send to  
255.255.255.255 to make sure that anything else on the local collision  
domain sees it, even if the local network is split into multiple  
logical subnets).


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread John Almberg

There was a discussion on this a few days ago. I happen to have one of
these Atom based systems, a Shuttle X27D:

CPU: Intel(R) Atom(TM) CPU  330   @ 1.60GHz (1596.01-MHz 686-class  
CPU)

  Origin = GenuineIntel  Id = 0x106c2  Stepping = 2

Features=0xbfe9fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P 
GE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   
Features2=0x40e31dSSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,b2 
2

  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 2
  Logical CPUs per core: 2
real memory  = 2137915392 (2038 MB)
avail memory = 2086662144 (1989 MB)
ACPI APIC Table: Shuttl Shuttle 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP/HT): APIC ID:  3
ioapic0: Changing APIC ID to 4
ioapic0 Version 2.0 irqs 0-23


This works nicely with FreeBSD (needs only a sysctl setting to hush  
some

messages on absurd temperature measurements - all onboard devices
work).  One disappointing thing about it: the one and only fan in the
system failed about after a week of continuous operation.


I can't find the discussion you mentioned, but this Shuttle looks  
pretty nice. You can't beat the price of these little boards. Thanks.


--- John

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: time to ask for help... .

2009-06-18 Thread Bryant Eadon

Gary Kline wrote:

The way my site is now configured, my ISP
(Qwest) baby-bell has its router connected to my pfSense firewall.  The
firewall computer connects to my FreeBSD server which handles my DNS,
mail, and web.  The server then fans out to my several desktops.  This
one, my laptop, my daughter's MacBook, and has a spare CAT5 for my 
wife's
	PC.   


Since this sounds like a home setup, in terms of raw power usage I'm inclined to 
suggest a tighter integration of router, DNS and firewall functionality by 
putting this all into something like OpenWRT on a decent off-the-shelf router, 
thereby eliminating the Qwest router, firewall machine and possibly mail/web if 
it's low volume enough and/or you pick up a router with a USB connection for 
storage. Try an Asus WL-500G Premium (version 1 is my favorite) if you go that 
route.  This would free up the server for other tasks, obsolete 2 boxes (and 
possibly the server), spice up your life with easy to install SNMP monitoring of 
connections and give your family wifi ... but I digress...



At a minimum, I'd like to have CVS working on at least my server.


http://www.freebsd.org/doc/en_US.ISO8859-1/articles/cvs-freebsd/article.html

  I used ipf and/or IPFW  managed to catch and kill 
	hundreds of kiddie-scripters trying to crack in.  But with pfSense and 
	how things are *now*, I'm in the dark.


You're looking for an intrusion detection system (IDS).  For FreeBSD you might 
leverage 'grok' written by Jordan Sissel, which, isn't an IDS, but it will play 
like one :


http://www.semicomplete.com/projects/grok/

You could also do something like this :
http://surachartopun.com/2008/06/example-how-to-monitorby-e-mail-auth.html

...monitor your auth logs for bandits with email alerts.

That should get you started :)


-Bryant
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Gardner Bell

--- On Thu, 6/18/09, John Almberg jalmb...@identry.com wrote:

 From: John Almberg jalmb...@identry.com
 Subject: Re: Compact Freebsd 'appliance'
 To: freebsd-questions@freebsd.org
 Received: Thursday, June 18, 2009, 10:54 PM
  There was a discussion on this a
 few days ago. I happen to have one of
  these Atom based systems, a Shuttle X27D:
  
  CPU: Intel(R) Atom(TM) CPU 
 330   @ 1.60GHz (1596.01-MHz 686-class CPU)
    Origin = GenuineIntel  Id =
 0x106c2  Stepping = 2
  
 
 Features=0xbfe9fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
    Features2=0x40e31dSSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,b22
    AMD Features=0x2010NX,LM
    AMD Features2=0x1LAHF
    Cores per package: 2
    Logical CPUs per core: 2
  real memory  = 2137915392 (2038 MB)
  avail memory = 2086662144 (1989 MB)
  ACPI APIC Table: Shuttl Shuttle 
  FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
   cpu0 (BSP): APIC ID:  0
   cpu1 (AP/HT): APIC ID:  1
   cpu2 (AP): APIC ID:  2
   cpu3 (AP/HT): APIC ID:  3
  ioapic0: Changing APIC ID to 4
  ioapic0 Version 2.0 irqs 0-23
  
  
  This works nicely with FreeBSD (needs only a sysctl
 setting to hush some
  messages on absurd temperature measurements - all
 onboard devices
  work).  One disappointing thing about it: the one
 and only fan in the
  system failed about after a week of continuous
 operation.
 
 I can't find the discussion you mentioned, but this Shuttle
 looks pretty nice. You can't beat the price of these little
 boards. Thanks.

The discussion of appliance machines took place on the stable mailing list.

http://lists.freebsd.org/pipermail/freebsd-stable/2009-June/thread.html

 
 --- John
 
 ___
 freebsd-questions@freebsd.org
 mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: When the Remote end of a Telnet drops

2009-06-18 Thread Bryant Eadon

Martin McCormick wrote:

In the last two weeks, we have suddenly begun having a problem
when telnetting to a telephone switch in order to manage it.
This device does not have ssh or we would sure be using that.

We run an expect script to poll various registers on the
switch and the process is fairly simple. We ask for various
listings of registers. When done with a listing, the switch
sends a prompt which we see and then either go to the next poll
or end and log out.

Recently, output just stops at the end of a line with no
corruption of the text. There is even a Return character. The
telnet session just sits there for days if we don't stop it.

It is tempting to point fingers at the switch and the
people closest to the switch say that it must be something with
the network, all that fun sort of stuff that happens when you
don't have undisputable proof and it doesn't happen every
day.

Exactly a month ago, I upgraded the patch level on this
system to
FreeBSD 6.3-RELEASE-p10

Does anybody know if there are any recent issues with telnet?

As a test, I telnetted to a system and then literally
pulled the Ethernet plug on the remote system. The system I was
telnetting from sat for many minutes. I finally hit Enter and a
few minutes later, it figured out there was nothing on the
remote end. There was the usual Connection closed by foreign
host. message.

Is there a way to make telnet either more proactive
about detecting a loss of connection or of logging oddities if
the connection is flickering?

One such stall happened on a weekend and the connection
appeared to be up for 4 days. A ps ax |grep telnet |grep -v grep
showed a connection still up at least until I killed it. At that
point, it logged terminated and ended.

I can certainly put a timeout in expect but we have been
using this same script, etc, for around 6 years and never had
this problem before so a timeout would just hide whatever has
changed.

My own gut feeling is that the FreeBSD system is fine as
we have no other problems with anything else.



I suspect something is killing the idle TCP session between your hosts.  If 
you're crossing the internet, you might ask if your ISP has modified something 
along those lines.


Have you fiddled with sysctl settings, specifically net.inet.tcp.keepintvl yet ?
more info at src/sys/netinet/tcp_timer.c


-Bryant
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Compact Freebsd 'appliance'

2009-06-18 Thread Charlie Kester

On Thu 18 Jun 2009 at 14:18:21 PDT Tim Judd wrote:


I've read reports (and forgotten it's source since then) that some
Intel Atom processors work well, some don't with FreeBSD.  This was
something I read within a couple months, so I would see if anyone here
can provide input on pros and cons on weather that particular Atom
model number is well received and well tested.


The only problems I've seen reported re Atoms was back in the days
before the FreeBSD 7.2 release (or was it 7.1?) when there were problems
with not recognizing the Realtek networking chip included on the Intel
motherboards.

FWIW, I'm running FreeBSD 7.2 on an Intel D945GCLF motherboard, which
has an Atom 230 CPU.  I got mine from http://www.mini-box.com.  (I *am*
using a Intel networking card rather than the builtin Realtek chip, but
only because the Realtek recognition problems still existed when I first
set up the machine.  One of these days I should probably see if those
problems are truly fixed, so I can recover the single PCI slot for some
other use.) Since this is a home machine, I can't say it's the best test
of whether FreeBSD runs OK on it. But I haven't had any problems with
it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


right CPUTYPE

2009-06-18 Thread Aryeh Friedman
What CPUTYPE should I put in /etc/make.conf for:

CPU: AMD Phenom(tm) II X4 955 Processor (3210.85-MHz 686-class CPU)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: right CPUTYPE

2009-06-18 Thread Jason

My best newbie guess is HAMMER.

If you downloaded the sources, you can look under /usr/src/sys/ and it will
have a configuration file for your arch under the conf directory of your
architecture.

In that file, it will define your CPU.

-jgh

On Fri, Jun 19, 2009 at 12:08:23AM +, Aryeh Friedman thus spake:

What CPUTYPE should I put in /etc/make.conf for:

CPU: AMD Phenom(tm) II X4 955 Processor (3210.85-MHz 686-class CPU)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: right CPUTYPE

2009-06-18 Thread Glen Barber
On Thu, Jun 18, 2009 at 8:08 PM, Aryeh Friedmanaryeh.fried...@gmail.com wrote:
 What CPUTYPE should I put in /etc/make.conf for:

 CPU: AMD Phenom(tm) II X4 955 Processor (3210.85-MHz 686-class CPU)

Are you using i386 or amd64?

Also, have a look here:
http://lists.freebsd.org/pipermail/freebsd-questions/2004-December/069358.html

Regards,


-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


kern.securelevel

2009-06-18 Thread Tim Judd
Something dawned on me.  FreeBSD/Open/Net are all well secured
systems.  On an Internet-facing router, would applying a higher
kern.securelevel provide any better, tighter, higher security if the
machine was broken into?  Given you need to lower the securelevel
before multiuser, it is a reasonable to think raising the securelevel
will give higher comfort feeling?


I know this is a logical/thinking/mind question, but that's what I'm asking for.



--Tim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: right CPUTYPE

2009-06-18 Thread b. f.
On Thu, Jun 18, 2009 at 8:08 PM, Aryeh Friedmanaryeh.friedman at
gmail.com wrote:
 What CPUTYPE should I put in /etc/make.conf for:

 CPU: AMD Phenom(tm) II X4 955 Processor (3210.85-MHz 686-class CPU)

OP is referring to CPUTYPE ( see make.conf(5) ) , not the cpu string
in the kernel configuration file, so HAMMER isn't a valid choice.  It
depends on what compiler
you are using: if you are using the base compiler, which is a patched
version of gcc 4.2,  I think that you want:

CPUTYPE=athlon64

But if you're using gcc = 4.3, with the right toolchain, or llvm, you
may be able to use the newer:

CPUTYPE=amdfam10

to take advantage of your CPU's newer instruction sets. As someone
said, the effect this will have in compiling may be different when you
are using FreeBSD i386 as opposed to FreeBSD amd64.


b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


PACKAGESITE Directory Structure

2009-06-18 Thread Glen Barber
Hello, list.

After trying to figure out the incorrect directory structure for some
of the packages hosted on my site, I am at a loss.

After reading through /usr/src/usr.sbin/pkg_install/add/main.c from
HEAD, lines 337-340 seems to suggest that if 'Latest' is not found,
'All' is implied to pkg_add when PACKAGESITE is explicitly defined
(otherwise overridden with hard-coded values).

With that, I am still trying to figure out the proper hierarchy:

Scenario 1.) If I 'pkg_add -r foo.3.2_1.tbz' from www.example.com/packages,
should 'All' be implied after 'packages' (packages/All)?

Scenario 2.) Same pkg_add command from
www.example.com/packages/mybinary/package -- should 'All' be a
subdirectory of packages/ or mybinary/?

It appears that this if 'Latest/' is not found, overwrite as 'All/'
may be expected, but I am getting conflicting output.

Any input is appreciated.


-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Now pkg-config trouble.................Re: startx does not work, startxfce4 does!

2009-06-18 Thread Leslie Jensen




Hi, Leslie

Try this.

Create a file: $HOME/.xinitrc

containing: /usr/local/bin/startxfce4

Then give 'startx' another shot.




I did all the things suggested here at the list with no success so I 
decided to clean out and start over.


did pkg_delete -f '*'

rm -r /usr/ports/distfiles

rm -r /usr/local/*


Then I installed

sysutils/screen

ports-mgmt/portupgrade

ports-mgmt/portmaster

And started installation of

x11/xorg

But it fails rather quickly with the message below:

I've attached the log file and output suggested in the message.

One thing that I see is the path to pkg-config is

:whereis pkg-config
pkg-config: /usr/ports/devel/pkg-config

where as on my other machine I've got

whereis pkg-config
pkg-config: /usr/local/bin/pkg-config 
/usr/local/man/man1/pkg-config.1.gz /usr/ports/devel/pkg-config


I tried

/usr/ports/devel/pkg-config:make install clean
===  Cleaning for gmake-3.81_3
===  Cleaning for gettext-0.17_1
===  Cleaning for libtool-1.5.26
===  Cleaning for libiconv-1.13
===  Cleaning for pkg-config-0.23_1


/usr/ports/devel/pkg-config:rehash

/usr/ports/devel/pkg-config:whereis pkg-config

pkg-config: /usr/ports/devel/pkg-config

As you can see in the listing below pkg-config is not listed as installed!

That's proberly the source of the install failure, so how do I get 
pkg-config to install?



---

checking dependency style of cc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g 
wheel

checking for pkg-config... no
checking for XSETROOT... configure: error: The pkg-config script could 
not be found or is too old.  Make sure it

is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables XSETROOT_CFLAGS
and XSETROOT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see http://www.freedesktop.org/software/pkgconfig.
See `config.log' for more details.
===  Script configure failed unexpectedly.
Please report the problem to x...@freebsd.org [maintainer] and attach the
/usr/ports/x11/xsetroot/work/xsetroot-1.0.2/config.log including the 
output
of the failure of your make command. Also, it might be a good idea to 
provide

an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11/xsetroot.
*** Error code 1

Stop in /usr/ports/x11/xorg-apps.
*** Error code 1

Stop in /usr/ports/x11/xorg-apps.
*** Error code 1

Stop in /usr/ports/x11/xorg.
r...@blj01/usr/ports/x11/xorg:

--

-

ll /var/db/pkg


total 25810
drwxr-xr-x  2 root  wheel   512 Jun 19 06:14 db43-4.3.29_1/
-rw-r--r--  1 root  wheel  26382336 Jun 18 20:19 pkgdb.db
drwxr-xr-x  2 root  wheel   512 Jun 19 06:05 portmaster-2.7/
drwxr-xr-x  2 root  wheel   512 Jun 19 06:14 portupgrade-2.4.6_2,2/
drwxr-xr-x  2 root  wheel   512 Jun 19 06:14 ruby-1.8.7.160_2,1/
drwxr-xr-x  2 root  wheel   512 Jun 19 06:14 ruby18-bdb43-0.6.5_1/
drwxr-xr-x  2 root  wheel   512 Jun 19 06:00 screen-4.0.3_6/
drwxr-xr-x  2 root  wheel   512 Jun 19 06:04 sudo-1.6.9.20/




This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by xsetroot configure 1.0.2, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --x-libraries=/usr/local/lib --x-includes=/usr/local/include 
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ 
--build=i386-portbld-freebsd7.2

## - ##
## Platform. ##
## - ##

hostname = 
uname -m = i386
uname -r = 7.2-RELEASE
uname -s = FreeBSD
uname -v = FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009 
r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/X11R6/bin
PATH: /root/bin


## --- ##
## Core tests. ##
## --- ##

configure:1340: checking for a BSD-compatible install
configure:1395: result: /usr/bin/install -c -o root -g wheel
configure:1406: checking whether build environment is sane
configure:1449: result: yes
configure:1514: checking for gawk
configure:1543: result: no
configure:1514: checking for mawk
configure:1543: result: no
configure:1514: checking for nawk
configure:1530: found /usr/bin/nawk
configure:1540: result: nawk
configure:1550: checking whether make sets $(MAKE)
configure:1570: result: yes
configure:1738: checking 

Re: Now pkg-config trouble.................Re: startx does not work, startxfce4 does!

2009-06-18 Thread Tim Judd
Leslie,

The given port dirs (x11/xorg, etc) still probably have their work
directory, which have the tokens/markers that particular stages of the
port build have been done, such as the installation.


rm -rf /usr/ports/*/*/work
rehash
cd /usr/ports/x11/xorg
make install


Please try that.  First removes the work dir that contains the tokens,
second updates root's available application hash, third and forth
rebuild xorg

Since xorg is so large, and receives very few (in relation to the
total number of packages) updates, a quick-n-dirty way to get running
is to add the package, and then update the outdated ones.

pkg_add -r xorg
portmaster -a

I follow this same pattern on all BIG ports..  gnome2, kde3/4, xorg,
and then let the portmaster update the old outdated ports that got
installed.  There is no functional difference between a package
installed and a port installed with no options/config tweaked.



Please try this.  Write to us if you keep having problems
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org