Re: ppp is broken???
Are you using the -ddial option? if you start ppp through rc.conf add ppp_mode="ddial" Yes, I was originally using it. Bob said that my rc.conf was obsolete, but he did not say why. Laszo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
On Thu, 10 May 2007 10:12:00 +0200 Nagy László Zsolt <[EMAIL PROTECTED]> wrote: > > > > >> The format of the statement to add > >> is ifconfig_=up where is the NIC's FBSD interface name > >> used by PPPoE that you specified in the /etc/ppp/ppp.conf file. > >> ee /etc/rc.conf # add following statements > >> ifconfig_=up > >> > > > > I've not needed to do this, > > > > > >> ifconfig_tun0="DHCP"# get your ISP assigned IP address > >> > > > > PPP has its own mechanism for getting an IP address and dns server > > addresses. You don't normally need to specify DHCP for the > > interface. > I'm now totally confused. I tried this configuration also, but the > connection still drops in every 3 hours. Can it be a problem with the > ISP? I'm going to do a stress test with another computer to see if > the ADSL line is stable or not. > Are you using the -ddial option? if you start ppp through rc.conf add ppp_mode="ddial" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
The format of the statement to add is ifconfig_=up where is the NIC's FBSD interface name used by PPPoE that you specified in the /etc/ppp/ppp.conf file. ee /etc/rc.conf # add following statements ifconfig_=up I've not needed to do this, ifconfig_tun0="DHCP"# get your ISP assigned IP address PPP has its own mechanism for getting an IP address and dns server addresses. You don't normally need to specify DHCP for the interface. I'm now totally confused. I tried this configuration also, but the connection still drops in every 3 hours. Can it be a problem with the ISP? I'm going to do a stress test with another computer to see if the ADSL line is stable or not. Regards, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
On Mon, 7 May 2007 10:25:20 -0400 "Bob" <[EMAIL PROTECTED]> wrote: > The format of the statement to add > is ifconfig_=up where is the NIC's FBSD interface name used > by PPPoE that you specified in the /etc/ppp/ppp.conf file. > ee /etc/rc.conf # add following statements > ifconfig_=up I've not needed to do this, > ifconfig_tun0="DHCP"# get your ISP assigned IP address PPP has its own mechanism for getting an IP address and dns server addresses. You don't normally need to specify DHCP for the interface. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
Bob írta: The method you are using is obsolete. The following is all you need. Take special note of rc.conf statements to use. start of DSL ppp.conf ### default: set log Phase tun #use to avoid excessive log sizes set timeout 0 # no idle time out, will not disconnect dialisp: set device PPPoE:XXX # replace xxx with your NIC device name set authname YOURLOGINNAME# Replace with your ISP account username set authkey YOURPASSWORD # Replace with your ISP account password add default HISADDR # Add a (sticky) default route (Mandatory) enable dns # Gets the ISP's DNS IP address & places them # in resolv.conf for reference by FBSD box. ### End of DSL ppp.conf # Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD interface name. Sometimes it will be necessary to use a service tag to establish your connection depending on how your ISP and/or the phone company has its DSL network configured. Service tags are used to distinguish between different PPPoE servers attached to a given network. You should have been given any required service tag information in the documentation provided by your ISP. If you cannot locate it there, ask your ISP's tech support personnel. This is the format of the command with the service tag added: set device PPPoE::service_tag The is the FBSD interface name used by PPPoE. The interface must be UP (IE: enabled). It is only used as a transport, and does not need to be assigned an IP address. This can be done automatically at boot time by updating the /etc/rc.conf file. The format of the statement to add is ifconfig_=up where is the NIC's FBSD interface name used by PPPoE that you specified in the /etc/ppp/ppp.conf file. ee /etc/rc.conf # add following statements ifconfig_=up ifconfig_tun0="DHCP"# get your ISP assigned IP address Dear Bob, I installed a new OS (release 6.1) just for testing ADSL so others can work. What you wrote works fine, except that I had to use "papchap" label instead of "dialisp" and I also had to include ppp_enable="YES" in /etc/rc.conf. Now my only question is that, why my configuration was obsolete? I noticed that the example file installed by default is from 1999. :-) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
Bob wrote: The method you are using is obsolete. The following is all you need. Take special note of rc.conf statements to use. start of DSL ppp.conf ### default: set log Phase tun #use to avoid excessive log sizes set timeout 0 # no idle time out, will not disconnect dialisp: set device PPPoE:XXX # replace xxx with your NIC device name set authname YOURLOGINNAME# Replace with your ISP account username set authkey YOURPASSWORD # Replace with your ISP account password add default HISADDR # Add a (sticky) default route (Mandatory) enable dns # Gets the ISP's DNS IP address & places them Thank you, Bob. You have been very helpful. Right now about 10 people are using this computer (with the backup connection, that one uses DHCP). I can only try this tomorrow, but I'll write about the results. Thanks again Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ppp is broken???
The method you are using is obsolete. The following is all you need. Take special note of rc.conf statements to use. start of DSL ppp.conf ### default: set log Phase tun #use to avoid excessive log sizes set timeout 0 # no idle time out, will not disconnect dialisp: set device PPPoE:XXX # replace xxx with your NIC device name set authname YOURLOGINNAME# Replace with your ISP account username set authkey YOURPASSWORD # Replace with your ISP account password add default HISADDR # Add a (sticky) default route (Mandatory) enable dns # Gets the ISP's DNS IP address & places them # in resolv.conf for reference by FBSD box. ### End of DSL ppp.conf # Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD interface name. Sometimes it will be necessary to use a service tag to establish your connection depending on how your ISP and/or the phone company has its DSL network configured. Service tags are used to distinguish between different PPPoE servers attached to a given network. You should have been given any required service tag information in the documentation provided by your ISP. If you cannot locate it there, ask your ISP's tech support personnel. This is the format of the command with the service tag added: set device PPPoE::service_tag The is the FBSD interface name used by PPPoE. The interface must be UP (IE: enabled). It is only used as a transport, and does not need to be assigned an IP address. This can be done automatically at boot time by updating the /etc/rc.conf file. The format of the statement to add is ifconfig_=up where is the NIC's FBSD interface name used by PPPoE that you specified in the /etc/ppp/ppp.conf file. ee /etc/rc.conf # add following statements ifconfig_=up ifconfig_tun0="DHCP"# get your ISP assigned IP address -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nagy László Zsolt Sent: Monday, May 07, 2007 8:53 AM To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Subject: Re: ppp is broken??? Bob wrote: > Add these statements to the end of your ppp.conf file. > > > > disable iface-alias# Stop adding old IP address as alias when ppp ># redials because line was lost. These old IPs ># showed using ifconfig -a on tun0. > > # Remove all previous IP address > I'll try this. > Post contents of your ppp.conf and rc.conf files for review for why you > keep losing your connection. > ppp.conf: papchap: # set log Phase Chat LCP IPCP CCP tun command set log phase tun command set device PPPoE:rl0 set speed sync set mru 1492 set mtu 1492 set ctsrts off set dial set login enable lqr add default HISADDR # enable dns # I use my own DNS server (named) enable tcpmssfixup # non-default below (hack for pptpd) set authname [EMAIL PROTECTED] set authkey i_am_not_telling_this nat enable yes nat port tcp 172.16.0.48:3389 51234 rc.conf: allscreens="80x30" font8x14="iso02-8x14" font8x16="iso02-8x16" font8x8="iso02-8x8" keymap="hu.iso2.102keys" keyrate="fast" scrnmap="iso-8859-1_to_cp437" gateway_enable="YES" hostname="not_telling.dyndns.org" ifconfig_vr0="inet 172.16.0.1 netmask 255.255.240.0" firewall_enable="YES" firewall_type="OPEN" firewall_logging="YES" # ADSL ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" named_enable="YES" kern_securelevel=2 kern_securelevel_enable="NO" saver="logo" sshd_enable="YES" usbd_enable="NO" moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" apache2_enable="YES" apache2ssl_enable="YES" squid_enable="NO" mysql_enable="NO" postgresql_enable="YES" rpcbind_enable="YES" nfs_server_enable="YES" nfs_reserved_port_only="YES" mountd_flags="-r" inetd_enable="YES" dovecot_enable="YES" gdm_enable="YES" dhcpd_enable="YES" dhcpd_ifaces="vr0" tomcat50_enable="YES" samba_enable="YES" slapd_enable="YES" slapd_flags=' -h "ldap://127.0.0.1/ ldaps://0.0.0.0/"' #postfix_enable="YES" ___ 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: ppp is broken???
At 07:53 AM 05/07/2007, =?ISO-8859-2?Q?Nagy_L=E1szl=F3_Zsolt?= wrote: disable iface-alias# Stop adding old IP address as alias when ppp # redials because line was lost. These old IPs # showed using ifconfig -a on tun0. iface clear # Remove all previous IP address I'll try this. Post contents of your ppp.conf and rc.conf files for review for why you keep losing your connection. ppp.conf: papchap: # set log Phase Chat LCP IPCP CCP tun command set log phase tun command set device PPPoE:rl0 set speed sync set mru 1492 set mtu 1492 set ctsrts off set dial set login enable lqr add default HISADDR # enable dns # I use my own DNS server (named) enable tcpmssfixup # non-default below (hack for pptpd) set authname [EMAIL PROTECTED] set authkey i_am_not_telling_this nat enable yes nat port tcp 172.16.0.48:3389 51234 Specifying NAT in your ppp.conf is whats causing this. If you add the 2 lines mentioned above, it should take care of this. For people that DONT use NAT within ppp.conf (perhaps they use pf)..this is not an issue normally. -JD -- J.D. Bronson Telecommunications Site Support Aurora West Allis Memorial Hospital Office: 414.978.8282 Fax: 414.977.5299 http://www.myspace.com/wrqz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp is broken???
Bob wrote: Add these statements to the end of your ppp.conf file. disable iface-alias# Stop adding old IP address as alias when ppp # redials because line was lost. These old IPs # showed using ifconfig -a on tun0. iface clear # Remove all previous IP address I'll try this. Post contents of your ppp.conf and rc.conf files for review for why you keep losing your connection. ppp.conf: papchap: # set log Phase Chat LCP IPCP CCP tun command set log phase tun command set device PPPoE:rl0 set speed sync set mru 1492 set mtu 1492 set ctsrts off set dial set login enable lqr add default HISADDR # enable dns # I use my own DNS server (named) enable tcpmssfixup # non-default below (hack for pptpd) set authname [EMAIL PROTECTED] set authkey i_am_not_telling_this nat enable yes nat port tcp 172.16.0.48:3389 51234 rc.conf: allscreens="80x30" font8x14="iso02-8x14" font8x16="iso02-8x16" font8x8="iso02-8x8" keymap="hu.iso2.102keys" keyrate="fast" scrnmap="iso-8859-1_to_cp437" gateway_enable="YES" hostname="not_telling.dyndns.org" ifconfig_vr0="inet 172.16.0.1 netmask 255.255.240.0" firewall_enable="YES" firewall_type="OPEN" firewall_logging="YES" # ADSL ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" named_enable="YES" kern_securelevel=2 kern_securelevel_enable="NO" saver="logo" sshd_enable="YES" usbd_enable="NO" moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" apache2_enable="YES" apache2ssl_enable="YES" squid_enable="NO" mysql_enable="NO" postgresql_enable="YES" rpcbind_enable="YES" nfs_server_enable="YES" nfs_reserved_port_only="YES" mountd_flags="-r" inetd_enable="YES" dovecot_enable="YES" gdm_enable="YES" dhcpd_enable="YES" dhcpd_ifaces="vr0" tomcat50_enable="YES" samba_enable="YES" slapd_enable="YES" slapd_flags=' -h "ldap://127.0.0.1/ ldaps://0.0.0.0/"' #postfix_enable="YES" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ppp is broken???
Add these statements to the end of your ppp.conf file. disable iface-alias# Stop adding old IP address as alias when ppp # redials because line was lost. These old IPs # showed using ifconfig -a on tun0. iface clear # Remove all previous IP address Post contents of your ppp.conf and rc.conf files for review for why you keep losing your connection. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Laszlo Nagy Sent: Monday, May 07, 2007 6:12 AM To: freebsd-questions@freebsd.org Subject: ppp is broken??? Hi All, I have a FreeBSD 6.2 RELEASE system that connects to the internet with an ADSL connection. (pppoe). After some hours, it gets disconnected and reconnected again. Each time it gets a new IP. The interesting part is that the old IP address remains assigned. Here is an example: tun0: flags=8051 mtu 1492 inet 62.112.215.17 --> 62.112.192.130 netmask 0x inet 83.216.40.248 --> 62.112.192.142 netmask 0x inet 83.216.56.211 --> 62.112.192.150 netmask 0x Opened by PID 241 After the third or fourth connection was made, internet stops working, and I have to reboot the computer. (When there is light traffic on the connection, it never gets disconnected.) This is from /var/log/ppp May 5 02:05:14 messias ppp[242]: tun0: Phase: deflink: Connected! May 5 02:05:14 messias ppp[242]: tun0: Phase: deflink: opening -> dial May 5 02:05:14 messias ppp[242]: tun0: Phase: deflink: dial -> carrier May 5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "adsl") May 5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID May 5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS May 5 02:05:15 messias ppp[242]: tun0: Phase: deflink: carrier -> login May 5 02:05:15 messias ppp[242]: tun0: Phase: deflink: login -> lcp May 5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Authenticate May 5 02:05:16 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine = none May 5 02:05:16 messias ppp[242]: tun0: Phase: Pap Output: [EMAIL PROTECTED] May 5 02:05:16 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS () May 5 02:05:16 messias ppp[242]: tun0: Phase: deflink: lcp -> open May 5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Network May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR packets lost ** May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: open -> lcp May 5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Terminate May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected! May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: lcp -> logout May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected! May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: logout -> hangup May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Connect time: 21538 secs: 2769865242 octets in, 86030307 octets out May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: 3691156 packets in, 2331858 packets out May 5 08:04:12 messias ppp[242]: tun0: Phase: total 132597 bytes/sec, peak 279371 bytes/sec on Sat May 5 05:44:10 2007 May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: hangup -> opening May 5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Establish May 5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Enter pause (3) for redialing. May 5 08:04:15 messias ppp[242]: tun0: Phase: deflink: Connected! May 5 08:04:15 messias ppp[242]: tun0: Phase: deflink: opening -> dial May 5 08:04:15 messias ppp[242]: tun0: Phase: deflink: dial -> carrier May 5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "adsl") May 5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID May 5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS May 5 08:04:16 messias ppp[242]: tun0: Phase: deflink: carrier -> login May 5 08:04:16 messias ppp[242]: tun0: Phase: deflink: login -> lcp May 5 08:04:17 messias ppp[242]: tun0: Phase: bundle: Authenticate May 5 08:04:17 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine = none May 5 08:04:17 messias ppp[242]: tun0: Phase: Pap Output: [EMAIL PROTECTED] May 5 08:04:18 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS () May 5 08:04:18 messias ppp[242]: tun0: Phase: deflink: lcp -> open May 5 08:04:18 messias ppp[242]: tun0: Phase: bundle: Network May 5 11:07:32 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR packets lost ** Please help me, this computer needs to be connected continuously. Thanks, Laszlo ___ 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