Re: SBC DSL vs Fbsd 4.7 PPPoE?
On Tue, 4 Mar 2003, Amit Chakradeo wrote: > Indent your ppp.conf file properly. All lines in a section (e.g. default) > should be indented by at least a space. YEAY!! (No thanks to those deceptive, colon-hating or colon-seeking error messages.) Hey, Amit my new good good helpful friend... does this email address of yours accept kindly PayPal-originated donations? Let me know. > ppp automatically loads the netgraph module if it is not built in > kernel. /boot/loader.conf just decides what modules to load at bootup. > Don't change anything there. They're all off except for ng_pppoe.ko and netgraph.ko according to the output from "kldstat." Do they run faster "compiled" into the kernel? I don't know what I'm asking exactly. Can I safely change these to NO? > Also if you have multiple tun interfaces, you might want to add > -unit0 to the ppp commandline to force it to use tun0 interface (makes > filtering easy!) > HTH > AMit That weird tun0, tun1, tun2 problem has since ceased. I like the ifconfig command but couldn't get `ifconfig xl0 destroy` to work (kept getting a compile sort of error, lemme see... ifconfig: SIOCIFDESTROY: Invalid argument There it is, yeah. And I am mildly confused about if there are any dangers with killing the ppp process, or running ppp to get into interactive mode and trying to use the "close" command or, once again, does any of this matter? Now it's time for me to read up on natd, ipfw etc etc and most important of all, learn how to install just one port at a time rather than /stand/sysinstall then getting src-all and ports-all then portupgrade then cvsup then make install clean there's gotta be a command above "pkg_add -r" but below "cvsup" and having extraneous ports in my tree!! Tarballs are so under-rated, as are mechanisms for getting dependent libs! :( PS - Thanks again Amit, early birthday present to me!! :-) B^] -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: SBC DSL vs Fbsd 4.7 PPPoE?
On Mon, 03 Mar 2003 17:05:50 PST [EMAIL PROTECTED] wrote: > How-do. Has anyone gotten SBC's DSL service working on FreeBSD? > I've tinkered with netgraph, pppoe, and my ppp.conf file but still get an In the "netgraph modules" area of my /boot/loader.conf file should all be "NO?" Is there a way to determine which version of the ppp binary I have, or is this not useful? > error about device tun0 or tun1; I'm not sure what to do. > Also, how do I know what hostname to set in my rc.conf file ... before > I've been assigned a dynamic IP?? > Please CC: me in your reply. Thank you all. PS-(SDBUG, next mtg?) I noticed in the output of "kldstat" that "ng_pppoe.ko" was not listed; is it somehow "built-in" to ppp? Here is my ppp.conf file followed by the errors (lots about missing colons). Thanks everyone. # Begin ppp.conf default: # Next line is Line 12 by the way set log Phase tun command set ifaddr 10.0.0.1/0 10.0.0.2/0 sbcdsl: # Does next line require ":" on the end or should # the next line be moved up to the default area with ":sbcdsl" # added to the end of the line? set device PPPoE:xl0 set authname myusernamehere set authkey mypasswordhere set dial set login add default HISADDR # enable dns# request DNS info (for resolv.conf) # End ppp.conf # ppp -ddial sbcdsl Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp[209]: Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Warning: Bad label in /etc/ppp/ppp.conf (line 13) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp[209]: Warning: Bad label in /etc/ppp/ppp.conf (line 13) - missing colon Working in ddial mode Using interface: tun0 Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp[209]: Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp[209]: Warning: Bad label in /etc/ppp/ppp.conf (line 12) - missing colon Warning: Bad label in /etc/ppp/ppp.conf (line 13) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp[209]: Warning: Bad label in /etc/ppp/ppp.conf (line 13) - missing colon Warning: Bad label in /etc/ppp/ppp.conf (line 16) - missing colon Mar 3 22:48:01 <3.4> freebsd ppp... Please CC: me in your reply. PS, is SDBUG meeting this Thursday?? -- Peter Leftwich, President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com (sent via http://www.mail.cloud9.net) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: [SDBUG] SBC DSL vs Fbsd 4.7 PPPoE?
On Mon, Mar 03, 2003 at 05:05:50PM -0800, [EMAIL PROTECTED] wrote: > How-do. Has anyone gotten SBC's DSL service working on FreeBSD? Yes. > I've tinkered with netgraph, pppoe, and my ppp.conf file but still get an > error about device tun0 or tun1; I'm not sure what to do. man ppp man 8 pppoe It works with generic kernel. ppp loads the netgraph module automatically. Here is what you need to have in rc.conf: ifconfig_rl0="up" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="SBC" Then in ppp.conf you have: default: set log Phase tun command set ifaddr 10.0.0.1/0 10.0.0.2/0 SBC: set device PPPoE:rl0 set authname [EMAIL PROTECTED] set authkey mypassword set dial set login add default HISADDR Note, my external interface is rl0 and ppp_profile points to relevant stanza in ppp.conf You can also add line in /etc/ppp/ppp.linkup to update the ipnat and ipf rules. Use tun0 as the external interface. DO not filter on rl0. Email me privately if you need help... Amit > > Also, how do I know what hostname to set in my rc.conf file ... before > I've been assigned a dynamic IP?? > > Please CC: me in your reply. Thank you all. PS-(SDBUG, next mtg?) > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: SBC DSL vs Fbsd 4.7 PPPoE?
On Mon, Mar 03, 2003 at 05:05:50PM -0800, [EMAIL PROTECTED] wrote: > How-do. Has anyone gotten SBC's DSL service working on FreeBSD? > > I've tinkered with netgraph, pppoe, and my ppp.conf file but still get an > error about device tun0 or tun1; I'm not sure what to do. Post the exact error messages you are receiving, as well as your configuration files (passwords removed) so we don't have to guess at your problem. Kris pgp0.pgp Description: PGP signature
Please ignore (Was: Re: SBC DSL vs Fbsd 4.7 PPPoE?)
* Martin Karlsson <[EMAIL PROTECTED]> [2003-03-04 03.01 +0100]: > > * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2003-03-03 17.05 -0800]: > [SNIP] > > Also, how do I know what hostname to set in my rc.conf file ... before > > I've been assigned a dynamic IP?? > > Hi. Using DHCP you should be assigned a hostname automatically. No > need to set HOSTNAME manually in /etc/rc.conf. > > If not assigned one (sadly, this happens with some ISPs), > whip up a script that finds your IP in /var/db/dhclient.leases and > runs it through host(1) and then sets it as your hostname. > Have it run on startup by naming it whatever.sh, make it executable > and put it in /usr/local/etc/rc.d. Sorry, I see now you're asking about something else. *blushes* -- Martin Karlsson To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: SBC DSL vs Fbsd 4.7 PPPoE?
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2003-03-03 17.05 -0800]: [SNIP] > Also, how do I know what hostname to set in my rc.conf file ... before > I've been assigned a dynamic IP?? Hi. Using DHCP you should be assigned a hostname automatically. No need to set HOSTNAME manually in /etc/rc.conf. If not assigned one (sadly, this happens with some ISPs), whip up a script that finds your IP in /var/db/dhclient.leases and runs it through host(1) and then sets it as your hostname. Have it run on startup by naming it whatever.sh, make it executable and put it in /usr/local/etc/rc.d. HTH -- Martin Karlsson To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: SBC DSL vs Fbsd 4.7 PPPoE?
On Mon, 3 Mar 2003 [EMAIL PROTECTED] wrote: > How-do. Has anyone gotten SBC's DSL service working on FreeBSD? Yes. Well, it was called PacBell DSL at the time, but it is still working. I pretty much just used the pppoe entry from /usr/share/examples/ppp/ppp.conf.sample. Something like this: /etc/ppp/ppp.conf: sbc: # Replace "rl0" with your interface connected to the DSL box set device PPPoE:rl0 # Hmmm... maybe these aren't needed anymore: set mru 1492 set mtu 1492 set speed sync enable lqr set cd 5 set dial set login set redial 0 0 set authname set authkey add default HISADDR /etc/rc.conf: network_interfaces="rl0 lo0" # The pppoe interface has to be configured as "up". Nothing else. ifconfig_rl0="up" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="sbc" > I've tinkered with netgraph, pppoe, and my ppp.conf file but still get an > error about device tun0 or tun1; I'm not sure what to do. Any chance that you might be a bit more specific? (As in: exactly what you did, and exactly what error messages that resulted in. FreeBSD version might be useful information too). Both "tun" and "netgraph" should be autoloaded by ppp(8). Everything should work out-of-the-box. No tinkering required :-) The only gotcha I can remember was that the interface used for PPPoE has to be "ifconfig up" in order to be usable. I don't even know whether that is true any more. > Also, how do I know what hostname to set in my rc.conf file ... before > I've been assigned a dynamic IP?? Anything you want. SBC won't care and it won't be visible to the outside world anyway. $.02, /Mikko To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
SBC DSL vs Fbsd 4.7 PPPoE?
How-do. Has anyone gotten SBC's DSL service working on FreeBSD? I've tinkered with netgraph, pppoe, and my ppp.conf file but still get an error about device tun0 or tun1; I'm not sure what to do. Also, how do I know what hostname to set in my rc.conf file ... before I've been assigned a dynamic IP?? Please CC: me in your reply. Thank you all. PS-(SDBUG, next mtg?) -- Peter Leftwich, President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com (sent via http://www.mail.cloud9.net) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message