Re: pppoe configuration and dns name resolution

2012-10-20 Thread Polytropon
On Sat, 20 Oct 2012 09:42:31 +0530, Jack wrote:
 Hi again,
 
 This time I disabled DHCP on my fxp0 interface and
 in my adsl modem too.
 But the problem still exists.
 
 This time I tried both approaches:
  assigned an IP address explicitly to fxp0, and
 then no explicit assignment to fxp0.

That should be the easiest test setting.



 I still don' get why FreeBSD is having trouble
 connecting via PPP.

Seems to be a specific problem. There is no general problem with
PPPoE on FreeBSD.



 I am trying every combinations that might work,
 but still no luck.
 Any help will be appreciated.

Try to limit variables as much as possible. Control one thing
per time.



 I'm posting my config files. The statements in comments
 are those that I already tried enabling them.
 
 
 ## /etc/rc.conf
 hostname=jacks_lappy
 #ifconfig_fxp0=DHCP
 #ifconfig_tun0=
 ifconfig_fxp0=inet 192.168.1.4 netmask 255.255.255.0
 #ifconfig_fxp0=

Is this IP inside your network?

In my old setting, I had defined the IP for the NIC connected
to the modem as 192.168.0.1, but my own network (and therefor
also the 2nd NIC in the machine) in 192.168.1.* - I don't know
if the first could have been omitted, just doing =up for the
NIC connected to the modem.




 sshd_enable=YES
 moused_enable=YES
 powerd_enable=YES
 # Set dumpdev to AUTO to enable crash dumps, NO to disable
 dumpdev=AUTO
 
 hald_enable=YES
 dbus_enable=YES

No problem here, not related.



 routerenable=NO

This option does not exist. See /etc/defaults/rc.conf for a list
of them. I haven't used that option in the working setup.



 #defaultrouter=192.168.1.1

Correct - I also did not define a default router.



 ppp_enable=YES
 ppp_mode=ddial
 ppp_nat=NO
 ppp_profile=adsl
 ppp_adsl_unit=0

I've also not used the last parameter. The tun0 interface would
have been generated automatically.

Everything implies that the _kernel_ has all the neccessary
functionality enabled (tun interface, PPPoE related netgraph
modules and NIC support).



 I tried to specify tun0 interface explicitly,
 but still no luck.

No need to do so.



 When I start ppp using:
   service ppp start
 
 It shows tun0 is busy.

Which is correct.



 ## etc/resolv.conf
 #Open DNS nameservers:
 nameserver 208.67.222.222
 nameserver 208.67.220.220

Those are OpenDNS resolvers. I've been using two provided by my
ISP, and also ran named myself later on.




 ## /etc/ppp/ppp.conf
 
 default:
  set log Phase chat lcp ipcp ccp tun command lqm
  set ifaddr 10.0.0.1/0  10.0.0.2/0  0.0.0.0  0.0.0.0
  # set ifaddr 10.0.0.1/0 10.0.0.2/0  255.255.255.255 0.0.0.0
  nat enable no
 
 adsl:
  set device PPPoE:fxp0
  #set device PPPoE:tun0
  set mru 1492
  set mtu 1492
  set ctsrts off
  set speed sync
  set dial
 
  enable lqr
 
  set login
  set authname myusername
  set authkey mypassword 
  set timeout 120
  set redial 0 0
 
  add default HISADDR
  #enable dns


Why not try a minimal configuration?

myispname:
set device PPPoE:fxp0
set authname myusername
set authkey mypassword
set dial
set login
add default HISADDR

That should be everything which is needed. For better diagnostics,
add your custom options (like lpr or redial) later on.

As I said, all my examples and suggestions are taken from a working
example, different OS versions, different physical modems.



--
 
 ## output of ifconfig just after boot:
 
 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
   ether 00:16:d3:0c:42:22
   inet 192.168.1.4 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::216:d3ff:fe0c:4222%fxp0 prefixlen 64 scopeid 0x6
   nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active

