From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 04:30:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B86A116A41F for ; Wed, 26 Oct 2005 04:30:28 +0000 (GMT) (envelope-from mefystofel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C70643D45 for ; Wed, 26 Oct 2005 04:30:28 +0000 (GMT) (envelope-from mefystofel@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so149539wxc for ; Tue, 25 Oct 2005 21:30:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MVoKWdXiLDE+AxBhmTpuaDGzETgj8bw2VgSYWp6QqhXUqcBe428Q1bbCdz9Zrk2n2+wUbF22Uo+SPn5ZtKhvfwz+JJPHMX54c2l/ZmE30uMDjEm+ODI5pYwPPjiHDKOjpU+5RtrKor21yndrvWJh+eEyqFWrYsUJXGA4Y/TdDsk= Received: by 10.70.54.3 with SMTP id c3mr232689wxa; Tue, 25 Oct 2005 21:30:27 -0700 (PDT) Received: by 10.70.61.9 with HTTP; Tue, 25 Oct 2005 21:30:27 -0700 (PDT) Message-ID: Date: Wed, 26 Oct 2005 10:30:27 +0600 From: Roman Serbski To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Please help with pppd and routing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 04:30:28 -0000 Dear all, I would appreciate your advise regarding pppd and routing. FreeBSD 5.4-STABLE, pppd with mgetty acting as dial-in server with one external modem. I can connect to server with no problem but it seems like routing doesn't work for dial-in user. I cannot even ping the ip address of dial-in server. Here is my configuration: The IP address of dial-in server: 192.168.1.35/28 The end address of the PPP link is 192.168.1.41/28 The IP address to be assigned to dial-in user is 192.168.1.44/28 IP forwarding is on. # sysctl -a | grep forward net.inet.ip.forwarding: 1 # cat /etc/ppp/ppp.conf default: set device /dev/cuaa0 set log Phase Chat LCP IPCP CCP tun command enable passwdauth set speed 38400 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\TTIMEOUT 40 CONNECT" set timeout 120 set ifaddr 192.168.1.35/28 255.255.255.240 0.0.0.0 add default HISADDR enable dns cuaa0: set ifaddr 192.168.1.41 192.168.1.44 enable passwdauth allow users ppp mef accept dns set dns 192.168.1.3 enable proxy ttyd0: set ifaddr 192.168.1.41 192.168.1.44 enable passwdauth allow users testppp accept dns set dns 192.168.1.3 enable proxy pap: enable pap set ifaddr 192.168.1.41 192.168.1.44 enable proxy enable passwdauth ifconfig and netstat -rn information before ppp session: # ifconfig tl0: flags=3D108843 mtu 1500 inet 192.168.1.35 netmask 0xfffffff0 broadcast 192.168.1.47 ether 00:50:8b:50:f2:0e media: Ethernet autoselect (100baseTX ) status: active plip0: flags=3D108810 mtu 1500 lo0: flags=3D8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 tun0: flags=3D8010 mtu 1500 # netstat -rn Destination Gateway Flags Refs Use Netif Expire default 192.168.1.33 UGS 1 499 tl0 127.0.0.1 127.0.0.1 UH 0 42 lo0 192.168.1.32/28 link#1 UC 0 0 tl0 192.168.1.33 00:09:7c:61:93:30 UHLW 1 0 tl0 953 ifconfig and netstat -rn information after ppp session: # ifconfig tl0: flags=3D108843 mtu 1500 inet 192.168.1.35 netmask 0xfffffff0 broadcast 192.168.1.47 ether 00:50:8b:50:f2:0e media: Ethernet autoselect (100baseTX ) status: active plip0: flags=3D108810 mtu 1500 lo0: flags=3D8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 tun0: flags=3D8051 mtu 1500 inet 192.168.1.41 --> 192.168.1.44 netmask 0xfffffff0 Opened by PID 747 # netstat -rn Destination Gateway Flags Refs Use Netif Expire default 192.168.1.33 UGS 1 599 tl0 127.0.0.1 127.0.0.1 UH 0 42 lo0 192.168.1.32/28 link#1 UC 0 0 tl0 192.168.1.33 00:09:7c:61:93:30 UHLW 1 0 tl0 1002 192.168.1.44 192.168.1.41 UH 0 0 tun0 192.168.1.44 00:50:8b:50:f2:0e UHLS2 0 0 tl0 Dial-in user receives 192.168.1.44 IP address but it cannot be pinged from dial-in server: PING 192.168.1.44 (192.168.1.44): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host I think I made a mistake in "default:" section of ppp.conf. Please advise. Thank you for your time.