From owner-freebsd-questions Sat Feb 6 01:35:01 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA16195 for freebsd-questions-outgoing; Sat, 6 Feb 1999 01:35:01 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rosebud-psvr.vic.hotkey.net.au (rosebud-psvr.vic.hotkey.net.au [202.138.3.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA16138 for ; Sat, 6 Feb 1999 01:34:49 -0800 (PST) (envelope-from panadol@hotkey.net.au) Received: from panadol (rosebud-as-dial-14.vic.hotkey.net.au [202.138.3.17]) by rosebud-psvr.vic.hotkey.net.au (8.8.5/8.8.5) with SMTP id UAA21508 for ; Sat, 6 Feb 1999 20:34:37 +1100 (EST) Message-Id: <199902060934.UAA21508@rosebud-psvr.vic.hotkey.net.au> X-Sender: panadol@pop.hotkey.net.au X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Demo Date: Sat, 06 Feb 1999 20:35:39 +1100 To: freebsd-questions@FreeBSD.ORG From: Alex Subject: ppp - gateway trouble on freebsd 2.2.2 machine Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi.. im having troubles with my freebsd system (ver 2.2.2) acting as a gateway for my lan the trouble i think lies in my ppp.* setups i can get a connection to my isp but once im connect i cant get any data flow at all not even from the console this system has a totaly dynimic ip setup hence no ips are set they are to be probed out by the system any help would be much appricated also im running a mini dns server (for the lan) and when i go to connect (vi telnet or any port) over the lan to it, it will wait for up to 3-5 minutes then prompt the login then once the login has been done it will wait again for a few minutes and then bring u to the command prompt (in a telnet case) as soon as i disable the dns in rc.conf the waiting is not longer a problem proving this is dns related is there any rason why this waiting occours and how could it be resolved i know it has to look it up but this time seems a tad to long and there is very little machine load here are a copy of the ppp.conf and ppp.linkup files any help would be very much appricated thanks Alex ############################################################ # PPP Configuration File ('/etc/ppp/ppp.conf') # # Default settings; These are always executed always when PPP # is invoked and apply to all system configurations. ############################################################ default: set device /dev/cuaa1 set speed 115200 disable pred1 deny pred1 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT" set redial 1.1 100 set reconnect 1 100 # # ############################################################ # # Invoke with "ppp interactive" # ############################################################ interactive: set authname ppp set authkey ppp set phone 12345678 set timeout 72000 set openmode active accept chap # # ############################################################ # # Invoke with: "ppp -auto demand" # # Also "/etc/start_if.tun0" is setup to invoke ppp -auto demand On boot # ############################################################ demand: set authname ppp set authkey ppp set phone 12345678 set timeout 72000 set openmode active accept chap set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 add 0 0 127.2.2.2 ############################################################ ============================================================================ ######################################################################### # PPP Link Up File ('/etc/ppp/ppp.linkup') # # This file is checked after PPP establishes a network connection. # # This file is searched in the following order. # # 1) First, the IP address assigned to us is searched and # the associated command(s) are executed. # # 2) If the IP Address is not found, then the label name specified at # PPP startup time is searched and the associated command(s) # are executed. # # 3) If neither of the above are found then commands under the label # 'MYADDR:' are executed. # ######################################################################### # # This section is used for the "demand" configuration in # /etc/ppp/ppp.conf: demand: delete ALL add 0 0 HISADDR # # All other configurations in /etc/ppp/ppp.conf use this: # MYADDR: add 0 0 HISADDR ###################################################################### To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message