Looks good so far - connected to the modem.




 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
   options=8LINKSTATE
   nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
   Opened by PID 1231

Does not look good - no IP assigned.



 ## output of ifconfig after I started ppp using
 ## service ppp start

The ppp should have been started automatically...



 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
   ether 00:16:d3:0c:42:22
   inet 192.168.1.4 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::216:d3ff:fe0c:4222%fxp0 prefixlen 64 scopeid 0x6
   nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active

Again, looks correct.




 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
   options=8LINKSTATE
   nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
   Opened by PID 1231

And again no IP here.



 

Re: pppoe configuration and dns name resolution

2012-10-20 Thread RW
On Sat, 20 Oct 2012 09:42:31 +0530
Jack wrote:

 Hi again,
 
 This time I disabled DHCP on my fxp0 interface and
 in my adsl modem too.
 But the problem still exists.
 
 This time I tried both approaches:
  assigned an IP address explicitly to fxp0, and
 then no explicit assignment to fxp0.

I'd leave fxp0 unset until you've fixed the other problems - it's not
necessary for PPP. 

Modems and routers in PPPoE bridging mode don't normally require any
adjustment or other access so there's probably no need to assign
address anyway.


 I still don' get why FreeBSD is having trouble
 connecting via PPP.

The original problem you quoted was with DNS and
that's explained by the DHCP on fxp0 overwriting resolv.conf with the
router/modem's own non-functional DNS proxy.


As regards ppp.conf mine was simply:

default:
  set log Phase tun command

adsl:
  set device PPPoE:vr0
  set authname my username
  set authkey  my password
  add default HISADDR


 ppp_adsl_unit=0
 
 
 I tried to specify tun0 interface explicitly,
 but still no luck.
 When I start ppp using:
   service ppp start
 It shows tun0 is busy.

Don't try to specify the tun device number. I've noticed in the past
that occasionally tun0 becomes unusable and ppp will switch to tun1.
I've seen this happen when I've been restarting ppp a lot. 


 From my understanding it shoud not matter whether fxp0 is
 assigned the  ip address via DHCP server on local lan or via
 manually - at least this concept works on windows.
 
 But in FreeBSD, if I enable dhcp on fxp0, then
 /etc/resolv.conf is created each time I boot in FreeBSD,
 so the only nameserver being 192.168.1.1, ie adsl
 modem ethernet interface.
 Even if I edit it to include nameservers of my ISP or OpenDNS
 this file is created each time FreeBSD boots, and these entries
 are lost, with only entry being 192.168.1.1
 

There's no good reason to use DHCP in this case, you can simply set a
static private IP address (typically a high address in the same /24 as
the modem). If you really must use DHCP then it can be reconfigured
globally or per interface  (type apropos dhclient).

  
I notice that the original resolv.conf you quoted was set by resolvconf.
I've never used this so I can't comment on whether it's helping or
hindering. I suspect it aimed at laptops switching between different
networks.

___
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: poudriere amassing fetch errors

2012-10-20 Thread Christopher J. Ruwe
On Fri, 19 Oct 2012 22:29:51 +0200
Patrick Lamaiziere patf...@davenulle.org wrote:

 Le Sun, 14 Oct 2012 03:57:20 +0200,
 Christopher J. Ruwe c...@cruwe.de a écrit :
 
 Hello,
 
  for some time I have noticed that poudriere bulk build amass fetch
  errors, i.e., the corresponding distfile(s) cannot be fetched by the
  build jail and I have to fetch these manually.
  
  Does anybody know a fix to this unnerving condition?
 
 I don't see this problem.
 
 Missing resolv.conf ?
 /usr/local/etc/poudriere.conf
 # By default the jails have no /etc/resolv.conf, you will need to set
 # REVOLV_CONF to a file on your hosts system that will be copied has
 # /etc/resolv.conf for the jail, except if you don't need it (using an
 http # proxy for example)
 RESOLV_CONF=/etc/resolv.conf
 


