pppoe connection freezes
I have CenturyLink DSL, and I use the user-space ppp program in FreeBSD 9.1 to make the PPPoE connection. From time to time (every few days) the connection freezes up—no more data can be sent or received. No error shows up in ppp.log; all I can see there is that there are no more RecvEchoRequest and SendEchoReply entries after the connection freezes. If I send SIGINT to the ppp program, it reconnects just fine. I talked to CenturyLink's tech support, and they said that one of the times that I had a problem, the connection was dropped on their end, but the others it was fine. My ppp command line is ppp -nat -ddial centurylink My ppp.conf: default: set log Phase Chat LCP IPCP CCP tun command disable ipv6cp centurylink: set device PPPoE:rl0 enable lqr set authname balholmand...@qwest.net set authkey set dial set login add default HISADDR Is there a setting I can add to ppp.conf to make it detect when the connection freezes? Or is there something else that I need to fix? Andy Balholm (509) 276-2065 a...@balholm.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: [solved] PPPoE
On Thu, 13 Dec 2012 17:28:47 +0100, Ralf Mardorf wrote: > On Thu, 2012-12-06 at 16:47 +, RW wrote: > > ##enable dns # request DNS info (for resolv.conf) > > > > You probably need this if you haven't set resolv.conf manually > > > > > set dial > > > set login > > > > I don't think you need these. > > Thank you :) > > uncommenting "enable dns", commenting out "set dial" and "set login" > does the trick. As seen in The FreeBSD Handbook. :-) -- Polytropon 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"
[solved] PPPoE
On Thu, 2012-12-06 at 16:47 +, RW wrote: > ##enable dns # request DNS info (for resolv.conf) > > You probably need this if you haven't set resolv.conf manually > > > set dial > > set login > > I don't think you need these. Thank you :) uncommenting "enable dns", commenting out "set dial" and "set login" does the trick. Regards, Ralf ___ 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: PPPoE
On Thu, 2012-12-06 at 16:47 +, RW wrote: > On Thu, 06 Dec 2012 16:13:40 +0100 > Ralf Mardorf wrote: > ##enable dns # request DNS info (for resolv.conf) > > You probably need this if you haven't set resolv.conf manually > > > set dial > > set login > > I don't think you need these. Thank you :) I'll test and report back ASAP. Regards, Ralf ___ 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: PPPoE
On Thu, 06 Dec 2012 16:13:40 +0100 Ralf Mardorf wrote: ##enable dns # request DNS info (for resolv.conf) You probably need this if you haven't set resolv.conf manually > set dial > set login I don't think you need these. ___ 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: PPPoE
On Thu, 2012-12-06 at 10:20 -0500, Mike Tancsa wrote: > you do have an IP from your provider. No. > Is it your default route not getting installed ? What is the default route? By Ethernet I want to connect to an ADSL modem. > Are you expecting nat to be working ? No. > After you are connected, what does > netstat -Wnra > > show ? I'll reboot ASAP. > You might also disable DHCP on re0 since its not getting an address, or > in dhclient.conf set it so it uses a default IP that does not have 0/8 Ok, I'll google for that. Thank you! Regards, Ralf ___ 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: PPPoE
On Fri, 2012-12-07 at 02:17 +1100, andrew clarke wrote: > On Thu 2012-12-06 16:13:40 UTC+0100, Ralf Mardorf > (ralf.mard...@rocketmail.com) wrote: > > > how do I have to set up PPPoE? > > This doesn't work: [1] > > In what way does it not work? > > In your example, at the very least you should be able to ping 213.191.89.25: > [snip] Firefox can't connect to the Internet. I didn't ping. The problem is, that I have to reboot between Linux (to send and receive emails, read howtos in the Internet) and FreeBSD (to set it up, run a command as "ping"). Regards, Ralf ___ 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: PPPoE
On 12/6/2012 10:13 AM, Ralf Mardorf wrote: > Hi, > > how do I have to set up PPPoE? > This doesn't work: [1] > [rocketmouse@freebsd] /usr/home/rocketmouse# ifconfig > re0: flags=8843 metric 0 mtu 1500 > > options=389b > ether 00:1e:8c:80:2a:eb > inet6 fe80::21e:8cff:fe80:2aeb%re0 prefixlen 64 scopeid 0x1 > inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255 > tun0: flags=8051 metric 0 mtu 1492 > options=8 > inet 92.224.211.44 --> 213.191.89.25 netmask 0xff00 > Opened by PID 21614 What is not working ? you do have an IP from your provider. Is it your default route not getting installed ? Are you expecting nat to be working ? After you are connected, what does netstat -Wnra show ? You might also disable DHCP on re0 since its not getting an address, or in dhclient.conf set it so it uses a default IP that does not have 0/8 ---Mike -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.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: PPPoE
On Thu 2012-12-06 16:13:40 UTC+0100, Ralf Mardorf (ralf.mard...@rocketmail.com) wrote: > how do I have to set up PPPoE? > This doesn't work: [1] In what way does it not work? In your example, at the very least you should be able to ping 213.191.89.25: > tun0: flags=8051 metric 0 mtu 1492 > options=8 > inet 92.224.211.44 --> 213.191.89.25 netmask 0xff00 > Opened by PID 21614 > Dec 6 15:09:15 freebsd ppp[21614]: tun0: IPCP: myaddr 92.224.211.44 hisaddr > = 213.191.89.25 ___ 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"
PPPoE
Hi, how do I have to set up PPPoE? This doesn't work: [1] Regards, Ralf [1] [rocketmouse@freebsd] /usr/home/rocketmouse# ppp -ddial alice Working in ddial mode Using interface: tun0 [rocketmouse@freebsd] /usr/home/rocketmouse# cat /etc/ppp/ppp.conf # # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by ws...@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD$ # default: set log Phase Chat LCP IPCP CCP tun command ##ident user-ppp VERSION # Ensure that "device" references the correct serial port # for your modem. (cuau0 = COM1, cuau1 = COM2) # ##set device /dev/cuau1 set device PPPoE:re0 ##set speed 115200 ##set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ ## \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" ##set timeout 180 # 3 minute idle timer (the default) ##enable dns # request DNS info (for resolv.conf) ##papchap: alice: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # ##set phone PHONE_NUM ##set authname USERNAME ##set authkey PASSWORD set authname [*!SNIP!*] set authkey [*!SNIP!*] set dial set login set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR# Add a (sticky) default route [rocketmouse@freebsd] /usr/home/rocketmouse# ifconfig re0: flags=8843 metric 0 mtu 1500 options=389b ether 00:1e:8c:80:2a:eb inet6 fe80::21e:8cff:fe80:2aeb%re0 prefixlen 64 scopeid 0x1 inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255 nd6 options=3 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:11:d8:84:b5:f7 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.11.d8.0.1.84.b5.f7.a.2.ff.fe.0.0.0.0 plip0: flags=8810 metric 0 mtu 1500 pflog0: flags=0<> metric 0 mtu 33152 pfsync0: flags=0<> metric 0 mtu 1460 syncpeer: 224.0.0.240 maxupd: 128 lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 nd6 options=3 lo1: flags=8049 metric 0 mtu 16384 options=3 inet 10.1.1.1 netmask 0xff00 tun0: flags=8051 metric 0 mtu 1492 options=8 inet 92.224.211.44 --> 213.191.89.25 netmask 0xff00 Opened by PID 21614 [rocketmouse@freebsd] /usr/home/rocketmouse# uname -a FreeBSD freebsd 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Wed Feb 16 13:33:10 PST 2011 r...@build8x64.pcbsd.org:/usr/obj/usr/pcbsd-build82/fbsd-source/8.2/sys/PCBSD amd64 [rocketmouse@freebsd] /usr/home/rocketmouse# cat /var/log/ppp.log Dec 3 23:57:17 freebsd newsyslog[1569]: logfile first created Dec 6 15:09:12 freebsd ppp[21604]: Phase: Using interface: tun0 Dec 6 15:09:12 freebsd ppp[21604]: Phase: deflink: Created in closed state Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: default: set device PPPoE:re0 Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set authname [*!SNIP!*] Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set authkey Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set dial Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set login Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 Dec 6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: add default HISADDR Dec 6 15:09:12 freebsd ppp[21614]: tun0: Phase: PPP Started (ddial mode). Dec 6 15:09:12 freebsd ppp[21614]: tun0: Phase: bundle: Establish Dec 6 15:09:12 freebsd ppp[21614]: tun0: Phase: deflink: closed -> opening Dec 6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: Connected! Dec 6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: opening -> dial Dec 6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: dial -> carrier Dec 6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "HN-XDSL") Dec 6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_SESSIONID Dec 6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_SUCCESS Dec 6 15:09:14 freebsd ppp[21614]: tun0: Phase: deflink: carrier -> login Dec 6 15:09:14 freebsd ppp[21614]: tun0: Phase: deflink: login -> lcp Dec 6 15:09:14 freebsd ppp[21614]: tun0: LCP: FSM: Using "deflink" as a transport Dec 6 15:09:14 freebsd ppp[21614]: tun0: LCP: deflink: State change Initial --> Closed Dec 6 15:09:14 freebsd ppp[21614]: tun0: LCP: deflink: State change Closed --> Stopped Dec 6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: LayerStar
Re: pppoe configuration and dns name resolution
Hi This time I configured as simple as possible with minimal settings, and voila things worked. I successfully connected to internet in both cases - DHCP server disabled in adsl modem, and DHCP server enabled in adsl modem. Thanks all of you guys for helping. :) Here are config files: ## /etc/rc.config hostname="jacks_lappy" ifconfig_fxp0="DHCP" # The below line is to be used if DHCP server on adsl # modem is disabled. #ifconfig_fxp0="inet 192.168.1.4 netmask 255.255.255.0" # This is assigned to telnet to adsl modem and configure it, # if you don't wanna communicate with modem, remove # this line. It doesn't affect ppp connectivity, in any way - # I tried removing it and got connected successfully. 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" --- ## /etc/ppp/ppp.conf: default: set log Phase tun command adsl: set device PPPoE:fxp0 #MRU is optional too, you can remove it # w/o affecting ppp connectivity. set mru 1492 #set mtu 1492 # This was the cause of failure. # See man ppp for more info. # If MTU is set, ppp will not accept MRU values less than MTU. # e.g. MTU = 1492. Now if your ISP has MTU = 1460(my case), then # ppp on your PC, will not connect to ppp server at your ISP side. # So DO NOT set MTU explicitly. set authname set authkey set dial set login add default HISADDR enable dns # a must, if DHCP server is enabled in adsl modem # and if you don't wanna edit /etc/resolv.conf # each time before connecting tp ISP's ppp server. #Now you don't need to touch /etc/resolv.conf - My /etc/resolv.conf is updated each time I start ppp, so I didn't needed to edit it. I simply started ppp via ppp -ddial adsl I also didn't start ppp at bootup, as it requires that your adsl modem must be powered on before FreeBSD begins booting, which is not the usual case for me. Also, as soon as I started ppp, an ip address is assigned to tun0 interface by ISP, while fxp0 was assigned its ip address via DHCP server enabled in adsl modem, even before I attempted to dial ppp. That is expected. I also tested this configuration with DHCP server disabled in adsl modem and it too worked successfully, except I need to chnage the line fxp0="DHCP" to manually assigned ip address one, no other change was needed. The problem might be I was I trying to explcitly set MTU to be 1492, which ppp takes as minimum value - ie no MTU value less than 1492 is agreed upon by user ppp. My ISP's MTU was 1460, and since 1460 < 1492, so ppp was not agreeing upon MTU value and no connection was made. Thanks again all of you guys for sorting this out. :) Mean while I created a script to start and stop ppp service for a profile. This script is specifically written for csh/tcsh shell - the default one for FreeBSD, so some changes need to be made if it is to be run in other shells. Just go to c shell and type pppdo where 'profilename' is the desired profilename defined in etc/ppp/ppp.conf, and either you 'start' ppp or 'stop' ppp. Here goes the script: pppdo.sh #!/bin/csh if ( $#argv != 2 ) then echo "Usage: $0 " exit endif switch ($2) case start: /usr/sbin/ppp -ddial $1 ; breaksw case stop: killall -INT ppp killall -HUP ppp ; breaksw default: echo "$0 : Invalid Cmd" ; breaksw endsw - NOTE: before executing this script make sure it is executable If not, type this at shell: chmod +x ./pppdo.sh After executing this script try pinging to a remote site to confirm connectivity, e.g. type this at shell: ping -c5 freebsd.org If you get 0.0% packet loss, then you made it! So, the only files that require modifications are /etc/ppp/ppp.conf and /etc/rc.conf No other file need to be modified to use user ppp, no matter whether DHCP server on your adsl modem is enabled or disabled, it doesn't matter - just use the configuration mention above. Then use the script as: ./pppdo adsl start to start the ppp profile named "adsl"(tun0 interface is created), and use ./pppdo adsl stop to stop the ppp. This will destroy the tun0 interface too. PS: The user account from which this script is to be run, must be a member of "network" group too, though "network" group need not to be the user's login group. This is the requirement of user ppp itself, and not of this script. Regards -- Jack ___ freebsd-questions@freebsd.org mailing list http://lists
Re: pppoe configuration and dns name resolution
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 set authkey 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: pppoe configuration and dns name resolution
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 > set authkey > 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 set authkey 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=8843 metric 0 mtu 1500 > options=2009 > 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=29 > media: Ethernet autoselect (100baseTX ) > status: active Looks good so far - connected to the modem. > tun0: flags=8051 metric 0 mtu 1500 > options=8 > nd6 options=29 > 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=8843 metric 0 mtu 1500 > options=2009 > ether 00:16:d3:0c:42:22 > inet 192.168.1.4 netmask 0xff00 broadcast 192.168.1.255 > inet6 fe80::216:d3ff:f
Re: pppoe configuration and dns name resolution
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 still don' get why FreeBSD is having trouble connecting via PPP. I am trying every combinations that might work, but still no luck. Any help will be appreciated. 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="" 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" routerenable="NO" #defaultrouter="192.168.1.1" ppp_enable="YES" ppp_mode="ddial" ppp_nat="NO" ppp_profile="adsl" 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. -- ## etc/resolv.conf #Open DNS nameservers: nameserver 208.67.222.222 nameserver 208.67.220.220 -- ## /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 set authkey set timeout 120 set redial 0 0 add default HISADDR #enable dns -- ## output of ifconfig just after boot: fxp0: flags=8843 metric 0 mtu 1500 options=2009 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=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 06:e4:0a:1b:50:36 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=63 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff00 nd6 options=21 tun0: flags=8051 metric 0 mtu 1500 options=8 nd6 options=29 Opened by PID 1231 -- ## output of ifconfig after I started ppp using ## service ppp start fxp0: flags=8843 metric 0 mtu 1500 options=2009 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=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 06:e4:0a:1b:50:36 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=63 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff00 nd6 options=21 tun0: flags=8051 metric 0 mtu 1500 options=8 nd6 options=29 Opened by PID 1231 -- Now it seems to me that there might be some sequence of statements in /etc/ppp/ppp.conf that works, and others don't But what is that magic sequence? PS: In windows there is no problem connecting via ppp, even if I use DHCP server enabled on my adsl modem, and modem is in bridge mode. So, there must be some way in FreeBSD too, that works regardless of whether ip address of fxp0(the ethernet interface to which adsl modem connects to PC), is assigned via a DHCP server on modem or manually. I understand that if DHCP is enabled on adsl modem, and fxp0 is assigned the ip address via this DHCP, then the PPP server of ISP to which we are trying to connect, will also assign a public IP address to the PPP client, which in case of FreeBSD is tun0 interface rather than fxp0 . In other words, tun0 interface here should be PPP client, and PPP server is at ISP side. Ths fx
Re: pppoe configuration and dns name resolution
On Thu, 18 Oct 2012 20:03:50 +0100, RW wrote: > On Tue, 16 Oct 2012 20:38:47 +0530 > Jack wrote: > > /etc/resolv.conf > > > > # Generated by resolvconf > > nameserver 192.168.1.1 > > If 192.168.1.1 is the modem, how can it be a proxy nameserver? It > doesn't have an internet connection if it's not terminating PPP. > > You have > >ifconfig_fxp0="DHCP" > > which means you are picking up DHCP from the modem itself not the > other side of the PPP link. In bridging mode you only need to > configure the underlying ethernet device if you want to route back-out > into the router's LAN (PPPoE and IP can share a lan). > > You don't necessarily need DHCP with PPPoE because PPP can deliver the > IP address, DNS etc by itself. If the ISP requires you to use DHCP you > should probably have configured the tun0 interface instead of fxp0. Exactly that's what I did describe in my message: Configuration data is set in ppp.conf, no DHCP involved, and the actual IP will be delivered to the tun0 interface, while fxp0 (in this case) can be used for involving with NAT (if required). Setting the nameserver to an _actual_ nameserver (either running named on the machine, or relying on the ISP's nameservers) is required. This is the easiest approach to dealing with PPPoE modems (if they are used as "actual modems" without any additional routing, DHCP or other functionality). -- Polytropon 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: pppoe configuration and dns name resolution
On Tue, 16 Oct 2012 20:38:47 +0530 Jack wrote: > My network schematic is: > > PC <---> ADSL modem <-> Internet > 192.168.1.2 192.168.1.1 > ... > /etc/resolv.conf > > # Generated by resolvconf > nameserver 192.168.1.1 If 192.168.1.1 is the modem, how can it be a proxy nameserver? It doesn't have an internet connection if it's not terminating PPP. You have ifconfig_fxp0="DHCP" which means you are picking up DHCP from the modem itself not the other side of the PPP link. In bridging mode you only need to configure the underlying ethernet device if you want to route back-out into the router's LAN (PPPoE and IP can share a lan). You don't necessarily need DHCP with PPPoE because PPP can deliver the IP address, DNS etc by itself. If the ISP requires you to use DHCP you should probably have configured the tun0 interface instead of fxp0. ___ 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: pppoe configuration and dns name resolution
Hi, Thank you guys for your suggestions, and sharing your experiences with me. This time I deleted old /var/log/ppp.log file, and I did modify /etc/ppp/ppp.conf - just the location of ifaddr line is changed and some more logging options set -nothing else is changed. . The file is this now: /etc/ppp/ppp.conf : default: adsl: set log Phase chat lcp ipcp ccp tun command lqm set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set device PPPoE:fxp0 set mru 1492 set mtu 1492 set ctsrts off set speed sync set dial enable lqr set login set authname set authkey set timeout 120 set redial 0 0 # set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 # now this interface is set up at 2nd line in adsl profile add default HISADDR enable dns nat enable no - Then I rebooted FreeBSD, in verbose mode enabled. After it booted, I started ppp like this: #ppp -ddial adsl Here is the shell o/p along with verbose lines /usr/sbin/ppp -ddial adsl Working in ddial mode Using interface: tun0 ;verbose lines tun0: buf attached WARNING: attempt to domain_add(netgraph) after domainfinalize() - The output of ifconfig is: fxp0: flags=8843 metric 0 mtu 1500 options=2009 ether 00:16:d3:0c:42:22 inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 06:e4:0a:1b:50:36 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=63 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff00 nd6 options=21 tun0: flags=8051 metric 0 mtu 1500 options=8 nd6 options=21 Opened by PID 1731 - The /var/log/ppp.log file contents: http://justpaste.it/1fcw Is there some standard sequence for the contents of /etc/ppp/ppp.conf ? I guess that may be the problem. The bridge mode works fine in my Windows XP setup. Nothing special to configure, just need to go to network connections and create a new connection, using username and password. In XP, I'm using DHCP too, so that I don't need to manually confgure interface IP address. That's why I'm sure that my network setup is not a issue. The issue lies somewhere in FreeBSD configuration or somewhere else. On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman wrote: > > On 16 Oct 2012, at 16:38, Jack wrote: > >> I 'll try mpd5. Thanks. >> >> Actually, I was concerned with userland ppp, becoz of the >> scenarios where we have a FreeBSD machine and the only >> way to connect to internet is an adsl modem in bridge mode >> (assuming the mode in modem, can't be changed). >> In such case the only utilty is ppp, which can be of help. > > Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe > I'm missing your point. > Mark, what I meant to say is when we have, say a fresh FreeBSD install, then the only service we have at expose is ppp. To be able to use mpd5, or other ports/packages we first need to connect to internet then only we can install/use mpd5. So, by default we are stuck at using ppp builtin with FreeBSD. :( By bridge mode I meant that and are to be provided to OS, rather than storing them inside adsl modem. PS: I sent this mail with /var/log/ppp.log contents yesterday but it seems that list moderator rejected the post due to its large size. So, I'm pasting the link for contents of /var/log/ppp.log Regards -- Jack ___ 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: pppoe configuration and dns name resolution
On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman wrote: > > On 16 Oct 2012, at 16:38, Jack wrote: > >> I 'll try mpd5. Thanks. >> >> Actually, I was concerned with userland ppp, becoz of the >> scenarios where we have a FreeBSD machine and the only >> way to connect to internet is an adsl modem in bridge mode >> (assuming the mode in modem, can't be changed). >> In such case the only utilty is ppp, which can be of help. > > Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe > I'm missing your point. > > - Mark Mark, what I meant is when we have, say a fresh FreeBSD install, then the only service we have at expose is ppp. To be able to use mpd5, or other ports/packages we first need to connect to internet then only we can install/use mpd5. So, by default we are stuck at using ppp builtin with FreeBSD. And yes by bridge mode I meant that and are to be provided to OS, rather than storing them inside adsl modem. The bridge mode works fine in my Windows XP setup. Nothing special to configure, just need to go to network connections and create a new connection, using username and password. In XP, I'm using DHCP too, so that I don't need to manually confgure interface IP address. That's why I'm sure that my network setup is not a issue. The issue lies somewhere in FreeBSD configuration or somewhere else. Regards -- Jack ___ 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: pppoe configuration and dns name resolution
On Tue, 16 Oct 2012 20:38:47 +0530, Jack wrote: > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. I've been using PPPoE with a DSL modem for many years, using FreeBSD 4, 5 and 7 with the system's PPPoE tools. The IP was provided to the computer directly, so no DHCP in the modem involved ("real modem mode"). In /etc/ppp/ppp.conf, I did simply define: myispname: set device PPPoE:xl0 set authname customer1234567@myispname set authkey X set dial set login add default HISADDR No further changes to that file. Note that here, xl0 is the interface directly connected to the modem. And in /etc/rc.conf: ifconfig_xl0="192.168.0.1 netmask 0xff00" ppp_enable="YES" ppp_profile="myispname" ppp_mode="ddial" ppp_nat="YES" So the system would automatically start the connection at boot time. The tun0 interface would then be associated the public IP designated when the PPPoE connection was up and running. Note that ppp_nat only has been needed to "transition" the connection through a 2nd NIC into the local net, making my machine a gateway (including related services, such as natd and dhcpd). I also think initializing the NIC xl0 is not entirely needed, maybe "up" would have been sufficient. For actually being able to use PPPoE, I did add the required components to the kernel, because that approach was "state of the art" at those times. :-) In /etc/resolv.conf I did add the nameservers published by my ISP. Anything worked automatically, I did not need to make further changes. Basically my setup looks like yours, except that (as I said) I did not use any "additional features" of the DSL modem (as it did not have such features). :-) -- Polytropon 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: pppoe configuration and dns name resolution
On 10/16/12 09:08, Jack wrote: > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. > > After reading handbook and searching on various forums, > I prepared the ppp.conf file, and tried starting the ppp via > # ppp -ddial adsl > > Here 'adsl' is the profile name, in /etc/ppp/ppp.conf. > I also tried > #ppp -auto adsl > but the error message was same. > > The tun0 interface is created, but when is tried pinging to well > known sites, e.g. yahoo.com, etc. it says: > "can't resolve hostname." > > It seems a DNS issue first, but when I put my adsl modem > in non-bridged mode, I was able to connect to any site. > The IP address allocated to my PC is via DHCP, so > no special configuration was needed in modem's > non-bridged mode. It's not a DNS issue; tun0 isn't configured for the proper IP addr > The problem arise only when I put adsl modem in > bridged mode and tried dialing via ppp. > > My network schematic is: > > PC <---> ADSL modem <-> Internet > 192.168.1.2 192.168.1.1 > > DHCP is enabled in adsl modem. > > I'm pasting my related configuration files if they can help. > Please tell me if any other files are needed. > > /etc/rc.conf > > hostname="jacklappy" > ifconfig_fxp0="DHCP" > 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" > routerenable="NO" My config is slightly different, w/o dhcp and natd I don't have any expertise with this, but when using bridging it's my understanding you should not configure the hardware interface -- in your case, fxp0 Perhaps the ifconfig_fxp0="DHCP" should be specified for tun0 instead. My rc.conf says ifconfog_ep0="" but then I'm not using dhcp, so I'm not sure whether it belongs on tun0 or fxp0. > -- > > > /etc/resolv.conf > > # Generated by resolvconf > nameserver 192.168.1.1 > > > > /etc/ppp/ppp.conf > > default: > > adsl: > set log Phase tun command > set device PPPoE:fxp0 > 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 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR > enable dns > nat enable no Mine has only the following; the main thing different is the "enable mssfixup" and the '!' on the add command I would think you need to at least get rid of the set ifaddr command, which is causing tun0 to have the wrong ip addr set log Phase Chap LCP IPCP CCP tun command set device PPPoE:ep0 set mtu max 1492 set mru max 1492 enable mssfixup set dial set login set timeout 0 set authname set authkey add! default HISADDR I start ppp using: /usr/sbin/ppp -quiet -dedicated your_profile > > > > ifconfig output: > > fxp0: flags=8843 metric 0 mtu 1500 > options=2009 > ether 00:16:d3:0c:42:22 > inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > fwe0: flags=8802 metric 0 mtu 1500 > options=8 > ether 06:e4:0a:1b:50:36 > nd6 options=29 > ch 1 dma -1 > fwip0: flags=8802 metric 0 mtu 1500 > lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 > nd6 options=29 > lo0: flags=8049 metric 0 mtu 16384 > options=63 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 > inet 127.0.0.1 netmask 0xff00 > nd6 options=21 > tun0: flags=8051 metric 0 mtu 1500 > options=8 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xff00 > nd6 options=21 > Opened by PID 1907 > > > fxp0 is the ethernet interface of my PC via which adsl modem is connected. tun0 should show the ip addr assigned by your ISP: tun0: flags=8051 mtu 1492 inet 12.32.44.142 --> 216.14.225.104 netmask 0x Opened by PID 219 Gary ___ 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: pppoe configuration and dns name resolution
On Tue 2012-10-16 20:38:47 UTC+0530, Jack (jacks.1...@gmail.com) wrote: > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. > > After reading handbook and searching on various forums, > I prepared the ppp.conf file, and tried starting the ppp via > # ppp -ddial adsl > > Here 'adsl' is the profile name, in /etc/ppp/ppp.conf. > I also tried > #ppp -auto adsl > but the error message was same. ... I use a similar setup here except I use static IPs for both the ADSL modem (in bridge mode) and the FreeBSD box connecting to it. The FreeBSD box then runs a DHCP server (dns/dnsmasq in ports) for any other machines on my LAN to talk to. > I'm pasting my related configuration files if they can help. > Please tell me if any other files are needed. Nothing really stands out glancing at your configs. I'd be looking for clues in /var/log/ppp.log. > tun0: flags=8051 metric 0 mtu 1500 > options=8 > inet 10.0.0.1 --> 10.0.0.2 netmask 0xff00 > nd6 options=21 > Opened by PID 1907 tun0 should have been reassigned a public address here by the remote PPP host (your ISP). Also the MTU is still stuck at 1500 despite you correctly configuring 1492 in ppp.conf. So I think the PPP negotiation is failing. ppp.log may explain why. Mine looks like this: tun0: flags=8051 metric 0 mtu 1492 options=8 inet 58.6.247.132 --> 203.215.15.252 netmask 0x Opened by PID 45904 Below is my (edited) rc.conf & ppp.conf. I simply start & stop the PPP session with "service ppp start" & "service ppp stop" as root. ## /etc/rc.conf hostname="blizzard.phoenix" ifconfig_bge0="inet 192.168.1.4 netmask 255.255.255.0" zfs_enable="YES" syslogd_flags="-c" gateway_enable="YES" sshd_enable="YES" inetd_enable="YES" fusefs_enable="YES" openntpd_enable="YES" dovecot_enable="YES" named_enable="NO" dnsmasq_enable="YES" postfix_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="iinet" firewall_enable="YES" firewall_script="/etc/ipfw.rules" firewall_logging="YES" ## /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 255.255.255.255 nat enable yes disable lqr disable ipv6cp set echoperiod 30 enable echo iinet: set device PPPoE:bge0 set authname myusername set authkey mypassword set dial set login set mru 1492 set mtu 1492 set redial 15 0 add default HISADDR ___ 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: pppoe configuration and dns name resolution
On 16 Oct 2012, at 16:49, Mark Blackman wrote: > > On 16 Oct 2012, at 16:38, Jack wrote: > >> I 'll try mpd5. Thanks. >> >> Actually, I was concerned with userland ppp, becoz of the >> scenarios where we have a FreeBSD machine and the only >> way to connect to internet is an adsl modem in bridge mode >> (assuming the mode in modem, can't be changed). >> In such case the only utilty is ppp, which can be of help. > > Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe > I'm missing your point. More accurately, bridge mode (on the modem) means your FreeBSD box will need to be the termination point of the PPPoE link rather than the modem itself and so you need to run something to terminate the PPPoE packets and mpd5 will do that (among other things). - Mark ___ 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: pppoe configuration and dns name resolution
On 16 Oct 2012, at 16:38, Jack wrote: > I 'll try mpd5. Thanks. > > Actually, I was concerned with userland ppp, becoz of the > scenarios where we have a FreeBSD machine and the only > way to connect to internet is an adsl modem in bridge mode > (assuming the mode in modem, can't be changed). > In such case the only utilty is ppp, which can be of help. Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe I'm missing your point. - Mark ___ 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: pppoe configuration and dns name resolution
On Tue, Oct 16, 2012 at 8:49 PM, Mark Blackman wrote: > > On 16 Oct 2012, at 16:08, Jack wrote: > >> Hi >> >> I'm new as a FreeBSD user, and trying to configure my >> pppoe connection. > > [snip] > >> >> fxp0 is the ethernet interface of my PC via which adsl modem is connected. >> >> Any suggestions ... > > Consider using the ports mpd5 daemon for a PPPoE connection instead. > I had a lot of trouble getting PPPoE to work with userland 'ppp', but > mpd5 worked fine. > > - Mark I 'll try mpd5. Thanks. Actually, I was concerned with userland ppp, becoz of the scenarios where we have a FreeBSD machine and the only way to connect to internet is an adsl modem in bridge mode (assuming the mode in modem, can't be changed). In such case the only utilty is ppp, which can be of help. I'm using FreeBSD 9.1 RC-2. Regards -- Jack ___ 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: pppoe configuration and dns name resolution
On 16 Oct 2012, at 16:08, Jack wrote: > Hi > > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. [snip] > > fxp0 is the ethernet interface of my PC via which adsl modem is connected. > > Any suggestions ... Consider using the ports mpd5 daemon for a PPPoE connection instead. I had a lot of trouble getting PPPoE to work with userland 'ppp', but mpd5 worked fine. - Mark ___ 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"
change MAC address for PPPoE connection
Hello I'm using PPPoE link to connect to the INTERNET. my problem is that I have to change my MAC address for my night time link. I do that using ifconfig command before connecting the night link: *killall ppp ifconfig cdce0 ether 2a:00:00:00:00:00 ppp -ddial adslnight* cdce0 is the interface connected to the ADSL modem. command will change the MAC address on the interface but PPP still uses the old MAC (I can see it over tcpdump). I think it's some cache or something that keeps the old MAC. please help me, I couldn't find anything related on-line. my ppp.conf: *adsl: set log Phase tun command set redial 99 3 set device PPPoE:cdce0 set authname UserName set authkey Password set dial set login add default HISADDR adslnight: set log Phase tun command set redial 99 3 set device PPPoE:cdce0 set authname NightUserName set authkey NightPassword set dial set login add default HISADDR* ___ 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"
PPPoE-Server
Hi Folks, i try to setup a pppoe-server. Until now iv'e try this with rc_pppoe and mpd5, both didn't work. The rp_pppoe implementation from ports are answering my PADI but after PADS the system terminates the connection with "pppd terminated". The setup from mpd5 fails at all without any response for the PADI message. Is there a good howto for configuring pppoe-server on FreeBSD 8.0? Furtehrmore the system dont tell much information in logfiles. Is there an possibility to set the loglevel e.g. to DEBUG? Regards, Heiko___ 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: pppoe related
Thank you! Found out! From: Andreas Rudisch To: Dánielisz László Cc: freebsd-questions@freebsd.org Sent: Tue, November 10, 2009 4:04:27 PM Subject: Re: pppoe related On Tue, 10 Nov 2009 06:52:22 -0800 (PST) Dánielisz László wrote: > What do you use to keep alive your FreeBSD pppoe connection client even if > there is no traffic? What do you set to reconnect the pppoe client > automaticaly on any disconnection? man ppp -ddial Andreas -- GnuPG key : 0x2A573565|http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 ___ 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: pppoe related
On Tue, 10 Nov 2009 06:52:22 -0800 (PST) Dánielisz László wrote: > What do you use to keep alive your FreeBSD pppoe connection client even if > there is no traffic? What do you set to reconnect the pppoe client > automaticaly on any disconnection? man ppp -ddial Andreas -- GnuPG key : 0x2A573565|http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 pgpkFUClUr3Pn.pgp Description: PGP signature
pppoe related
Hi, What do you use to keep alive your FreeBSD pppoe connection client even if there is no traffic? What do you set to reconnect the pppoe client automaticaly on any disconnection? Thank you! László ___ 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: PPPoE client+pf+nat
On Tue, 27 Oct 2009 06:51:26 -0700 (PDT) Dánielisz László wrote: > Hello, > > I am looking to configure my FreeBSD 8.0 machine for the purpose > specified in the subject. Let's say I have two NICs in my PC: ext_if > (for wan/pppoe connection) and int_if for my LAN. How would you > manage to get work NAT with pf using PPPoE from my ISP; I'd like to > use DHCP on my LAN. PPPoE is documented in the handbook, I'd suggest you set that up first together with a simple pf firewall to secure the system. There are plenty of howtos for PF+NAT+DHCP. I would suggest you also run a DNS cache so dhcp clients can be given a fixed private IP address instead of the ISP servers. FWIW you may not actually need two NICs, if you have a modem/router with multiple ports you may be able to get away with PPPoE and your lan sharing the same NIC (your wan interface being tun0). ___ 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: PPPoE client+pf+nat
On Tue, 27 Oct 2009 06:51:26 -0700 (PDT) Dánielisz László wrote: > Let's say I have two NICs in my PC: ext_if (for wan/pppoe connection) and > int_if for my LAN. > How would you manage to get work NAT with pf using PPPoE from my ISP As a start your pf.conf could look a bit like this: # ext_if = "tun0" int_if = "em1" localnet = $int_if:network set block-policy return set skip on lo0 scrub in all nat on $ext_if from $localnet to any -> ($ext_if) antispoof for ($ext_if) antispoof for $int_if block in log all pass inet from { lo0, $localnet } to any pass out on $ext_if all # Andreas -- GnuPG key : 0x2A573565|http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 pgpxqmJCP5t4d.pgp Description: PGP signature
Re: PPPoE client+pf+nat
On Tue, 27 Oct 2009 06:51:26 -0700 (PDT), Dánielisz László wrote: > Hello, > > I am looking to configure my FreeBSD 8.0 machine for the purpose specified in > the subject. > Let's say I have two NICs in my PC: ext_if (for wan/pppoe connection) and > int_if for my LAN. > How would you manage to get work NAT with pf using PPPoE from my ISP; I'd > like to use DHCP on my LAN. It's quite easy, I did this in the past with FreeBSD 5. 1. PPPoE Setup /etc/ppp/ppp.conf with the correct data for your ISP. It woule be like this: : set device PPPoE: set authname set authkey set dial set login add default HISADDR In /etc/rc.conf, enter ifconfig_="up" ppp_enable="YES" ppp_profile="" ppp_mode="ddial" ppp_nat="YES" for the external interface, and for the internal one: ifconfig_="inet 192.168.100.1 netmask 0xff00" (or any other subnet definition you like) dhcpd_enable="YES" dhcpd_conf="/usr/local/etc/dhcpd.conf" dhcpd_ifaces="" dhcpd_flags="-q" Keep in mind that you have to load netgraph_load="YES" ng_ether_load="YES" ng_pppoe_load="YES" ng_socket_load="YES" per /boot/loader.conf in order to enable the Netgraph subsystem. I think tho 2. PF - Sorry, I'm not familiar with PF, I always used IPFW. So I had the rule add divert natd ip from any to any via prior to the other rules that formed a setting to be described as: "Only allow those (named) ports for connections, disallow anything else." 3. DHCP --- Install the ISC DHCP server from ports and configure the settings for the local network as intended. THis is usually done in /usr/local/etc/dhcpd.conf with a content like this: option domain-name-servers ; ddns-update-style none; subnet 192.168.100.0 netmask 255.255.255.0 { range 192.168.100.2 192.168.100.250; option routers 192.168.100.1; } You can add "host" entries for "well-known" so they always get the same IP according to their MAC, and "deny unknown-clients;" to force MAC knowledge. Since I ran this setting in v5, kernel configuration required to have options DUMMYNET options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT in the file. I'm sure this is not needed anymore, because there are modules for this. Of course, you can include the options for NETGRAPH here, too. IMPORTANT NOTE: I'm not using such a setting anymore, so I'm not sure if this is still recommended or even working on v8. -- Polytropon 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"
PPPoE client+pf+nat
Hello, I am looking to configure my FreeBSD 8.0 machine for the purpose specified in the subject. Let's say I have two NICs in my PC: ext_if (for wan/pppoe connection) and int_if for my LAN. How would you manage to get work NAT with pf using PPPoE from my ISP; I'd like to use DHCP on my LAN. Thank you for you ideas! Laci ___ 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: PPPoE server (high traffic in WDM network)
Hi, I've little off topic suggestion regarding network design. The solution you are implementing will mean to make hundreds of users share the same broadcast domain. As all your FTTH and other DSLAMS would be working in bridge mode. This scenerio is not safe as if anyone of your clients will start his own pppoe server you will be in strange trouble, there can be other issues too. I guess your DSLAMs must have built in pppoe support and radius client, if its there then every port of dslams can be separate broadcast domain. This will cause you extra routing management (depending upon your scsnerio) In case your DSLAMS have no pppoe feature then i would suggest you to at least put every DSLAM's uplink port in deparate VLAN and connect pppoe server using trunk port or multiple single ports. And before implementing this solution consult your DSLAM vendor cause ive observed problems in ipdslams when used in bridge/transperant mode. Regards usman --- On Wed, 7/15/09, Michelle Konzack wrote: From: Michelle Konzack Subject: PPPoE server (high traffic in WDM network) To: freebsd-questions@freebsd.org, freebsd-...@freebsd.org Date: Wednesday, July 15, 2009, 11:40 PM Hello, I am using since over 10 years Debian GNU/Linux and 3 years longer NetBSD. Also I have a running PicoBSD box. Now I have a problem more grave... I am ongoing to install a CWDM (1GE) and DWDM (10GE) network for the Alvarion BreezeACCESS VL (38 base stations) and more then 200 Iskratel FTTH DSLAMS of 96 ports (each with 100MBit, but only one 1GE Upstream) each. What I now need are a PPPoE Severs (round-robin and loadbalancing) which must work using FreeRadius and PostgreSQL. There was someone on the which has suggested me to use FreeBSD, because the PPPoE it is already build to authenticate against Radius. So, what I like to know is, if I have a 1GE and 10GE network, how many clients can one PPPoE Server handel and what are the CPU/Memory requirements? There is a little problem to get small but reliabel Servers with TWO 10GE interfaces. I think, consumer mainboards are not suitabel even someone told me under Linux, I need 2 MHz CPU-Speed and 2 MByte of Memory per client... Please note, that I am ongoing ISP with over 150.000 customers in DE between Freiburg and Karlsruhe (Baden-Württemberg) and using consumer mainboards is NOT reliabel since in the last 6 years I lost at least 20 per year in 280 Low-Cost Servers. A "Sun Fire X4100M2" would be more reliabel... but even the smallest CPU would be overkill because the machine has only 1GE interfaces. Any suggestions? Note 1: Even if I use a Sun Fire, I would prefer a microBSD running from an industrial SD/CF card. Note: Please do NOT CC me, I am on the list and read it... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> c/o Vertriebsp. KabelBW <http://www.flexray4linux.org/> Blumenstrasse 2 Jabber linux4miche...@jabber.ccc.de 77694 Kehl/Germany IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886 Tel. FR: +33 6 61925193 ___ freebsd-...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-isp To unsubscribe, send any mail to "freebsd-isp-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"
PPPoE server (high traffic in WDM network)
Hello Michelle, I think you better ask about the performance you should expect out of a PPPoE server on the mpd forum. There people on the forum with real numbers. If I go with 1 U Sun Fire X4100M2 the Opteron has 4 Cores and 4 threads per core (AFAIK there is a 8 threads version too) I would ask about this as well. i386? amd64? number of cores? http://sourceforge.net/forum/forum.php?forum_id=44693 HTH, Nikos ___ 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: PPPoE server (high traffic in WDM network)
Hello Nikos, Hi, I just saw your answer while browsing. I am not on i...@... Please CC questi...@. Am 2009-07-16 12:27:06, schrieb Nikos Vassiliadis: Michelle Konzack wrote: I am ongoing to install a CWDM (1GE) and DWDM (10GE) network for the Alvarion BreezeACCESS VL (38 base stations) and more then 200 Iskratel FTTH DSLAMS of 96 ports (each with 100MBit, but only one 1GE Upstream) each. So, you'll have 96*200 possible PPP clients. How many concurrent PPP sessions do you care to support? And more importantly, how much aggregate bandwidth? Because the customers are permanently On-Line du to the VoIP-Telephone, we count with the full number of clients... The distance between the FTTH DSLAM and the customers can be up to 10km. The idea is now, that we do not simply connect the FTTH DSLAM's to the CISCO switches but building a redunant Ethernet Carrier Network. This mean, we can install in each village there own FTTH DSLAM even if there are 2500 hausholds and we install 26 FTTH DSLAM's there. This mean in theorie 250 GBit Customer Downstream, 26 Gbit Upstream but we count with a 10 GE which is maybe used to 30-50%. OK, if we switch to an "Ethernet Carrier Network" I could install one or two PPPoE Servers in each village. But if one goes down, the second has to handel 2500 client connections. I *think* the number of clients is doable. I don't know about the bandwidth. Note: This is ONLY the base installation between Kehl, Rheinau, Renchen and Oberkirch (arround 35.000 hausholds) and the whole region has 150.000 hausholds. Don't understand what you mean round-robin and loadbalancing? Read below. FreeBSD has a RADIUS library in base. The two notable users of libradius are ppp and net/mpd. The only choice in a ISP environment I think is the net/mpd5 port. Read the outline here: http://www.freebsd.org/cgi/url.cgi?ports/net/mpd5/pkg-descr It is very good and is actually used in large setups. Thankyo for the link, I will red on if I am in Office... Can't reply, but keep in mind that filling a 10GE pipe is a hard task on its own. It depends on how many customers you have and with an Internet access of 100 Mbit plus services like IPTV and VOD you can fill up a 10 GE pipe. I meant "filling a 10 Gbit pipe with a general purpose computer architecture is a hard task". Packet forwarding at these rates is tricky. I *think* having more low fidelity BRASs, will serve your needs better that a few high fidelity ones. You mean, putting a bunch of small 1U Servers into a 19" 42RU? Yes, you may find that having two small boxes instead of bigger one gives better results performance-wise. You also have to test if SMP helps and how much. A beast with 16 cores is more powerful from a regular computer with 2 cores, but does it help in your setup? You can try NanoBSD and TinyBSD which are FreeBSD based and I believe can fit the bill. These two run with their filesystems read-only mounted which is ideal for flash memories. Can you recomment it for an ISP setup? It's FreeBSD running from a read-only mounted medium. No more, no less. Yes, it's fine for an ISP setup. Hmmm, I am right, that NanoBSD can be bootup over network? (this would be another solution) NanoBSD is meant to run in embedded stand-alone devices. So, I *guess* that is conceptually very far from net booting. Nikos ___ 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: PPPoE server (high traffic in WDM network)
Michelle Konzack wrote: I am ongoing to install a CWDM (1GE) and DWDM (10GE) network for the Alvarion BreezeACCESS VL (38 base stations) and more then 200 Iskratel FTTH DSLAMS of 96 ports (each with 100MBit, but only one 1GE Upstream) each. So, you'll have 96*200 possible PPP clients. How many concurrent PPP sessions do you care to support? And more importantly, how much aggregate bandwidth? What I now need are a PPPoE Severs (round-robin and loadbalancing) which must work using FreeRadius and PostgreSQL. Don't understand what you mean round-robin and loadbalancing? Read below. There was someone on the which has suggested me to use FreeBSD, because the PPPoE it is already build to authenticate against Radius. FreeBSD has a RADIUS library in base. The two notable users of libradius are ppp and net/mpd. The only choice in a ISP environment I think is the net/mpd5 port. Read the outline here: http://www.freebsd.org/cgi/url.cgi?ports/net/mpd5/pkg-descr It is very good and is actually used in large setups. So, what I like to know is, if I have a 1GE and 10GE network, how many clients can one PPPoE Server handel and what are the CPU/Memory requirements? Can't reply, but keep in mind that filling a 10GE pipe is a hard task on its own. I *think* having more low fidelity BRASs, will serve your needs better that a few high fidelity ones. [snipped] Note 1: Even if I use a Sun Fire, I would prefer a microBSD running from an industrial SD/CF card. MicroBSD seems OpenBSD based. Can't comment on this. You can try NanoBSD and TinyBSD which are FreeBSD based and I believe can fit the bill. These two run with their filesystems read-only mounted which is ideal for flash memories. Nikos ___ 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"
PPPoE server (high traffic in WDM network)
Hello, I am using since over 10 years Debian GNU/Linux and 3 years longer NetBSD. Also I have a running PicoBSD box. Now I have a problem more grave... I am ongoing to install a CWDM (1GE) and DWDM (10GE) network for the Alvarion BreezeACCESS VL (38 base stations) and more then 200 Iskratel FTTH DSLAMS of 96 ports (each with 100MBit, but only one 1GE Upstream) each. What I now need are a PPPoE Severs (round-robin and loadbalancing) which must work using FreeRadius and PostgreSQL. There was someone on the which has suggested me to use FreeBSD, because the PPPoE it is already build to authenticate against Radius. So, what I like to know is, if I have a 1GE and 10GE network, how many clients can one PPPoE Server handel and what are the CPU/Memory requirements? There is a little problem to get small but reliabel Servers with TWO 10GE interfaces. I think, consumer mainboards are not suitabel even someone told me under Linux, I need 2 MHz CPU-Speed and 2 MByte of Memory per client... Please note, that I am ongoing ISP with over 150.000 customers in DE between Freiburg and Karlsruhe (Baden-Württemberg) and using consumer mainboards is NOT reliabel since in the last 6 years I lost at least 20 per year in 280 Low-Cost Servers. A "Sun Fire X4100M2" would be more reliabel... but even the smallest CPU would be overkill because the machine has only 1GE interfaces. Any suggestions? Note 1: Even if I use a Sun Fire, I would prefer a microBSD running from an industrial SD/CF card. Note: Please do NOT CC me, I am on the list and read it... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> c/o Vertriebsp. KabelBW <http://www.flexray4linux.org/> Blumenstrasse 2 Jabber linux4miche...@jabber.ccc.de 77694 Kehl/Germany IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 ___ 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: PPPoE trouble handshaking
budsz wrote: On Thu, Jun 25, 2009 at 9:03 PM, Nikos Vassiliadis wrote: budsz wrote: On Thu, Jun 25, 2009 at 3:53 PM, Nikos Vassiliadis wrote: budsz wrote: I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as bridging to my box. Could you run "tcpdump -ni rl1" while trying and post it to the list? If problem appear, I will do it. This problem not regularly, I got the same problem 2 week ago and today. I don't know what happen exactly, but I can dialing again after 3 hours. So, your configuration works, but at times it gets disconnected. And when that disconnection happens, it fails to re-connect. That means that if you pull the modem's power plug, you'll be able to establish a connection after some time and not immediately, right? 1) You should also "enable echo" along with "enable lqr". When you pull the FreeBSD's ethernet plug does it work? 2) You should watch the logs and wait for it to disconnect, plug the ethernet in and wait to re-connect on its own. 3) Then you should try the same with the DSL line, pull the plug from the modem and it should behave the same way, that is disconnect and re-connect on its own. Do these three steps and if everything works, wait for the random disconnection to happen. It should behave the same way. tcpdump is your friend while trying the above. OK, dud. Right now I got some problem here output tcpdump -ni rl1: 20:14:58.764661 PPPoE PADO [Host-Uniq 0x009043C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:14:58.864426 PPPoE PADO [Host-Uniq 0x009043C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:00.799157 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:00.799165 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:04.014864 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:04.031335 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:05.905186 PPPoE PADI [Host-Uniq 0xC05C5CC2] [Service-Name] 20:15:05.905193 PPPoE PADI [Host-Uniq 0xC05C5CC2] [Service-Name] 20:15:08.964978 PPPoE PADO [Host-Uniq 0xC05C5CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:09.064289 PPPoE PADO [Host-Uniq 0xC05C5CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:11.011223 PPPoE PADI [Host-Uniq 0x008922C2] [Service-Name] 20:15:11.011231 PPPoE PADI [Host-Uniq 0x008922C2] [Service-Name] 20:15:14.164175 PPPoE PADO [Host-Uniq 0x008922C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:14.181137 PPPoE PADO [Host-Uniq 0x008922C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:16.117251 PPPoE PADI [Host-Uniq 0xC0595CC2] [Service-Name] 20:15:16.117259 PPPoE PADI [Host-Uniq 0xC0595CC2] [Service-Name] 20:15:19.248075 PPPoE PADO [Host-Uniq 0xC0595CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:19.264056 PPPoE PADO [Host-Uniq 0xC0595CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:22.367294 PPPoE PADI [Host-Uniq 0x007D22C2] [Service-Name] 20:15:22.367302 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:22.367311 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:25.464788 PPPoE PADO [Host-Uniq 0x007D22C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:25.480781 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:25.497286 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:27.473336 PPPoE PADI [Host-Uniq 0x805B5CC2] [Service-Name] Does this goes on for 3 hours? I see nothing strange above, except that it goes no further than the PADI/PADO sequence. Do you have any firewall rules? I would suggest asking your ISP about this strange phenomenon. Nikos ___ 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: PPPoE trouble handshaking
On Thu, Jun 25, 2009 at 9:03 PM, Nikos Vassiliadis wrote: > budsz wrote: >> >> On Thu, Jun 25, 2009 at 3:53 PM, Nikos Vassiliadis >> wrote: >>> >>> budsz wrote: >>>> >>>> I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as >>>> bridging to my box. >>> >>> Could you run "tcpdump -ni rl1" while trying and post >>> it to the list? >> >> If problem appear, I will do it. This problem not regularly, I got the >> same problem 2 week ago and today. I don't know what happen exactly, >> but I can dialing again after 3 hours. > > So, your configuration works, but at times it gets disconnected. > And when that disconnection happens, it fails to re-connect. That > means that if you pull the modem's power plug, you'll be able to > establish a connection after some time and not immediately, right? > > 1) You should also "enable echo" along with "enable lqr". > > When you pull the FreeBSD's ethernet plug does it work? > 2) You should watch the logs and wait for it to disconnect, plug > the ethernet in and wait to re-connect on its own. > > 3) Then you should try the same with the DSL line, pull the plug > from the modem and it should behave the same way, that is > disconnect and re-connect on its own. > > Do these three steps and if everything works, wait for the > random disconnection to happen. It should behave the same way. > > tcpdump is your friend while trying the above. OK, dud. Right now I got some problem here output tcpdump -ni rl1: 20:14:58.764661 PPPoE PADO [Host-Uniq 0x009043C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:14:58.864426 PPPoE PADO [Host-Uniq 0x009043C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:00.799157 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:00.799165 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:04.014864 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:04.031335 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:05.905186 PPPoE PADI [Host-Uniq 0xC05C5CC2] [Service-Name] 20:15:05.905193 PPPoE PADI [Host-Uniq 0xC05C5CC2] [Service-Name] 20:15:08.964978 PPPoE PADO [Host-Uniq 0xC05C5CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:09.064289 PPPoE PADO [Host-Uniq 0xC05C5CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:11.011223 PPPoE PADI [Host-Uniq 0x008922C2] [Service-Name] 20:15:11.011231 PPPoE PADI [Host-Uniq 0x008922C2] [Service-Name] 20:15:14.164175 PPPoE PADO [Host-Uniq 0x008922C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:14.181137 PPPoE PADO [Host-Uniq 0x008922C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:16.117251 PPPoE PADI [Host-Uniq 0xC0595CC2] [Service-Name] 20:15:16.117259 PPPoE PADI [Host-Uniq 0xC0595CC2] [Service-Name] 20:15:19.248075 PPPoE PADO [Host-Uniq 0xC0595CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:19.264056 PPPoE PADO [Host-Uniq 0xC0595CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:22.367294 PPPoE PADI [Host-Uniq 0x007D22C2] [Service-Name] 20:15:22.367302 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:22.367311 PPPoE PADI [Host-Uniq 0x408612C2] [Service-Name] 20:15:25.464788 PPPoE PADO [Host-Uniq 0x007D22C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:25.480781 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:25.497286 PPPoE PADO [Host-Uniq 0x408612C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:15:27.473336 PPPoE PADI [Host-Uniq 0x805B5CC2] [Service-Name] tcpdump: WARNING: rl1: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on rl1, link-type EN10MB (Ethernet), capture size 96 bytes 20:16:18.533688 PPPoE PADI [Host-Uniq 0x009443C2] [Service-Name] 20:16:18.533695 PPPoE PADI [Host-Uniq 0x009443C2] [Service-Name] 20:16:18.968779 PPPoE [ses 0x197f] LCP, Conf-Request (0x01), id 92, length 21 20:16:21.662866 PPPoE PADO [Host-Uniq 0x009443C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:16:21.679340 PPPoE PADO [Host-Uniq 0x009443C2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Service-Name] 20:16:22.040825 PPPoE [ses 0x197f] LCP, Conf-Request (0x01), id 92, length 21 20:16:23.639726 PPPoE PADI [Host-Uniq 0x005B5CC2] [Service-Name] 20:16:23.639733 PPPoE PADI [Host-Uniq 0x005B5CC2] [Service-Name] 20:16:25.138200 PPPoE [ses 0x197f] LCP, Conf-Request (0x01), id 92, length 21 20:16:26.762773 PPPoE PADO [Host-Uniq 0x005B5CC2] [AC-Name "BRAS-D3-BDG-8Y224150703147"] [Se
Re: PPPoE trouble handshaking
budsz wrote: On Thu, Jun 25, 2009 at 3:53 PM, Nikos Vassiliadis wrote: budsz wrote: I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as bridging to my box. Could you run "tcpdump -ni rl1" while trying and post it to the list? If problem appear, I will do it. This problem not regularly, I got the same problem 2 week ago and today. I don't know what happen exactly, but I can dialing again after 3 hours. So, your configuration works, but at times it gets disconnected. And when that disconnection happens, it fails to re-connect. That means that if you pull the modem's power plug, you'll be able to establish a connection after some time and not immediately, right? 1) You should also "enable echo" along with "enable lqr". When you pull the FreeBSD's ethernet plug does it work? 2) You should watch the logs and wait for it to disconnect, plug the ethernet in and wait to re-connect on its own. 3) Then you should try the same with the DSL line, pull the plug from the modem and it should behave the same way, that is disconnect and re-connect on its own. Do these three steps and if everything works, wait for the random disconnection to happen. It should behave the same way. tcpdump is your friend while trying the above. HTH, Nikos ___ 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: PPPoE trouble handshaking
On Thu, Jun 25, 2009 at 3:53 PM, Nikos Vassiliadis wrote: > budsz wrote: >> >> I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as >> bridging to my box. > > Could you run "tcpdump -ni rl1" while trying and post > it to the list? If problem appear, I will do it. This problem not regularly, I got the same problem 2 week ago and today. I don't know what happen exactly, but I can dialing again after 3 hours. Thank You. -- budsz ___ 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: PPPoE trouble handshaking
budsz wrote: I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as bridging to my box. Could you run "tcpdump -ni rl1" while trying and post it to the list? Nikos ___ 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"
PPPoE trouble handshaking
Hi, I got problem with FreeBSD 7.2-STABLE as router. I use TPLINK modem as bridging to my box. here is my /etc/ppp/ppp.conf: default: #set log Phase Chat LCP IPCP CCP tun command #set log all set log Phase tun command speedy: set device PPPoE:rl1 set authname xx...@isp.net set authkey x set dial set login set cd 5 set crtscts off add default HISADDR set timeout 0 # 3 minute idle timer (the default) # no idle time out, will not disconnect set mru 1492 set mtu 1492 set speed sync enable lqr set lqrperiod 5 enable mssfixup # For noisy lines, we may want to reconnect (up to 20 times) after loss # of carrier, with 3 second delays between each attempt: # #set reconnect 3 20 set redial 0 0 I try to use -ddial mode with ppp(8). Here is log problem /var/log/ppp.log: Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: Disconnected! Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: carrier -> hangup Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: 0 packets in, 0 packets out Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Jun 25 11:59:56 2009 Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: hangup -> opening Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: Enter pause (0) for redialing. Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: Connected! Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: opening -> dial Jun 25 12:00:01 rtr-gw ppp[346]: tun0: Phase: deflink: dial -> carrier Jun 25 12:00:06 rtr-gw ppp[346]: tun0: Phase: deflink: Disconnected! And, with full debug mode: Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: Begin of Timer Service List--- Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: physical throughput timer[0x28412068]: freq = 1.00s, next = 0.00s, state = running Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: End of Timer Service List --- Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: timer_Start: Inserting physical throughput timer[0x28412068] Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: Disconnected! Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: carrier -> hangup Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Debug: deflink: Close Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: 0 packets in, 0 packets out Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Jun 25 11:24:27 2009 Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: hangup -> opening Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: timer_Start: Inserting dial timer[0x28410d44] Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Phase: deflink: Enter pause (0) for redialing. Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Timer: Select returns -1 Jun 25 11:24:32 rtr-gw ppp[3090]: tun0: Chat: deflink: Redial timer expired. Anyone know this problem.. my box very hard to negotiation with my ISP. Thank You -- budsz ___ 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: pppoe routing problem, default route isnt used for some hosts
Hello Nikos, thank you very much Nikos "You've repaired my internet" ,) On Fri, May 29, 2009 at 06:56:49PM +0300, Nikos Vassiliadis wrote: > Fabian Holler wrote: > > I have an strange routing problem. I can't connect to some hosts in the > > internet till I add an explicit route for this hosts with my default gw > > as gateway. > > There aren't any other routes that could match the destination IP for > > "non-working hosts". So the connection should also without an explicit > > route for this Hosts use the default gw. > Besides netstat -rn, you can use "route get southparkstudios.com" > to check a route for a destination. > > > Connections with nc to port 80 works > > (the connections tests are made from the router, the iface MTUs are correct) > > You cannot test MTU settings using nc, since initial packets, that > is, small packets, are always smaller than your MTU. You can test > MTU using fetch or ftp or nc + "GET /some.big.file". I only tried to say, that the connection problems couldn't be an MTU problem. Because I tried to connect from the router(where the PPPOE iface should have the correct MTU) and not from any LAN-Host. > > PPPoE: > > new -i ng0 PPPoE PPPoE > > set iface addrs 1.1.1.1 2.2.2.2 > > Maybe you should delete the above line as That was the problem:) I thought ip+netmask from the iface are arbitrary because they will be "overwritten" after I made an successfull connection. But the the crappy netmask was responsible for my problems > > set link mtu 1492 > > set link mru 1492 > > this is also wrong, don't try to set MTU > or MRU. There are negotiated during PPP. removed this also :) regards Fabian pgpksnt3OWbda.pgp Description: PGP signature
Re: pppoe routing problem, default route isnt used for some hosts
Fabian Holler wrote: Hello, I have an strange routing problem. I can't connect to some hosts in the internet till I add an explicit route for this hosts with my default gw as gateway. There aren't any other routes that could match the destination IP for "non-working hosts". So the connection should also without an explicit route for this Hosts use the default gw. My Setup: FreeBSD 7.2-RELEASE mppd to make an PPPOE connection to my internet service provider. PF as firewall To isolate the problem I used an minimal pf.conf: --- "inetif=ng0 lanif=vr0 scrub all max-mss 1492 pass quick on lo0 all pass out on $inetif proto { tcp udp icmp } all keep state" pass on $lanif from any to any --- I also tried pppd instead of mppd(dont helps). Hosts that I can't connect to, are ie spiegel.de, tagesschau.de, freebsd.org southparkstudios.com I.e TCP connections to Port 80 of southparkstudios.com dont work. If I add an explicit route: "route add southparkstudios.com 213.191.84.199" Besides netstat -rn, you can use "route get southparkstudios.com" to check a route for a destination. Connections with nc to port 80 works (the connections tests are made from the router, the iface MTUs are correct) You cannot test MTU settings using nc, since initial packets, that is, small packets, are always smaller than your MTU. You can test MTU using fetch or ftp or nc + "GET /some.big.file". Anybody have an idea what could be wrong? I have no idea anymore (its also not an provider problem, when i made the pppoe connection from windows I can connect to alls hosts) thanks for any hints:) best regards Fabian - My routing table: " # netstat -ra Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire defaultlo1.br04.weham.de. UGS 015505ng0 1.1.1.1&0x1010101 link#1 UC 00rl0 What is this ??? It looks like not-contiguous netmask? exxx45031.adsl.al lo0UHS 00lo0 localhost localhost UH 0 433lo0 192.168.113.0 link#2 UC 00vr0 xyz 00:30:18:ad:26:88 UHLW124005lo0 mail.xyz.ath.cx 00:30:18:ad:26:88 UHLW186400lo0 http.xyz.ath.cx 00:30:18:ad:26:88 UHLW1 770lo0 192.168.113.255ff:ff:ff:ff:ff:ff UHLWb 1 3228vr0 lo1.br04.weham.de. e176145031.adsl.al UH 10ng0 [... ipv6 stuff] " Interface infos: " # netstat -ira NameMtu Network Address Ipkts IerrsOpkts Oerrs Coll rl01492 00:02:2a:b0:4a:e0 26128479 0 19855993 0 0 01:00:5e:00:00:010 0 rl01492 1.1.1.1&0x101 1.1.1.1 0 - 2653 - - ALL-SYSTEMS.MCAST vr01500 00:30:18:ad:26:88 12662831 0 17678949 0 0 01:00:5e:00:00:01 2038 0 vr01500 192.168.113.0 xyz 9745471 - 13639692 - - ALL-SYSTEMS.MCAST vr01500 192.168.113.0 mail.xyz.a 291626 -86404 - - ALL-SYSTEMS.MCAST vr01500 192.168.113.0 http.xyz.a 6814 - 770 - - ALL-SYSTEMS.MCAST lo0 16384 113929 0 113929 0 0 lo0 16384 fe80:3::1 fe80:3::10 -0 - - ff01:3::1 (refs: 1) ff02:3::2:a61d:93b4(refs: 1) ff02:3::1 (refs: 1) ff02:3::1:ff00:1 (refs: 1) lo0 16384 localhost ::1 0 -0 - - ff01:3::1 (refs: 1) ff02:3::2:a61d:93b4(refs: 1) ff02:3::1 (refs: 1) ff02:3::1:ff00:1 (refs: 1) lo0 16384 your-net localhost 433 - 2433 - - ALL-SYSTEMS.MCAST pflog 332040 080567 0 0 tun0* 150078331 076381 0 0 tun99 1500 353 0 375 0 0 ng01492 17114096 0 13449463 0 0 ng01492 85.176.145.31 e176145031.adsl.a12398 -17011 - - ALL-SYSTEMS.MCAST " mpd.conf: " default: load PPPoE PPPoE: new -i ng0 PPPoE PPPoE set iface addrs 1.1.1.1 2.2.2.2 Maybe you should delete the above line as well. I dont remembere what "iface addrs" does, but you'll get the IP addresses via IPCP, so it&
pppoe routing problem, default route isnt used for some hosts
Hello, I have an strange routing problem. I can't connect to some hosts in the internet till I add an explicit route for this hosts with my default gw as gateway. There aren't any other routes that could match the destination IP for "non-working hosts". So the connection should also without an explicit route for this Hosts use the default gw. My Setup: FreeBSD 7.2-RELEASE mppd to make an PPPOE connection to my internet service provider. PF as firewall To isolate the problem I used an minimal pf.conf: --- "inetif=ng0 lanif=vr0 scrub all max-mss 1492 pass quick on lo0 all pass out on $inetif proto { tcp udp icmp } all keep state" pass on $lanif from any to any --- I also tried pppd instead of mppd(dont helps). Hosts that I can't connect to, are ie spiegel.de, tagesschau.de, freebsd.org southparkstudios.com I.e TCP connections to Port 80 of southparkstudios.com dont work. If I add an explicit route: "route add southparkstudios.com 213.191.84.199" Connections with nc to port 80 works (the connections tests are made from the router, the iface MTUs are correct) Anybody have an idea what could be wrong? I have no idea anymore (its also not an provider problem, when i made the pppoe connection from windows I can connect to alls hosts) thanks for any hints:) best regards Fabian - My routing table: " # netstat -ra Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire defaultlo1.br04.weham.de. UGS 015505ng0 1.1.1.1&0x1010101 link#1 UC 00rl0 exxx45031.adsl.al lo0UHS 00lo0 localhost localhost UH 0 433lo0 192.168.113.0 link#2 UC 00vr0 xyz 00:30:18:ad:26:88 UHLW124005lo0 mail.xyz.ath.cx 00:30:18:ad:26:88 UHLW186400lo0 http.xyz.ath.cx 00:30:18:ad:26:88 UHLW1 770lo0 192.168.113.255ff:ff:ff:ff:ff:ff UHLWb 1 3228vr0 lo1.br04.weham.de. e176145031.adsl.al UH 10ng0 [... ipv6 stuff] " Interface infos: " # netstat -ira NameMtu Network Address Ipkts IerrsOpkts Oerrs Coll rl01492 00:02:2a:b0:4a:e0 26128479 0 19855993 0 0 01:00:5e:00:00:010 0 rl01492 1.1.1.1&0x101 1.1.1.1 0 - 2653 - - ALL-SYSTEMS.MCAST vr01500 00:30:18:ad:26:88 12662831 0 17678949 0 0 01:00:5e:00:00:01 2038 0 vr01500 192.168.113.0 xyz 9745471 - 13639692 - - ALL-SYSTEMS.MCAST vr01500 192.168.113.0 mail.xyz.a 291626 -86404 - - ALL-SYSTEMS.MCAST vr01500 192.168.113.0 http.xyz.a 6814 - 770 - - ALL-SYSTEMS.MCAST lo0 16384 113929 0 113929 0 0 lo0 16384 fe80:3::1 fe80:3::10 -0 - - ff01:3::1 (refs: 1) ff02:3::2:a61d:93b4(refs: 1) ff02:3::1 (refs: 1) ff02:3::1:ff00:1 (refs: 1) lo0 16384 localhost ::1 0 -0 - - ff01:3::1 (refs: 1) ff02:3::2:a61d:93b4(refs: 1) ff02:3::1 (refs: 1) ff02:3::1:ff00:1 (refs: 1) lo0 16384 your-net localhost 433 - 2433 - - ALL-SYSTEMS.MCAST pflog 332040 080567 0 0 tun0* 150078331 076381 0 0 tun99 1500 353 0 375 0 0 ng01492 17114096 0 13449463 0 0 ng01492 85.176.145.31 e176145031.adsl.a12398 -17011 - - ALL-SYSTEMS.MCAST " mpd.conf: " default: load PPPoE PPPoE: new -i ng0 PPPoE PPPoE set iface addrs 1.1.1.1 2.2.2.2 set iface route default set iface enable on-demand set iface idle 0 set bundle disable multilink set bundle authname "xxy" set iface disable tcpmssfix set link no acfcomp protocomp set link disable pap chap set link accept chap set link mtu 1492 set link mru 1492 set link keep-alive 10 60 set ipcp yes vjcomp set iface enable tcpmssfix#I know pf also do this in my setup, but Iam despaired:) set ipcp ranges 0.0.0.0/0 0.
Re: multiple PPPoE connections on one machine (DSL load balancing)
Jeff Croft wrote: Hello -- I'm configuring FreeBSD 7.1 as a router/load-balancer and I just got stuck. I know this sounds like a newbie question, but hear me out. I have three DSL line (AT&T in SF Bay Area, business class) connected via ethernet to the box, and one more ethernet connected to an internal network. The idea is to do some clever kind of load-balancing and/or logging of DSL connections using pf. All three DSL lines are configured to use PPPoE. I can successfully bring any one of them up individually, but when I try to bring more than one up, using either ppp or mpd5, I get an error that looks like this (example from ppp): ppp : tun0: Warning: iface add: ioctl(SIOCAIFADDR, X.X.X.X -> D.D.D.D ): File exists and then the 2nd link goes down. mpd5 says the same thing, but the error is slightly different. For all three point-to-point links the remote side of the point to point (D.D.D.D) is always the same IP address, so naturally it doesn't want to add multiple routing table entries which point to the same destination. The vendor claims to be unable to change the value of D.D.D.D because "everyone in your region has the same remote address." They also don't support mlppp, so multilink is out. Did you try multilink PPP? they might not support, but it may work anyway... Also, I would like easy, real-time, programmatic access to the IP address of each individual DSL line. So far, I've thought of the following workarounds: 1. Use cheap linksys boxen to hang off each DSL line so the FreeBSD network stack doesn't have to do the PPPoE. I'm concerned that they'll be able to handle the volume of individual connections I'm planning on, even with the firmware replaced with something decent. Plus it's three extra devices on my network! 2. Use network virtualization such as this. I don't have any experience with it, but I'm guessing it would do everything I want. http://imunes.tel.fer.hr/virtnet/ Does anyone have any ideas how to solve this problem more elegantly? Not elegantly, but you can change the remote peer address to something else. That is: 1) Bring up tun0, you get from IPCP 1.1.1.1 -> 2.2.2.2 ifconfig tun0 1.1.1.1 3.3.3.3 2) Bring up tun1, you get 1.1.1.2 -> 2.2.2.2 ifconfig tun1 1.1.1.2 4.4.4.4 3) Bring up tun2, you get 1.1.1.3 -> 2.2.2.2 The result will be: tun0 1.1.1.1 3.3.3.3 tun1 1.1.1.2 4.4.4.4 tun2 1.1.1.3 2.2.2.2 You'll need to write a custom script, to modify the addresses, I think both ppp and mpd can do that. Are you going to use pf's route-to to forward packets to all three interfaces? Since, the above hack doesn't "solve" the next hop problem. You can only have one next hop for each destination. On -CURRENT there is support for ECMP, which may be a complete and correct solution for this problem. HTH, Nikos ___ 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"
multiple PPPoE connections on one machine (DSL load balancing)
Hello -- I'm configuring FreeBSD 7.1 as a router/load-balancer and I just got stuck. I know this sounds like a newbie question, but hear me out. I have three DSL line (AT&T in SF Bay Area, business class) connected via ethernet to the box, and one more ethernet connected to an internal network. The idea is to do some clever kind of load-balancing and/or logging of DSL connections using pf. All three DSL lines are configured to use PPPoE. I can successfully bring any one of them up individually, but when I try to bring more than one up, using either ppp or mpd5, I get an error that looks like this (example from ppp): ppp : tun0: Warning: iface add: ioctl(SIOCAIFADDR, X.X.X.X -> D.D.D.D ): File exists and then the 2nd link goes down. mpd5 says the same thing, but the error is slightly different. For all three point-to-point links the remote side of the point to point (D.D.D.D) is always the same IP address, so naturally it doesn't want to add multiple routing table entries which point to the same destination. The vendor claims to be unable to change the value of D.D.D.D because "everyone in your region has the same remote address." They also don't support mlppp, so multilink is out. Also, I would like easy, real-time, programmatic access to the IP address of each individual DSL line. So far, I've thought of the following workarounds: 1. Use cheap linksys boxen to hang off each DSL line so the FreeBSD network stack doesn't have to do the PPPoE. I'm concerned that they'll be able to handle the volume of individual connections I'm planning on, even with the firmware replaced with something decent. Plus it's three extra devices on my network! 2. Use network virtualization such as this. I don't have any experience with it, but I'm guessing it would do everything I want. http://imunes.tel.fer.hr/virtnet/ Does anyone have any ideas how to solve this problem more elegantly? Thanks much, Jeff Croft Linux admin who is thrilled to have some FreeBSD time ___ 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"
ipfw + bridge + pppoe
Hi guys! Just wondering if any of you know how to filter traffic (PPPOE,TCP,IP) by the means of ipfw, on bridge with FreeBSD 7.x installed, in the case when all traffic passing through the bridge is encapsulated in PPPOE. Thanks. ___ 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: Kernel mode PPPoE or User mode PPPoE
RW writes: > On Sat, 19 Jul 2008 19:14:40 +0530 > ___ Ashish Shukla <[EMAIL PROTECTED]> wrote: >> Hi >> >> I wanted to know if I'm using user-mode PPPoE or kernel-mode PPPoE. >> I'm following the handbook[1] to setup my PPPoE interface. Is there >> any way I can figure out this ? > If you are starting it from the standard rc.d script, you are using > user ppp. > I think kernel ppp is a legacy feature that was used before the > kernel supported tun interfaces. I don't know of any reason for still > using it. Won't you get any speed improvements with PPP connection in kernel-mode PPP as compared to user-mode PPP ? > IIRC with kernel ppp you run pppd (note the d) as root, and the > interface shows-up as ppp0; with user ppp, you run ppp as any user, > and the interface shows-up as tun0. I use 'ppp -ddial my-adsl-provider' and it creates a 'tun0' interface. So this means I'm doing user-mode PPP. Thanks Ashish -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- pgpGvPds48tpW.pgp Description: PGP signature
Re: Kernel mode PPPoE or User mode PPPoE
On Sat, 19 Jul 2008 19:14:40 +0530 ___ Ashish Shukla <[EMAIL PROTECTED]> wrote: > Hi > > I wanted to know if I'm using user-mode PPPoE or kernel-mode PPPoE. > I'm following the handbook[1] to setup my PPPoE interface. Is there > any way I can figure out this ? If you are starting it from the standard rc.d script, you are using user ppp. I think kernel ppp is a legacy feature that was used before the kernel supported tun interfaces. I don't know of any reason for still using it. IIRC with kernel ppp you run pppd (note the d) as root, and the interface shows-up as ppp0; with user ppp, you run ppp as any user, and the interface shows-up as tun0. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Kernel mode PPPoE or User mode PPPoE
Hi I wanted to know if I'm using user-mode PPPoE or kernel-mode PPPoE. I'm following the handbook[1] to setup my PPPoE interface. Is there any way I can figure out this ? And what is the difference between kernel-mode PPP and user-mode PPP ? I'm running FreeBSD 7.0-RELEASE-p3 (amd64). References: [1] - http://www.freebsd.org/doc/handbook/pppoe.html TIA -- ·-- ·- ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- pgp70CdkS9uHK.pgp Description: PGP signature
Re: Slow internet conection with FreeBSD (PPPoE)
At 12:04 PM 6/26/2008, Andrei Brezan wrote: Derek Ragona wrote: At 01:17 PM 6/25/2008, Andrei Brezan wrote: Hello list :) I have a problem with my so called server, i'm using FreeBSD 7.0-RELEASE. I connect to it trough ssh because i'm not in that location. Everything is ok i'm using /usr/sbin/ppp to connect to the internet as i have a pppoe account with static ip from my ISP. The problem is that on the FreeBSD box i have download/upload speeds between 30k/s and 150k/s wich is really low. I've checked with a laptop(windows) at that location and i got a download/upload speed ~6MB/s (advertised by the ISP), so it's a really big difference. Here's my ppp.conf file: default: set log Phase rds: set device PPPoE:rl0: set mtu 1492 set mru 1492 set speed sync set authname "" set authkey "**" disable ipv6cp add! default HISADDR I've tried to play with several options here as: disable acfcomp protocomp deny acfcomp but with no result. Everything is ok except the speed. If there is anyone who can at least point me in the right direction please do so. P.S. I have to mention that i use pf as firewall but even with pfctl -d i get nowhere. Thanks in advace ... -- Andrei Brezan 310280 Arad - Romania email <[EMAIL PROTECTED]> I would first try replacing the ethernet with a better one. You's has a realtek which is about the worst. It is a cheap and easy thing to try. -Derek -- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean. Thank you for your reply. You were right, wasn't ppp related, changed the nic and no goes with 5~6MB/s. You are very welcome! Some of us have used so many different hardware pieces it is easy to spot the more problematic ones. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Slow internet conection with FreeBSD (PPPoE)
Derek Ragona wrote: At 01:17 PM 6/25/2008, Andrei Brezan wrote: Hello list :) I have a problem with my so called server, i'm using FreeBSD 7.0-RELEASE. I connect to it trough ssh because i'm not in that location. Everything is ok i'm using /usr/sbin/ppp to connect to the internet as i have a pppoe account with static ip from my ISP. The problem is that on the FreeBSD box i have download/upload speeds between 30k/s and 150k/s wich is really low. I've checked with a laptop(windows) at that location and i got a download/upload speed ~6MB/s (advertised by the ISP), so it's a really big difference. Here's my ppp.conf file: default: set log Phase rds: set device PPPoE:rl0: set mtu 1492 set mru 1492 set speed sync set authname "" set authkey "**" disable ipv6cp add! default HISADDR I've tried to play with several options here as: disable acfcomp protocomp deny acfcomp but with no result. Everything is ok except the speed. If there is anyone who can at least point me in the right direction please do so. P.S. I have to mention that i use pf as firewall but even with pfctl -d i get nowhere. Thanks in advace ... -- Andrei Brezan 310280 Arad - Romania email <[EMAIL PROTECTED]> I would first try replacing the ethernet with a better one. You's has a realtek which is about the worst. It is a cheap and easy thing to try. -Derek -- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean. Thank you for your reply. You were right, wasn't ppp related, changed the nic and no goes with 5~6MB/s. -- Andrei Brezan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Slow internet conection with FreeBSD (PPPoE)
At 01:17 PM 6/25/2008, Andrei Brezan wrote: Hello list :) I have a problem with my so called server, i'm using FreeBSD 7.0-RELEASE. I connect to it trough ssh because i'm not in that location. Everything is ok i'm using /usr/sbin/ppp to connect to the internet as i have a pppoe account with static ip from my ISP. The problem is that on the FreeBSD box i have download/upload speeds between 30k/s and 150k/s wich is really low. I've checked with a laptop(windows) at that location and i got a download/upload speed ~6MB/s (advertised by the ISP), so it's a really big difference. Here's my ppp.conf file: default: set log Phase rds: set device PPPoE:rl0: set mtu 1492 set mru 1492 set speed sync set authname "" set authkey "**" disable ipv6cp add! default HISADDR I've tried to play with several options here as: disable acfcomp protocomp deny acfcomp but with no result. Everything is ok except the speed. If there is anyone who can at least point me in the right direction please do so. P.S. I have to mention that i use pf as firewall but even with pfctl -d i get nowhere. Thanks in advace ... -- Andrei Brezan 310280 Arad - Romania email <[EMAIL PROTECTED]> I would first try replacing the ethernet with a better one. You's has a realtek which is about the worst. It is a cheap and easy thing to try. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Slow internet conection with FreeBSD (PPPoE)
Hello list :) I have a problem with my so called server, i'm using FreeBSD 7.0-RELEASE. I connect to it trough ssh because i'm not in that location. Everything is ok i'm using /usr/sbin/ppp to connect to the internet as i have a pppoe account with static ip from my ISP. The problem is that on the FreeBSD box i have download/upload speeds between 30k/s and 150k/s wich is really low. I've checked with a laptop(windows) at that location and i got a download/upload speed ~6MB/s (advertised by the ISP), so it's a really big difference. Here's my ppp.conf file: default: set log Phase rds: set device PPPoE:rl0: set mtu 1492 set mru 1492 set speed sync set authname "" set authkey "**" disable ipv6cp add! default HISADDR I've tried to play with several options here as: disable acfcomp protocomp deny acfcomp but with no result. Everything is ok except the speed. If there is anyone who can at least point me in the right direction please do so. P.S. I have to mention that i use pf as firewall but even with pfctl -d i get nowhere. Thanks in advace ... -- Andrei Brezan 310280 Arad - Romania email <[EMAIL PROTECTED]> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoe trick?
We(An ISP) have already established PPPoe internet connection and have many users. PPPoE...you mean that you are an established Internet Provider that supplies xDSL connections that require authentication to several users, to which your termination point resides on a FreeBSD box? I want my users to view our web site very first time of their web cruzing progress. Sure, whats the site? We can make sure of it. Is there any possibility of it? Absolutely. There are numerous solutions to this issue, but it would help significantly if you let us know what services you have running under the guidance of FreeBSD that you need help with. For instance, are you trying to hijack all of your user traffic destined for port 80 at the transport layer as soon as they log in? Any information regarding FreeBSD would be most beneficial. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PPPoe trick?
Dear All We(An ISP) have already established PPPoe internet connection and have many users. I want my users to view our web site very first time of their web cruzing progress. Is there any possibility of it? Thanx for your concern -- View this message in context: http://www.nabble.com/PPPoe-trick--tp16738055p16738055.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
On Mon, February 4, 2008 17:04, Jerry McAllister wrote: > On Mon, Feb 04, 2008 at 11:18:12AM -, Reinhold wrote: > > >>> > If you are connecting to the ISP it would be better not to > specify IP to let them be negotiated. How will I go ahead and set the static ips for both my wan connections? >>> >>> If IPs are static then provider itself will negotiate them every time >>> same. If you will specify them and provider will request another, >>> negotiation will fail. So I would not recommend you to specify them. >>> >> >> Hi >> I spoke to our ISP today. I asked them if they can set one of my ips as >> the main ip that will be assigned every time I dail in and they told me >> no they can't do it because of some security thing on there side :-S >> >> Basicaly how they explained it to me is because I have 5 ips, when we >> dail in we get assigned a dynamic ip and on top of that I have to >> manually set the 5 ips to what ever services I would like them to be >> used for. If I want my WAN2 connection to use one of the 5 ips I have to >> manually set it so that all my out going connections will be using that >> ip. > > Your ISP CAN do this. They just won't because they don't want to make it > easy for you to run a server. They want to suppress your use. You > might check with other ISPs or twist their arm more, or get a little more > sophisticated by letting DHCP set the IPs and have your domain registered > through one of the nameserver services that will allow you to reset the > info each time you boot. Then, there are some utilities you can get to > check what IP got set and then notify that nameserver service. > > I don't remember offhand the names of any of those services or the > utilities you can use to talk to them, but there are several and you can > just do a little searching for them. > > jerry Hi, I phoned them again, the first guy I spoke to didn't know what I wanted so after telling him to get me someone that I can talk to I was finally told that BT, our ISP does not support setting a static ip to a dsl line if you have 5 ips but, they do it when you have only 1 ip address. Weird I know. The guy then told me that if I need this type of support that I will have to go and find another ISP that does support this. How nice of them to tell me that. So I'm left with 5 ips that I need to some how set so that I can use them. Any help will be greatly apreasiated to get this working Regards Reinhold ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
On Mon, Feb 04, 2008 at 11:18:12AM -, Reinhold wrote: > > > >>> If you are connecting to the ISP it would be better not to specify IP > >>> to let them be negotiated. > >> > >> How will I go ahead and set the static ips for both my wan connections? > >> > > > > If IPs are static then provider itself will negotiate them every time > > same. If you will specify them and provider will request another, > > negotiation will fail. So I would not recommend you to specify them. > > > > Hi > I spoke to our ISP today. I asked them if they can set one of my ips as > the main ip that will be assigned every time I dail in and they told me no > they can't do it because of some security thing on there side :-S > > Basicaly how they explained it to me is because I have 5 ips, when we dail > in we get assigned a dynamic ip and on top of that I have to manually set > the 5 ips to what ever services I would like them to be used for. If I > want my WAN2 connection to use one of the 5 ips I have to manually set it > so that all my out going connections will be using that ip. Your ISP CAN do this. They just won't because they don't want to make it easy for you to run a server. They want to suppress your use. You might check with other ISPs or twist their arm more, or get a little more sophisticated by letting DHCP set the IPs and have your domain registered through one of the nameserver services that will allow you to reset the info each time you boot. Then, there are some utilities you can get to check what IP got set and then notify that nameserver service. I don't remember offhand the names of any of those services or the utilities you can use to talk to them, but there are several and you can just do a little searching for them. jerry > > For this reason I have changed my WAN2 settings to this in the config file. > set ipcp ranges my-first-static-ip/32 isp-gateway/32 > > I know you said its not recommended, but I need to use this ip and my isp > can't set that for me. Also once I have a use for the other ips, how can I > add them? Can I create ip aliases for ng1 in the same way I will normally > do by adding them to my rc.conf file? > > Thanks for all the help > Reinhold > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
> >>> If you are connecting to the ISP it would be better not to specify IP >>> to let them be negotiated. >> >> How will I go ahead and set the static ips for both my wan connections? >> > > If IPs are static then provider itself will negotiate them every time > same. If you will specify them and provider will request another, > negotiation will fail. So I would not recommend you to specify them. > Hi I spoke to our ISP today. I asked them if they can set one of my ips as the main ip that will be assigned every time I dail in and they told me no they can't do it because of some security thing on there side :-S Basicaly how they explained it to me is because I have 5 ips, when we dail in we get assigned a dynamic ip and on top of that I have to manually set the 5 ips to what ever services I would like them to be used for. If I want my WAN2 connection to use one of the 5 ips I have to manually set it so that all my out going connections will be using that ip. For this reason I have changed my WAN2 settings to this in the config file. set ipcp ranges my-first-static-ip/32 isp-gateway/32 I know you said its not recommended, but I need to use this ip and my isp can't set that for me. Also once I have a use for the other ips, how can I add them? Can I create ip aliases for ng1 in the same way I will normally do by adding them to my rc.conf file? Thanks for all the help Reinhold ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
> If IPs are static then provider itself will negotiate them every time > same. If you will specify them and provider will request another, > negotiation will fail. So I would not recommend you to specify them. > >> For wan1 I have one ip and for wan2 I have 5 ips >> > > Probably for wan2 you have one interface IP plus some network routed to > you. PPP protocol does not allows to negotiate routed network, so that > network probably should be configured by hands somewhere. > To be honest, I don't know why we have 5 ips on wan2, I have no need for them at all. It might be usefull once I register a proper domain for the office, but for now we are using no-ip.org and it is working just fine. What I do know is that if I disconnect let say wan2 for some time and then reconnect, I will be assigned an ip address on a total different subnet and it messes up everything, I have to manually set the ips in our router for them to be used, this is why I'm asking how I can set the ip addresses, on wan1 if I reboot the router where I haven't set the static ip, it does reconnect using the correct ip, but I have never disconnected this line for more the 1 minute. Right now I'm using wan1 for all our outgoing ftp, one site that doesn't like load balancing and incoming pptp connections, wan2 is used for outgoing https and ssh connections, incoming http and ssh connections is coming in on both wan1 and wan2 depending on which ip is registered at no-ip.org. All other outgoing connections are using both wan1 and wan2. All this I can do with PF, but I need to find a way to set the ips. > >> How does mpd5 assign the ng interfaces, in my previose cong there was a >> line new -i ng0 provider PPPoE0, does mpd5 do this automatically? > > Interfaces will be allocated by system in order of usage. WAN1 will be > ng0, WAN2 - ng1 and the PPTP link's interfaces will be allocated > dynamically on connect. I'm guesing here that because you have not specified any lines from my new config file that it should be working and thanks for explaining how it assignes ng interfaces. Regards Reinhold ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
Thanks for the reply. >> Here is what I've done so far. >> /usr/local/etc/mpd5/mpd.conf >> > > The config you have made probably suits to mpd3/4, but not to mpd5. Mpd5 > uses alike commands, but general configuration idea is different. There is > no mpd.links file in mpd5. Read new examples present in package. Thanks for that, I have added my new config file below. >> set ipcp ranges static-ip-0/32 isp-gateway-0/32 > > If you are connecting to the ISP it would be better not to specify IP to > let them be negotiated. How will I go ahead and set the static ips for both my wan connections? For wan1 I have one ip and for wan2 I have 5 ips I was orginally thinking of seting up proxy-arp to add the extra 4 ips on wan2 after connecting using the first ip, but now I'm not to sure anymore. We need these ips because some of the websites and servers that we manage are ip restricked for added security, this is also the reason why I have a pptp server for the people thats not in our office. Here is my new conf file. default: load wan1 load wan2 load pptp wan1: create bundle static WAN1 set iface route default set iface up-script /usr/local/etc/mpd/script-wan1.sh set iface down-script /usr/local/etc/mpd/script-wan1.sh set ipcp ranges 0.0.0.0/0 0.0.0.0/0 create link static L1 pppoe set link action bundle WAN1 set auth authname "[EMAIL PROTECTED]" set auth password "passwd" set pppoe iface fxp0 set pppoe service "BTConnect1" load common_setting wan2: create bundle static WAN2 set iface route default set iface up-script /usr/local/etc/mpd/script-wan2.sh set iface down-script /usr/local/etc/mpd/script-wan2.sh set ipcp ranges 0.0.0.0/0 0.0.0.0/0 create link static L2 pppoe set link action bundle WAN2 set auth authname "[EMAIL PROTECTED]" set auth password "passwd" set pppoe iface fxp1 set pppoe service "BTConnect2" load common_setting common_setting: set bundle disable multilink set link disable pap chap set link accept chap set link max-redial -1 set link mtu 1492 set link mru 1492 set link keep-alive 10 60 set ipcp yes vjcomp set ipcp enable req-sec-dns open pptp: set ippool add pool1 192.168.1.220 192.168.1.240 create bundle template B set iface enable proxy-arp set iface idle 1800 set iface enable tcpmssfix set ipcp yes vjcomp set ipcp ranges 192.168.1.1/32 ippool pool1 set ipcp dns 192.168.1.5 set bundle enable compression set ccp yes mppc set mppc yes e40 set mppc yes e128 set mppc yes stateless create link template L pptp set link action bundle B set link enable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 10 60 set link mtu 1460 set pptp self wan1-static-ip set link enable incoming How does mpd5 assign the ng interfaces, in my previose cong there was a line new -i ng0 provider PPPoE0, does mpd5 do this automatically? Thanks again for the help. Reinhold ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
Reinhold wrote: If you are connecting to the ISP it would be better not to specify IP to let them be negotiated. How will I go ahead and set the static ips for both my wan connections? If IPs are static then provider itself will negotiate them every time same. If you will specify them and provider will request another, negotiation will fail. So I would not recommend you to specify them. For wan1 I have one ip and for wan2 I have 5 ips Probably for wan2 you have one interface IP plus some network routed to you. PPP protocol does not allows to negotiate routed network, so that network probably should be configured by hands somewhere. I was orginally thinking of seting up proxy-arp to add the extra 4 ips on wan2 after connecting using the first ip, but now I'm not to sure anymore. proxy-arp is working only with Ethernet. If you are going to give that static IPs only to PPTP users - you probably don't need it. We need these ips because some of the websites and servers that we manage are ip restricked for added security, this is also the reason why I have a pptp server for the people thats not in our office. You can specify static IPs for those users in mpd.secret file. How does mpd5 assign the ng interfaces, in my previose cong there was a line new -i ng0 provider PPPoE0, does mpd5 do this automatically? Interfaces will be allocated by system in order of usage. WAN1 will be ng0, WAN2 - ng1 and the PPTP link's interfaces will be allocated dynamically on connect. -- Alexander Motin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mpd with a dual pppoe setup
Hi. Reinhold wrote: Here is what I've done so far. /usr/local/etc/mpd5/mpd.conf The config you have made probably suits to mpd3/4, but not to mpd5. Mpd5 uses alike commands, but general configuration idea is different. There is no mpd.links file in mpd5. Read new examples present in package. default: load wan1 load wan2 Then it would be reasonable to merge "pptpd:" section here. set ipcp ranges static-ip-0/32 isp-gateway-0/32 If you are connecting to the ISP it would be better not to specify IP to let them be negotiated. load common_setting wan2: new -i ng1 wan2 PPPoE1 set iface route default set iface up-script /usr/local/etc/mpd/script-wan2.sh set iface down-script /usr/local/etc/mpd/script-wan2.sh set bundle authname "[EMAIL PROTECTED]" set bundle password "passwd" set ipcp ranges static-ip-1/32 isp-gateway-1/32 load common_setting common_setting: set iface addrs 1.1.1.1 2.2.2.2 set iface disable on-demand Without "on-demand" "set iface addrs" is useless. set iface idle 0 This is default. # PPTP pt0: set link type pptp set pptp enable incoming set pptp disable originate set pptp disable windowing set pptp self 127.0.0.1 It will be difficult to accept incoming while listening on 127.0.0.1. -- Alexander Motin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mpd with a dual pppoe setup
Hi, I'm building a new router/firewall for my work, I have installed freebsd7 and updated it and compiled pf into the kernel and installed mpd5 for pppoe. Before I make this system life I would like your input on my mpd settings. We have 2 adsl lines and I want to use the new firewall to do load balancing between them. I've been searching all over the net to find out more about how I can use mpd for this but all I can find is single pppoe or mlppp conections, our isp does not support mlppp so thats not an option. PF will be used for the load balancing and I want to use ancors for when one of the dsl lines goes down. For now I have only configured mpd but I'm not sure if its done corectly, I can't test it because that will mean that I will have to take our current system off line and that is not an option. Here is what I've done so far. /usr/local/etc/mpd5/mpd.conf default: load wan1 load wan2 wan1: new -i ng0 provider PPPoE0 set iface route default set iface up-script /usr/local/etc/mpd/script-wan1.sh set iface down-script /usr/local/etc/mpd/script-wan1.sh set bundle authname "[EMAIL PROTECTED]" set bundle password "passwd" set ipcp ranges static-ip-0/32 isp-gateway-0/32 load common_setting wan2: new -i ng1 wan2 PPPoE1 set iface route default set iface up-script /usr/local/etc/mpd/script-wan2.sh set iface down-script /usr/local/etc/mpd/script-wan2.sh set bundle authname "[EMAIL PROTECTED]" set bundle password "passwd" set ipcp ranges static-ip-1/32 isp-gateway-1/32 load common_setting common_setting: set iface addrs 1.1.1.1 2.2.2.2 set iface disable on-demand set iface idle 0 set iface enable tcpmssfix set bundle disable multilink set link no acfcomp protocomp set link disable pap chap set link accept chap set link keep-alive 10 60 set link max-redial -1 set link mtu 1492 set link mru 1492 set ipcp yes vjcomp set ipcp enable req-sec-dns open iface # PPTP pptpd: load pt0 load pt1 load pt2 load pt3 load pt4 load pt5 load pt6 load pt7 load pt8 load pt9 load pt10 load pt11 load pt12 load pt13 load pt14 load pt15 pt0: new -i ng2 pt0 pt0 set ipcp ranges 192.168.2.1/32 192.168.1.240/32 load pts pt1: new -i ng3 pt1 pt1 set ipcp ranges 192.168.2.1/32 192.168.1.241/32 load pts pt2: new -i ng4 pt2 pt2 set ipcp ranges 192.168.2.1/32 192.168.1.242/32 load pts pt3: new -i ng5 pt3 pt3 set ipcp ranges 192.168.2.1/32 192.168.1.243/32 load pts pt4: new -i ng6 pt4 pt4 set ipcp ranges 192.168.2.1/32 192.168.1.244/32 load pts pt5: new -i ng7 pt5 pt5 set ipcp ranges 192.168.2.1/32 192.168.1.245/32 load pts pt6: new -i ng8 pt6 pt6 set ipcp ranges 192.168.2.1/32 192.168.1.246/32 load pts pt7: new -i ng9 pt7 pt7 set ipcp ranges 192.168.2.1/32 192.168.1.247/32 load pts pt8: new -i ng10 pt8 pt8 set ipcp ranges 192.168.2.1/32 192.168.1.248/32 load pts pt9: new -i ng11 pt9 pt9 set ipcp ranges 192.168.2.1/32 192.168.1.249/32 load pts pt10: new -i ng12 pt10 pt10 set ipcp ranges 192.168.2.1/32 192.168.1.250/32 load pts pt11: new -i ng13 pt11 pt11 set ipcp ranges 192.168.2.1/32 192.168.1.251/32 load pts pt12: new -i ng14 pt12 pt12 set ipcp ranges 192.168.2.1/32 192.168.1.252/32 load pts pt13: new -i ng15 pt13 pt13 set ipcp ranges 192.168.2.1/32 192.168.1.253/32 load pts pt14: new -i ng16 pt14 pt14 set ipcp ranges 192.168.2.1/32 192.168.1.254/32 load pts pt15: new -i ng17 pt15 pt15 set ipcp ranges 192.168.2.1/32 192.168.1.255/32 load pts pts: set iface disable on-demand set iface enable proxy-arp set iface enable tcpmssfix set iface idle 1800 set iface up-script /usr/local/sbin/vpn-linkup set iface down-script /usr/local/sbin/vpn-linkdown set bundle enable multilink set bundle enable crypt-reqd set link yes acfcomp protocomp set link no pap chap set link enable chap-msv2 set link mtu 1460 set link keep-alive 10 60 set ipcp yes vjcomp set bundle enable compression set ccp yes mppc set ccp yes mpp-e128 set ccp yes mpp-stateless set ipcp nbns set ipcp dns 208.67.220.220 208.67.222.222 /usr/local/etc/mpd5/mpd.links # mpd.
Re: user ppp and PPPoE bridging
On Thursday 25 October 2007 00:11:39 [EMAIL PROTECTED] wrote: > Oct 24 12:33:35 nightmare ppp[859]: tun0: Debug: deflink: PPPoE:ed1: > Cannot determine bandwidth > > I presume this is a result of the lost LQR packets. No, bandwidth isn't known to ppp. You can ignore this warning. There is no connection between LQR and bandwidth. > The above summary appears to indicate that line quality requests are > being transferred; so what's with the too many LQR packets lost message? Perhaps the peer does not accept LQR. Disable LQR. Disable echo as well. These settings provide some monitoring capabilities, but must be accepted by both peers. If for some reason(probably misconfiguration) these are not accepted by the other peer, things will not work... But, try disabling only LQR at first. > > Finally, > Where does the initial IP address used in the negotiation come from? > I did not specify specific IP address assignment, > yet the request appears to have asked for 12.32.36.65 > This is the IP of the other interface on the machine, > and my ppp.conf has no mention of it. It's not important. These IP addresses will be denied by the other peer during IPCP. The peer will then provide you an IP address and ppp will accept it. Hope this helps Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: user ppp and PPPoE bridging
Nikos Vassiliadis wrote: You said you had wrong encapsulation type. Did you make any progress? Yes. Changing the encapsulation type brought the line up, and things hobbled along... However, the line is dropped after a few minutes, apparently a result of not being able to determine line quality: Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: ** Too many LQR packets lost ** Oct 24 12:39:06 nightmare ppp[859]: tun0: LQM: deflink: Too many LQR packets lost Oct 24 12:39:06 nightmare ppp[859]: tun0: CCP: deflink: State change Stopped --> Closed Oct 24 12:39:06 nightmare ppp[859]: tun0: CCP: deflink: State change Closed --> Initial Oct 24 12:39:06 nightmare ppp[859]: tun0: LCP: deflink: LayerDown Oct 24 12:39:06 nightmare ppp[859]: tun0: LCP: deflink: State change Opened --> Starting Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: open -> lcp Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_UpdateMTU (5) Oct 24 12:39:06 nightmare ppp[859]: tun0: TCP/IP: route_UpdateMTU: Netif: 5 (tun0), dst 0.0.0.0/0, mtu 1500 Oct 24 12:39:06 nightmare ppp[859]: tun0: TCP/IP: route_UpdateMTU: Netif: 5 (tun0), dst 216.47.48.1, mtu 1500 Oct 24 12:39:06 nightmare ppp[859]: tun0: TCP/IP: route_UpdateMTU: Netif: 5 (tun0), dst ff01:5::/32, mtu 1500 Oct 24 12:39:06 nightmare ppp[859]: tun0: TCP/IP: route_UpdateMTU: Netif: 5 (tun0), dst ff02:5::/32, mtu 1500 Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: deflink: LayerDown: 12.32.44.142 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: ReadSystem: Can't open /etc/ppp/ppp.linkdown. Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: ReadSystem: Can't open /etc/ppp/ppp.linkdown. Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: ReadSystem: Can't open /etc/ppp/ppp.linkdown. Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: deflink: State change Opened --> Starting Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: deflink: LayerFinish. Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: Connect time: 331 secs: 2253 octets in, 1584 octets out Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: 24 packets in, 25 packets out Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: total 11 bytes/sec, peak 275 bytes/sec on Wed Oct 24 12:34:43 2007 Oct 24 12:39:06 nightmare ppp[859]: tun0: IPCP: deflink: State change Starting --> Initial Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: bundle: Terminate Oct 24 12:39:06 nightmare ppp[859]: tun0: LCP: deflink: LayerFinish Oct 24 12:39:06 nightmare ppp[859]: tun0: LCP: deflink: State change Starting --> Initial Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: Disconnected! Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: lcp -> logout Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: Disconnected! Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: logout -> hangup Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: deflink: Close Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: Connect time: 332 secs: 3044 octets in, 2789 octets out Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: 70 packets in, 77 packets out Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: total 17 bytes/sec, peak 315 bytes/sec on Wed Oct 24 12:34:46 2007 Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: deflink: hangup -> closed Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_IfDelete (5) Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found 0.0.0.0/0 216.47.48.1 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found 216.47.48.1 12.32.44.142 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found ff01:5::/32 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found ff02:5::/32 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found 0.0.0.0/0 216.47.48.1 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: wrote 124: cmd = Delete, dst = 0.0.0.0/0, gateway = Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found 216.47.48.1 12.32.44.142 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: wrote 108: cmd = Delete, dst = 216.47.48.1, gateway = Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found ff01:5::/32 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: wrote 148: cmd = Delete, dst = ff01:5::/32, gateway = Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: Found ff02:5::/32 Oct 24 12:39:06 nightmare ppp[859]: tun0: Debug: wrote 148: cmd = Delete, dst = ff02:5::/32, gateway = Oct 24 12:39:06 nightmare ppp[859]: tun0: Phase: bundle: Dead During initial protocol negotiation, it looks like come sort of compression is disallowed, but it doesn't seem like that should cause the line to be dropped later: Oct 24 12:33:35 nightmare ppp[859]: tun0: LCP: deflink: RecvProtocolRej(2)
Re: user ppp and PPPoE bridging
On Tuesday 23 October 2007 21:04:48 [EMAIL PROTECTED] wrote: > This is a zyxel 642r modem; I can't try my other modem, a cisco 678, > because it doesn't support a vci > 63. Oh cisco :) Be thankful to cisco for not creating other proprietary protocols to replace the existing ATM/DSL combination :) > > The modem is set to use VC-based multiplexing, vpi=0, vci=100 > These are the parameters used for PPPoE, and I presume are still > required as part of the ATM layer when bridging. > > I am assuming there should be no need for my ISP to be notified that I > am trying to use bridging in the modem, since it should be transparent > on their end. They claim not to support bridging, but I don't see how > they can say that, other than that they don't want to deal with the > support issues. Is this a reasonable assumption? My knowledge about ATM is minimal. So, I don't realy know how to answer to your question about bridging being transparent to the ISP. But I can tell you for sure that ISPs do not bother if you cannot connect using FreeBSD and PPPoE. You are mainly on your own. I assume that if you use the same settings your modem uses to do PPPoE it won't make a difference to the ISP end. You said you had wrong encapsulation type. Did you make any progress? > The packets are clearly reaching the modem, as it records them as > received. Can you also check the number of cells going out/coming in from the ATM interface? Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: user ppp and PPPoE bridging
To answer my own question: I had the mux type set wrong -- VC-based instead of LLC-based. While the line comes up, the session is never opened because of the mux mismatch. moving right along now... Gary The freebsd box is connected directly via ed1 to the dsl modem; a crossover cable is used; the packets are clearly reaching the modem, as it records them as received. I've simplified ppp.conf to the following, essentially the ppp.conf.sample: default: set log all -timer blackfoot: set device PPPoE:ed1 enable lqr echo set cd 5 set redial 0 0 set dial set login set authname set authkey add! default HISADDR #ifconfig ed1 ed1: flags=8943 mtu 1500 inet6 fe80::220:18ff:fe72:8b72%ed1 prefixlen 64 scopeid 0x3 ether 00:20:18:72:8b:72 #tcpdump -efntl -i ed1 tcpdump: WARNING: ed1: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ed1, link-type EN10MB (Ethernet), capture size 96 bytes 00:20:18:72:8b:72 > ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] 00:20:18:72:8b:72 > ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] It appears that no PADO reply is being received by the modem; the modem shows two packets being transmitted, but non being received. Since the line is marked as up by the modem, and since the line comes up properly when the modem is operating in full PPPoE mode, I'm puzzled as to what kind of mismatch could be preventing the ISP end from responding. This is a zyxel 642r modem; I can't try my other modem, a cisco 678, because it doesn't support a vci > 63. The modem is set to use VC-based multiplexing, vpi=0, vci=100 These are the parameters used for PPPoE, and I presume are still required as part of the ATM layer when bridging. I am assuming there should be no need for my ISP to be notified that I am trying to use bridging in the modem, since it should be transparent on their end. They claim not to support bridging, but I don't see how they can say that, other than that they don't want to deal with the support issues. Is this a reasonable assumption? Nikos Vassiliadis wrote: On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote: I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. ... I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: user ppp and PPPoE bridging
Hi Nikos, Thank you and rw for your replies. The freebsd box is connected directly via ed1 to the dsl modem; a crossover cable is used; the packets are clearly reaching the modem, as it records them as received. I've simplified ppp.conf to the following, essentially the ppp.conf.sample: default: set log all -timer blackfoot: set device PPPoE:ed1 enable lqr echo set cd 5 set redial 0 0 set dial set login set authname set authkey add! default HISADDR #ifconfig ed1 ed1: flags=8943 mtu 1500 inet6 fe80::220:18ff:fe72:8b72%ed1 prefixlen 64 scopeid 0x3 ether 00:20:18:72:8b:72 #tcpdump -efntl -i ed1 tcpdump: WARNING: ed1: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ed1, link-type EN10MB (Ethernet), capture size 96 bytes 00:20:18:72:8b:72 > ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] 00:20:18:72:8b:72 > ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] It appears that no PADO reply is being received by the modem; the modem shows two packets being transmitted, but non being received. Since the line is marked as up by the modem, and since the line comes up properly when the modem is operating in full PPPoE mode, I'm puzzled as to what kind of mismatch could be preventing the ISP end from responding. This is a zyxel 642r modem; I can't try my other modem, a cisco 678, because it doesn't support a vci > 63. The modem is set to use VC-based multiplexing, vpi=0, vci=100 These are the parameters used for PPPoE, and I presume are still required as part of the ATM layer when bridging. I am assuming there should be no need for my ISP to be notified that I am trying to use bridging in the modem, since it should be transparent on their end. They claim not to support bridging, but I don't see how they can say that, other than that they don't want to deal with the support issues. Is this a reasonable assumption? Nikos Vassiliadis wrote: On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote: I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. ... I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: user ppp and PPPoE bridging
On Mon, 22 Oct 2007 17:50:15 -0600 Gary Aitken <[EMAIL PROTECTED]> wrote: > I'm attempting to change a DSL link from using PPPoE in the DSL modem > to doing PPPoE on 6.1, with the modem in bridging mode. > > I've put the DSL modem in bridging mode, and it brings up the link > properly -- or at least it reports it as up (DSL led steady; modem > status report shows it as up, rfc 1483. > > Using user ppp, when I attempt to establish the PPPoE connection, I > never get very far -- ppp dies when it tries to acquire carrier. I > don't understand this, as there isn't a carrier signal to acquire on > an ethernet. I tried disabling cd in ppp.conf but as noted in the > doc, it's required for a PPPoE connection and is forced on. > I'd try simplifying a bit, this is my ppp.conf file default: set log Phase tun command adsl: set device PPPoE:vr0 set authname ** set authkey *** add default HISADDR # DNS configured manually # enable dns ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: user ppp and PPPoE bridging
On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote: > I'm attempting to change a DSL link from using PPPoE in the DSL modem > to doing PPPoE on 6.1, with the modem in bridging mode. > > I've put the DSL modem in bridging mode, and it brings up the link > properly -- or at least it reports it as up (DSL led steady; modem > status report shows it as up, rfc 1483. > > Using user ppp, when I attempt to establish the PPPoE connection, I > never get very far -- ppp dies when it tries to acquire carrier. I > don't understand this, as there isn't a carrier signal to acquire on > an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. > I tried disabling cd in ppp.conf but as noted in the doc, > it's required for a PPPoE connection and is forced on. > > Also, how do I know know which interface it is attempting to connect to? > The debug log shows it found five interfaces, but doesn't indicate which > one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. > [snip] > > ppp.conf: === > > default: > set log all > set log -timer > ident user-ppp VERSION (built COMPILATIONDATE) > set redial 15 0 > set reconnect 15 1 > isp: > set device PPPoE:ed1 > disable acfcomp protocomp > deny acfcomp > set mtu max 1492 > set mru max 1492 > enable mssfixup > set speed sync > enable lqr > set lqrperiod 5 > set ctsrts off > disable ipv6cp > set dial > set login > set timeout 0 > set authname xx > set authkey yy > add! default HISADDR > I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
user ppp and PPPoE bridging
I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. Thanks for any clues, Gary log file: = Oct 22 16:34:15 nightmare ppp[84336]: Phase: Using interface: tun0 Oct 22 16:34:15 nightmare ppp[84336]: Phase: deflink: Created in closed state Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set log -timer Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE) Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set redial 15 0 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set reconnect 15 1 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Phase: PPP Started (interactive mode). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: dial blackfoot Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking default (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set device PPPoE:ed1 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable acfcomp protocomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: deny acfcomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mtu max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mru max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable mssfixup Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set speed sync Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable lqr Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set lqrperiod 5 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set ctsrts off Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable ipv6cp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set dial Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set login Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set timeout 0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authname Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authkey Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: add! default HISADDR Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 3 = socket(17, 3, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: bundle: Establish Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: closed -> opening Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: List of netgraph node ``ed1:'' (id 2) hooks: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found orphans -> ethernet Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Connecting netgraph socket .:tun0 -> [8]::tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 4 = socket(2, 2, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 3223349521, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 2149607696, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found the following interfaces: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 1, name "ep0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 2, name "plip0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 3, name "ed1" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 4, name "lo0" Oct 22 16:34:24 nightmare ppp[84336]: tun0:
user ppp and PPPoE bridging
I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. Thanks for any clues, Gary log file: = Oct 22 16:34:15 nightmare ppp[84336]: Phase: Using interface: tun0 Oct 22 16:34:15 nightmare ppp[84336]: Phase: deflink: Created in closed state Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set log -timer Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE) Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set redial 15 0 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set reconnect 15 1 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Phase: PPP Started (interactive mode). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: dial blackfoot Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking default (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set device PPPoE:ed1 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable acfcomp protocomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: deny acfcomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mtu max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mru max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable mssfixup Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set speed sync Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable lqr Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set lqrperiod 5 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set ctsrts off Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable ipv6cp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set dial Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set login Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set timeout 0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authname Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authkey Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: add! default HISADDR Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 3 = socket(17, 3, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: bundle: Establish Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: closed -> opening Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: List of netgraph node ``ed1:'' (id 2) hooks: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found orphans -> ethernet Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Connecting netgraph socket .:tun0 -> [8]::tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 4 = socket(2, 2, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 3223349521, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 2149607696, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found the following interfaces: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 1, name "ep0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 2, name "plip0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 3, name "ed1" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 4, name "lo0" Oct 22 16:34:24 nightmare ppp[84336]: tun0:
user ppp and PPPoE bridging
I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. Thanks for any clues, Gary log file: = Oct 22 16:34:15 nightmare ppp[84336]: Phase: Using interface: tun0 Oct 22 16:34:15 nightmare ppp[84336]: Phase: deflink: Created in closed state Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set log -timer Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE) Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set redial 15 0 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set reconnect 15 1 Oct 22 16:34:15 nightmare ppp[84336]: tun0: Phase: PPP Started (interactive mode). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: dial blackfoot Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking default (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r") Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf). Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set device PPPoE:ed1 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable acfcomp protocomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: deny acfcomp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mtu max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mru max 1492 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable mssfixup Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set speed sync Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable lqr Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set lqrperiod 5 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set ctsrts off Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable ipv6cp Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set dial Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set login Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set timeout 0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authname Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authkey Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: add! default HISADDR Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 3 = socket(17, 3, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: bundle: Establish Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: closed -> opening Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: List of netgraph node ``ed1:'' (id 2) hooks: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found orphans -> ethernet Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Connecting netgraph socket .:tun0 -> [8]::tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 4 = socket(2, 2, 0) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 3223349521, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 2149607696, 0xbfbfda00) Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0 Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found the following interfaces: Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 1, name "ep0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 2, name "plip0" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 3, name "ed1" Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Index 4, name "lo0" Oct 22 16:34:24 nightmare ppp[84336]: tun0:
Re: PPPoE config FreeBSD. Need help
On Sat, 20 Oct 2007 10:00:27 +0500 Babek Ismayilov wrote: > i need to configure PPPoE in FreeBSD 6.2. > I tested but it didn't work out. I'm want to show you the result of the > command: > web# ppp > Working in interactive mode > Using interface: tun0 > ppp ON web> dial Internet > ppp ON web> ping box.az > Warning: ping: Invalid command > Warning: ping: Failed 1 > ppp ON web> > ppp ON web> pppd > Warning: pppd: Invalid command > Warning: pppd: Failed 1 > ppp ON web> quit > web# pppd There is a very good diagnostic file /var/log/ppp.log . You may populate it by the needed info. (Hint: man ppp) > Here is rc.conf > rc.conf > # -- sysinstall generated deltas -- # Fri Oct 19 16:25:38 2007 > # Created: Fri Oct 19 16:25:38 2007 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > #defaultrouter="172.16.200.1" > hostname="web.pronet" > ifconfig_rl0="inet 172.16.200.201 netmask 255.255.255.0" > inetd_enable="YES" > linux_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > ppp_interface="rl1" > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="NO" > ppp_profile="primus" > network_interfaces="rl1 lo0" > ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0" Where did you get info for rl0, rl1 interface? Why did you disable rl0 interface with "network_interfaces="? (Hint: there is no need for _PPPoE_ in any those ip-addresses) > ppp.conf Is it a copy-n-paste problem that you don't have a space before commands? I.e.: - default: set log Phase Chat LCP IPCP CCP tun command - > # > # PPP Sample Configuration File > # Originally written by Toshiharu OHNO > # Simplified 5/14/1999 by [EMAIL PROTECTED] > # > # See /usr/share/examples/ppp/ for some examples > # > # $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $ > # > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > # Ensure that "device" references the correct serial port > # for your modem. (cuad0 = COM1, cuad1 = COM2) > # > set device PPPoE:rl1 > set speed 115200 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > set timeout 180 # 3 minute idle timer (the default) > enable dns # request DNS info (for resolv.conf) > papchap: > # > # edit the next three lines and replace the items in caps with > # the values which have been assigned by your ISP. > # > primus: > set authname pronet > set authkey 3060683 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR # Add a (sticky) default route > added there lines to GENERIC: The needed modules should have been loaded automagically. > # Enables PPPoE > options NETGRAPH > options NETGRAPH_SOCKET > options NETGRAPH_PPPOE > But still didnt work out. > Please give some advice. Please take a look at /usr/share/examples/ppp.conf.sample. There is a good example. Just two labels and a some ten commands. Insert your values and get your PPPoE. HTH and WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PPPoE config FreeBSD. Need help
Hi, i need to configure PPPoE in FreeBSD 6.2. I tested but it didn't work out. I'm want to show you the result of the command: web# ppp Working in interactive mode Using interface: tun0 ppp ON web> dial Internet ppp ON web> ping box.az Warning: ping: Invalid command Warning: ping: Failed 1 ppp ON web> ppp ON web> pppd Warning: pppd: Invalid command Warning: pppd: Failed 1 ppp ON web> quit web# pppd Here is rc.conf rc.conf # -- sysinstall generated deltas -- # Fri Oct 19 16:25:38 2007 # Created: Fri Oct 19 16:25:38 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. #defaultrouter="172.16.200.1" hostname="web.pronet" ifconfig_rl0="inet 172.16.200.201 netmask 255.255.255.0" inetd_enable="YES" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" ppp_interface="rl1" ppp_enable="YES" ppp_mode="ddial" ppp_nat="NO" ppp_profile="primus" network_interfaces="rl1 lo0" ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0" ppp.conf # # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by [EMAIL PROTECTED] # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $ # default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuad0 = COM1, cuad1 = COM2) # set device PPPoE:rl1 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # primus: set authname pronet set authkey 3060683 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR # Add a (sticky) default route added there lines to GENERIC: # Enables PPPoE options NETGRAPH options NETGRAPH_SOCKET options NETGRAPH_PPPOE But still didnt work out. Please give some advice. -- Your sincerely, Babek Ismayilov Information Technology Specialist Contacts: Mobile: (+994 55) 7574768 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE dialer CPU usage
On Sun, Oct 14, 2007 at 12:37:43AM +0100, RW wrote: > On Fri, 12 Oct 2007 22:57:25 -0500 > Dave Curry <[EMAIL PROTECTED]> wrote: > > > Hi. I was wondering if anyone had any idea what might be causing > > excessive CPU usage by the rp-pppoe dialer. What I've been running > > into is since the 5th, the message "Unexpected packet code 9" has > > been showing up every 10 seconds in syslog, the CPU usage is maxed, I > > seem to be getting pinged by my PPPoE gateway every 10 seconds, and I > > can't seem to find out what the cause of this is. Have checked other > > net traffic to no avail, tried compiling the dialer with debugging > > options which did nothing, and any sort of insight that could be > > offered at this point is dearly welcome. > > > Is there any particular reason for using the roaring-penguin version? > > ppp in the base-system works fine for me, and it uses next to no > cpu time. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" Yeah, I had mistakenly compiled ppp without netgraph support (Just found that out today), so I was using rp-pppoe. Since I fixed the problem with ppp it's not vitally important to find out what hosed rp-pppoe now, though if anyone can offer info on what caused this it'd be nice to know for curiosity's sake. -- David Michael Curry (Dave) <[EMAIL PROTECTED]> () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE dialer CPU usage
On Fri, 12 Oct 2007 22:57:25 -0500 Dave Curry <[EMAIL PROTECTED]> wrote: > Hi. I was wondering if anyone had any idea what might be causing > excessive CPU usage by the rp-pppoe dialer. What I've been running > into is since the 5th, the message "Unexpected packet code 9" has > been showing up every 10 seconds in syslog, the CPU usage is maxed, I > seem to be getting pinged by my PPPoE gateway every 10 seconds, and I > can't seem to find out what the cause of this is. Have checked other > net traffic to no avail, tried compiling the dialer with debugging > options which did nothing, and any sort of insight that could be > offered at this point is dearly welcome. Is there any particular reason for using the roaring-penguin version? ppp in the base-system works fine for me, and it uses next to no cpu time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PPPoE dialer CPU usage
Hi. I was wondering if anyone had any idea what might be causing excessive CPU usage by the rp-pppoe dialer. What I've been running into is since the 5th, the message "Unexpected packet code 9" has been showing up every 10 seconds in syslog, the CPU usage is maxed, I seem to be getting pinged by my PPPoE gateway every 10 seconds, and I can't seem to find out what the cause of this is. Have checked other net traffic to no avail, tried compiling the dialer with debugging options which did nothing, and any sort of insight that could be offered at this point is dearly welcome. -- David Michael Curry (Dave) <[EMAIL PROTECTED]> () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE Doesn't Connect
On Wednesday 03 October 2007 06:48:47 Sean McLaughlin wrote: > After following that "Cheaper Broadband with FreeBSD on DSL" article > referenced in the handbook, I am not getting PPP to work with ADSL. > ppp(8)'s prompt stays all lowercase after "dial", whether I do > pap/chap or not. Authentication method is negotiable, so you don't have to explicitly choose. > It looks like the carrier isn't responding(?) Yes, most probably. Can you run tcpdump on rl0 and post it? If you don't see any PADO there is a problem outside your FreeBSD box. Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PPPoE Doesn't Connect
After following that "Cheaper Broadband with FreeBSD on DSL" article referenced in the handbook, I am not getting PPP to work with ADSL. ppp(8)'s prompt stays all lowercase after "dial", whether I do pap/chap or not. It looks like the carrier isn't responding(?) Incidentally, the ISP is Telus and the ethernet cable connecting the computer to the modem is a Dynex 25' cat6 I just bought earlier today, if that makes any difference. Here are the ppp.conf and ppp.log files. *** ppp.conf *** default: # PPP over Ethernet set device PPPoE:rl0 set speed sync set mru 1492 set mtu 1492 set ctsrts off # monitor line quality enable lqr # log set log debug phase chat connect lcp ipcp ccp command tun # insert default route upon connection add default HISADDR # download /etc/resolv.conf enable dns papchap: set authname set authkey *** end of ppp.conf *** *** ppp.log *** Oct 2 13:45:09 skip ppp[1331]: Phase: Using interface: tun0 Oct 2 13:45:09 skip ppp[1331]: Phase: deflink: Created in closed state Oct 2 13:45:09 skip ppp[1331]: tun0: Command: default: add default HISADDR Oct 2 13:45:09 skip ppp[1331]: tun0: Command: default: enable dns Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: PPP Started (interactive mode). Oct 2 13:45:09 skip ppp[1331]: tun0: Command: /dev/ttyp1: dial Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: bundle: Establish Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: deflink: closed -> opening Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: List of netgraph node ``rl0:'' (id 1) hooks: Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Found orphans -> ethernet Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Connecting netgraph socket .:tun0 -> [3]::tun0 Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0 Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Found the following interfaces: Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Index 1, name "rl0" Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Index 2, name "plip0" Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Index 3, name "lo0" Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Index 4, name "tun0" Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: deflink: Connected! Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: deflink: opening -> dial Oct 2 13:45:09 skip ppp[1331]: tun0: Chat: deflink: Dial attempt 1 of 1 Oct 2 13:45:09 skip ppp[1331]: tun0: Phase: deflink: dial -> carrier Oct 2 13:45:09 skip ppp[1331]: tun0: Debug: Waiting for carrier Oct 2 13:45:13 skip last message repeated 4 times Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: deflink: Disconnected! Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: deflink: carrier -> hangup Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: deflink: Close Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: deflink: 0 packets in, 0 packets out Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Tue Oct 2 13:45:09 2007 Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: deflink: hangup -> closed Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: route_IfDelete (4) Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: Found ff01:4::/32 Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: Found ff02:4::/32 Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: Found ff01:4::/32 Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: wrote 148: cmd = Delete, dst = ff01:4::/32, gateway = Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: Found ff02:4::/32 Oct 2 13:45:14 skip ppp[1331]: tun0: Debug: wrote 148: cmd = Delete, dst = ff02:4::/32, gateway = Oct 2 13:45:14 skip ppp[1331]: tun0: Phase: bundle: Dead Oct 2 19:41:07 skip ppp[1331]: tun0: Command: /dev/ttyp1: quit Oct 2 19:41:07 skip ppp[1331]: tun0: Debug: DoLoop done. Oct 2 19:41:07 skip ppp[1331]: tun0: Phase: PPP Terminated (normal). Oct 2 19:41:07 skip ppp[1331]: tun0: Debug: route_IfDelete (4) Oct 2 19:41:07 skip ppp[1331]: tun0: Debug: Radius: radius_Destroy *** end of ppp.log *** ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Installing FreeBSD using a PPPoE connection
On Thu, 6 Sep 2007 08:59:32 -0700 (PDT) asdf <[EMAIL PROTECTED]> wrote: > Does the FreeBSD 6.2 installer support a network install over an ethernet > interface > connected to a DSL modem using a PPPoE connection? > > I am switching ISPs from a cable-based provider to a DSL-based provider and > would > like to install FreeBSD on an old PC to set it up as a router/firewall for my > home > network. And since this old PC does not have a CD-ROM drive I'd like to a > network > install using PPPoE. > > But I haven't been able to find any current information on how to accomplish > this. > There used to be an (unofficial) page by Randy Pratt: > > "Installing FreeBSD Using PPPoE": > <http://www.treefort.org/~rpratt/pppoe/article.html> > > but it's no longer there. I still have a copy at: http://myfreebsd.homeunix.net/pppoe-article/article.html Its probably still pretty close since sysinstall doesn't change that much. I hope you find it useful. HTH, Randy -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Installing FreeBSD using a PPPoE connection
Does the FreeBSD 6.2 installer support a network install over an ethernet interface connected to a DSL modem using a PPPoE connection? I am switching ISPs from a cable-based provider to a DSL-based provider and would like to install FreeBSD on an old PC to set it up as a router/firewall for my home network. And since this old PC does not have a CD-ROM drive I'd like to a network install using PPPoE. But I haven't been able to find any current information on how to accomplish this. There used to be an (unofficial) page by Randy Pratt: "Installing FreeBSD Using PPPoE": <http://www.treefort.org/~rpratt/pppoe/article.html> but it's no longer there. Any help/advice is appreciated. Thanks! PS: I am not subscribed to this list, so please CC: me on all replies/follow-ups. Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
pppoe and nat problem
hi all. I'm trying to solve one problem but with no success in 1 week. I'm setting up Gateway server with PPPoE functionality for per LAN users to authenticate and traffic shaping. Incoming Internet connection is Ethernet. This PC have 2 NIC. LAN NIC do not have IP assigned. pppoe listens on LAN side interface and passes connection to user land ppp. (traffic shaping is via IPFW) ppp handles all other tasks like Proxy-Arp and so on. I have only 8 public IP address from ISP. So current test configuration is "Proxy-Arp" in ppp.conf and PPP's DHCP range is within ISP allocated zone. Every thing is Ok, with this configuration, LAN users can surf the net. This configuration can support at most, ISP allocated IP numer of concurrent connections. If I allocate exceeding IP zone for DHCP in ppp.conf like "set ifaddr 100.200.300.1 100.200.300.2-100.200.300.100" then ppp.log says "ppp Warning: xx.xx.xx.xx : Cannot determine ethernet address for proxy ARP", maybe it's obvious because of its not in Internet IP zone anymore. But I need to support at least 50 simultaneous connection. If possible, I need NAT in inside PPP. I tried, tried, reed many times. No success. In ppp(8) man it says "NAT is done on the external interface only, and is unlikely to make sense if used with the -direct flag." Current pppoed forks /usr/sbin/ppp with the "-direct" argument. Is it clue on this problem? How to NAT or Route if PPP's DHCP IP zone is different from Gateway IP zone when ppp is working in "-direct" mode. How to to route traffic within tunX and Gateway NIC? Or is there any other solutions for this? Thanks in advance. Help much appreciated. munkh. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: debugging pppoe
On Monday 11 June 2007 22:54, Michael P. Soulier wrote: > On 04/06/07 Nikos Vassiliadis said: > > ppp does not write much on the console. And that is probably a > > decision made by the authors, since it is meant to be run mostly > > interactively. You can see its logs in /var/log/ppp.log > > Indeed. I turned up the logging and I had to turn it down before it > filled /var. :) > > If I could get it to log like that to the console, then I could > supervise it with runit, logging via svlogd. I am not familiar with these programs, but keep in mind that these methods may not be the best choice. FreeBSD and BSDs in general are very nicely integrated. The solution might (or not) be in the base system. > I guess there's no way to > force that log level to stdout? You guessed wrong:) From ppp(8): It is also possible to log directly to the screen. The syntax is the same except that the word ``local'' should immediately follow ``set log''. The default is ``set log local'' (i.e., only the un-maskable warning, error and alert output). Something else of possible interest is that ppp, can serve its console over a socket making remote debugging possible. HTH, Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: debugging pppoe
On Monday 11 June 2007 21:54, Michael P. Soulier wrote: > On 04/06/07 Nikos Vassiliadis said: > > ppp does not write much on the console. And that is probably a decision > > made by the authors, since it is meant to be run mostly interactively. > > You can see its logs in /var/log/ppp.log > > Indeed. I turned up the logging and I had to turn it down before it filled > /var. :) > > If I could get it to log like that to the console, then I could supervise > it with runit, logging via svlogd. I guess there's no way to force that log > level to stdout? It looks as though set log local ... does what you want: check the manpage for ppp. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: debugging pppoe
On 04/06/07 Nikos Vassiliadis said: > ppp does not write much on the console. And that is probably a decision > made by the authors, since it is meant to be run mostly interactively. > You can see its logs in /var/log/ppp.log Indeed. I turned up the logging and I had to turn it down before it filled /var. :) If I could get it to log like that to the console, then I could supervise it with runit, logging via svlogd. I guess there's no way to force that log level to stdout? Thanks, Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein pgpHNcGUfFG5F.pgp Description: PGP signature
Re: debugging pppoe
On Tuesday 29 May 2007 20:38, Michael P. Soulier wrote: > I've turned logging up to All for ppp, for my DSL connection, and I've > been disappointed to find that when it can't connect, ppp offers no > help whatsoever as to why. > > I'm going to try rp-pppoe from ports, since on Linux it's actually > quite helpful in full debug, but I'm surprised at how little BSD's ppp > tells me when logging is turned right up. > > Any other suggestions? ppp does not write much on the console. And that is probably a decision made by the authors, since it is meant to be run mostly interactively. You can see its logs in /var/log/ppp.log HTH, Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
debugging pppoe
I've turned logging up to All for ppp, for my DSL connection, and I've been disappointed to find that when it can't connect, ppp offers no help whatsoever as to why. I'm going to try rp-pppoe from ports, since on Linux it's actually quite helpful in full debug, but I'm surprised at how little BSD's ppp tells me when logging is turned right up. Any other suggestions? Thanks, Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
On Mon, 21 May 2007 14:39:06 +0800 "Brian Walker" <[EMAIL PROTECTED]> wrote: > Here is my /etc/ppp/ppp.conf it has been "worked on" but so far > seems to have been OK. As for regularly: it basically means several > times a day for no reason that is apparent to me. > I'd try simplifing first. I have just have: default: set log Phase tun command adsl: set device PPPoE:vr0 set authname ... set authkey ... add default HISADDR and in rc.conf: ppp_enable="YES" ppp_mode="ddial" ppp_profile="adsl" PPP connects at start-up and, for me, reconnects without any problems when the connection is interrupted from either end. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
On Mon, 21 May 2007 14:39:06 +0800 "Brian Walker" <[EMAIL PROTECTED]> wrote: > Here is my /etc/ppp/ppp.conf it has been "worked on" but so far > seems to have been OK. As for regularly: it basically means several > times a day for no reason that is apparent to me. > > default: > set timeout 180 > enable dns > set log Phase Chat IPCP tun command > set redial 15 0 > set reconnect 15 10 > > internet: > set device PPPoE:rl0 > set authname [EMAIL PROTECTED] > set authkey ** > set ifaddr 0 0 > add default HISADDR > disable acfcomp protocomp > deny acfcomp > set speed sync > # set mtu max 1476 > # set mru max 1430 > enable lqr > set lqrperiod 5 I'd try to disable this: disable lqr (with lqrperiod commented out, of course). > set cd 5 > set dial > set login > set timeout 0 > > /etc/rc.conf looks like this: > > keymap="us.iso" > linux_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > sendmail_enable="YES" > pf_enable="YES" > pf_rules="/etc/pf.conf" > pf_flags="" > pflog_enable="YES" > pflog_logfile="/var/log/pflog" > pflog_flags="" > ntpdate_enable="YES" > ntpdate_flags="hk.pool.ntp.org" > ntpd_enable="YES" > devd_enable="YES" You might consider adding these lines here: ppp_enable="YES" ppp_mode="ddial" ppp_profile="internet" > Yes, it puzzles me why it happens in the first place, but as it hits > the XP, linux and BSD connections equally frequenly, I am assuming it > is a function of hardware or IP provider. The Handbook explains what parameters can be tuned with the help of your ISP. AFAIK tuning mru/mtu parametres can help. Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
Yes, it puzzles me why it happens in the first place, but as it hits the XP, linux and BSD connections equally frequenly, I am assuming it is a function of hardware or IP provider. fwiw, looking at your conf, my ppp.conf contains one setting that yours does not ... enable tcpmssfixup there's a bit of discussion abt it here: http://lists.apple.com/archives/Darwin-development/2001/Aug/msg00502.html dunno if this is related -- just throwing it out there. cheers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
Here is my /etc/ppp/ppp.conf it has been "worked on" but so far seems to have been OK. As for regularly: it basically means several times a day for no reason that is apparent to me. default: set timeout 180 enable dns set log Phase Chat IPCP tun command set redial 15 0 set reconnect 15 10 internet: set device PPPoE:rl0 set authname [EMAIL PROTECTED] set authkey ** set ifaddr 0 0 add default HISADDR disable acfcomp protocomp deny acfcomp set speed sync # set mtu max 1476 # set mru max 1430 enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 /etc/rc.conf looks like this: keymap="us.iso" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" sendmail_enable="YES" pf_enable="YES" pf_rules="/etc/pf.conf" pf_flags="" pflog_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" ntpdate_enable="YES" ntpdate_flags="hk.pool.ntp.org" ntpd_enable="YES" devd_enable="YES" Yes, it puzzles me why it happens in the first place, but as it hits the XP, linux and BSD connections equally frequenly, I am assuming it is a function of hardware or IP provider. Thanks for the replies so far! Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
hi, I'm not sure there is, I've had a similar problem like this before, and I got around it by writing a simple script that would try and ping a local site 4 times, and if no responses got back it would killall ppp and delete the default routes and tell ppp to reconnect. It worked quite well when put into cron to run at 1 minute intervals. i'm getting all this set up as well, and following this thread ... (1) are not ppp.linkup & ppp.linkdown supposed to be the 'place' to deal with this? (2) could you share your simple script? thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
On 5/21/07, Nikola Lecic <[EMAIL PROTECTED]> wrote: On Mon, 21 May 2007 10:54:48 +0800 "Brian Walker" <[EMAIL PROTECTED]> wrote: > Greetings all, > > I regularly find my computer is bumped off the net - on the Windows > OS I see a regular notification of re-connection. On My linux box I > need to 'sudo pppoeconf' to reconnect. The FreeBSD handbook deals > rather scantily with PPPoE, and I can find nothing much on googling. > Any ideas how best to a) prevent being kicked off and b) > reconnecting. At the moment I simply do 'sudo ppp -ddial internet' to > be reassigned and all works well ... for a while. The best response > is to leave FreeBSD and connect on re-entry into the OS. There has > to be a better way. I'm not sure there is, I've had a similar problem like this before, and I got around it by writing a simple script that would try and ping a local site 4 times, and if no responses got back it would killall ppp and delete the default routes and tell ppp to reconnect. It worked quite well when put into cron to run at 1 minute intervals. You could also try Roaring penguin PPPoE and see if you have any success with that. Cheers Federico ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE equivalent?
On Mon, 21 May 2007 10:54:48 +0800 "Brian Walker" <[EMAIL PROTECTED]> wrote: > Greetings all, > > I regularly find my computer is bumped off the net - on the Windows > OS I see a regular notification of re-connection. On My linux box I > need to 'sudo pppoeconf' to reconnect. The FreeBSD handbook deals > rather scantily with PPPoE, and I can find nothing much on googling. > Any ideas how best to a) prevent being kicked off and b) > reconnecting. At the moment I simply do 'sudo ppp -ddial internet' to > be reassigned and all works well ... for a while. The best response > is to leave FreeBSD and connect on re-entry into the OS. There has > to be a better way. Have you checked the ppp FAQ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/ppp.html What does 'regularly' mean? Any special circumstances (for example, a heavy load)? Please send your /etc/ppp/ppp.conf, the relevant portion of /etc/rc.conf (cat /etc/rc.conf | grep ppp) and some logs (see ppp(8) how to enable it). Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"