From owner-freebsd-questions@FreeBSD.ORG Mon May 7 14:25:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C885F16A406 for ; Mon, 7 May 2007 14:25:22 +0000 (UTC) (envelope-from bob@a1poweruser.com) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.freebsd.org (Postfix) with ESMTP id 8DE8613C4AD for ; Mon, 7 May 2007 14:25:22 +0000 (UTC) (envelope-from bob@a1poweruser.com) Received: from laptop ([76.190.225.105]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20070507142521.OJXS16517.mta11.adelphia.net@laptop>; Mon, 7 May 2007 10:25:21 -0400 From: "Bob" To: =?iso-8859-2?Q?Nagy_L=E1szl=F3_Zsolt?= , Date: Mon, 7 May 2007 10:25:20 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-reply-to: <463F2149.5030101@freemail.hu> Importance: Normal Cc: Subject: RE: ppp is broken??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bob@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 14:25:22 -0000 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:xxxx:service_tag The xxxx 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_xxxx=up where xxxx 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_xxxx=up ifconfig_tun0="DHCP" # get your ISP assigned IP address -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Nagy László Zsolt Sent: Monday, May 07, 2007 8:53 AM To: bob@a1poweruser.com; 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 ntony@flat.enternet.hu 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 "freebsd-questions-unsubscribe@freebsd.org"