My apolgies for that absolutly crappy discription of the error I was
witnessing. Upon reading my post anew, I just do not know what hit me
posting that.

Anyways, I did not have a /etc/resolv.conf entry in my poudriere.conf,
as it has been working for some time without. The error was rather
byzanthine ... sometimes, the sources were fetched correctly, sometimes
not. Regrettably, I do not have any fetch error messages around any
more, so I cannot supply the information I should have included in my
first post. 

Anyways, setting the entry in poudriere.conf seems to have solved the
issue. Interesting how any fetching could have occured without ...

Thanks and cheers,
-- 
Christopher J. Ruwe
TZ: GMT + 2h
GnuPG/GPG:  0xE8DE2C14
___
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 9x - PHP and MySQL

2012-10-20 Thread Jos Chrispijn

FreeBSD 9.1-PRERELEASE
Can you tell me what might be the best MySQL version to be used and 
which PHP version should I use to that?

Running 64-bit.

thanks,
Jos Chrispijn
___
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


9.1 and gmirror with GPT?

2012-10-20 Thread freebsd

Hello,

Just wondering if 9.1 will bring any improvement to the situation of creating a 
full disk geom mirror while also using GPT partition table?

Is the fix for this a near term thing, or something in the farther future?

Thanks for any insight!

johnea
___
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 9x - PHP and MySQL

2012-10-20 Thread Vladislav Prodan

MySQL 5.5
php 5.4.x

 FreeBSD 9.1-PRERELEASE
 Can you tell me what might be the best MySQL version to be used and 
 which PHP version should I use to that?
 Running 64-bit.
 
 thanks,
 Jos Chrispijn
 ___
 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 

-- 
Vladislav V. Prodan
System  Network Administrator 
http://support.od.ua   
+380 67 4584408, +380 99 4060508
VVP88-RIPE

___
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 9x - PHP and MySQL

2012-10-20 Thread Dale Scott
There's no reason not to just use the latest in the ports tree, which as of
now is:

php5-5.4.7
mysql-server-5.5.28

I use phpmyadmin, which usually results in updating php5 every new release
(which is why I'm on php5-5.4.7), although I'm still on mysql-server-5.5.16.


-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Vladislav Prodan
Sent: Saturday, October 20, 2012 12:16 PM
To: freebsd-questions@FreeBSD.org
Subject: Re: FreeBSD 9x - PHP and MySQL


MySQL 5.5
php 5.4.x

 FreeBSD 9.1-PRERELEASE
 Can you tell me what might be the best MySQL version to be used and 
 which PHP version should I use to that?
 Running 64-bit.
 
 thanks,
 Jos Chrispijn
 ___
 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 

-- 
Vladislav V. Prodan
System  Network Administrator 
http://support.od.ua   
+380 67 4584408, +380 99 4060508
VVP88-RIPE

___
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: FreeBSD 9x - PHP and MySQL

2012-10-20 Thread Matthew Seaman
On 20/10/2012 19:12, Jos Chrispijn wrote:
 Can you tell me what might be the best MySQL version to be used and
 which PHP version should I use to that?

Unless you're running applications with known dependencies on earlier
versions, always choose the latest stable release version of PHP.

For MySQL, it's not so vital, but the latest release should be your
default choice.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Graphiz broke because of swig

2012-10-20 Thread Joseph a Nagy Jr
On 10/14/2012 12:11 PM, Matthew Seaman wrote:
 On 14/10/2012 16:37, Joseph a Nagy Jr wrote:
 I was installing my system earlier (dual-boot Ubuntu 12.04LTS/FreeBSD
 9.0; Ubuntu was already present) and while installing subversion, one of
 the many co-dependencies of the many programs that were being installed
 was graphviz. Apparently I selected some support options relating to
 swig that broke the compile of graphiz (and therefore everything else).
 Is there a way to remedy this? I'd rather not reinstall the entire
 system. Thanks.
 
 # cd /usr/ports/graphics/graphviz
 # make config
 
 Adjust the swig related options, then reinstall graphviz using whatever
 your favourite ports management tools are.
 
   Cheers,
 
   Matthew
 

No luck. I was compiling from source using make and letting dependencies
be resolved automatically. Something seriously got messed up and I feel
like an idiot. I was following the handbook and was in chapter 5 where
it was recommended to install subversion for ports tree management
(sounded good to me) and I executed, from /use/ports/devel/subversion/
'make install clean'. It was doing good up until doxygen/graphviz, it
seems. I have no easy way of getting the error messages here (on the
Ubuntu side of the laptop I'm installing on) as Ubuntu's ufs tools suck.

I'm wanting to get away from Canonical telling me what I'm going to use
and back to maintaining my own system. I decided on FreeBSD because of
stability and security, but I'm stumped and feel like a moron. So much
for good starts (I used gparted to resize the Ubuntu partition so I
could fit FreeBSD on here).
-- 
Yours in Christ,

Joseph A Nagy Jr
Whoever loves instruction loves knowledge, But he who hates correction
is stupid. -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL http://owl.apotheon.org


signature.asc
Description: OpenPGP digital signature


Re: Graphiz broke because of swig

2012-10-20 Thread Matthew Seaman
On 20/10/2012 22:51, Joseph a Nagy Jr wrote:
 No luck. I was compiling from source using make and letting dependencies
 be resolved automatically. Something seriously got messed up and I feel
 like an idiot. I was following the handbook and was in chapter 5 where
 it was recommended to install subversion for ports tree management
 (sounded good to me) and I executed, from /use/ports/devel/subversion/
 'make install clean'. It was doing good up until doxygen/graphviz, it
 seems. I have no easy way of getting the error messages here (on the
 Ubuntu side of the laptop I'm installing on) as Ubuntu's ufs tools suck.

Why can't you do something like create a transcript of the session where
you try and install subversion, but it fails, and post that transcript
onto a pastebin site directly from FreeBSD?

Use script(1) to make the transcript:

   % script /tmp/session.log
   % ... do ports related things ...
   % exit

The session.log should contain a copy of everything that got printed
onto your terminal.  Pastebin sites are a dime a dozen, and you can
probably find one that lets you use standard unix tools to upload to it.

Then just post the link here.  Chances are the problem you've run into
is not unique to you, and that someone will know exactly what to do to
sort you out.  We need to see all the details though if we're going to
be able to offer you effective advice.

Cheers,

Matthew



-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: 9.1 and gmirror with GPT?

2012-10-20 Thread Lucas B. Cohen
Hi,

On 2012.10.20 20:17, free...@johnea.net wrote:
 Just wondering if 9.1 will bring any improvement to the situation of creating 
 a full disk geom mirror while also using GPT partition table?

I'm curious about what this is about. Could you refer me to an article
or a discussion where this issue is described ?
___
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


Spam and more spam

2012-10-20 Thread Erich Dollansky
Hi,

could t be that everybody can post now on this list without being
registered and without having administrator's approval?

I remember that my messages got delayed when I used my work's e-mail
address but when I just send an answer to a question intentional with
my work's e-mail address, it worked.

Should we move to a list where only registered users can write just to
avoid the spam problem and not forcing a human to approve all e-mails
from addresses which are not registered?

Erich
___
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


Proposal to derkeiler.com

2012-10-20 Thread Holly Robertson
My name is Holly Robertson and I was wondering if you are interested in 
exchange links, I'll place your link on my sites exactly here:

sspwebsites(dot)com PR2
loudpipesdesign(dot)com PR3


If you agree please send me your site details:

Title:
Url:

I'll place your link in less than 24 hours, then I'll send you an email with my 
info.


Regards


If you don't want to receive more mails just reply with unsubscribe.
___
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