From owner-freebsd-isp Mon Sep 2 7:11:50 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F301337B400 for ; Mon, 2 Sep 2002 07:11:41 -0700 (PDT) Received: from web20106.mail.yahoo.com (web20106.mail.yahoo.com [216.136.226.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 837F843E6E for ; Mon, 2 Sep 2002 07:11:41 -0700 (PDT) (envelope-from freefabri@yahoo.it) Message-ID: <20020902141141.33918.qmail@web20106.mail.yahoo.com> Received: from [217.133.216.178] by web20106.mail.yahoo.com via HTTP; Mon, 02 Sep 2002 16:11:41 CEST Date: Mon, 2 Sep 2002 16:11:41 +0200 (CEST) From: =?iso-8859-1?q?Fabrizio=20Ravazzini?= Subject: Re: ppp -auto -nat Gateway routing problem To: Andrew Karjagin Cc: freebsd-isp@freebsd.org In-Reply-To: <20020827055615.28800.qmail@flock1.newmail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks for help, I've resolved the problem installing dnscache on 127.0.0.1 to resolv external addresses, then dnscachex on alias 192.168.0.70 to resolve external addresses for the inside hosts and tinydns to resolve internal addresses. It's a little mess but now works fine. Bye and thanks to all list --- Andrew Karjagin ha scritto: > Yes, it is DNS problem. But editing /etc/hosts > doesn't resolve it. Qmail have very strong security > options and it require full time DNS-server access. > So when you disconnect from your provider Qmail > start working very slowly, because try to find > DNS-servers. Change it to Exim, for example > (www.exim.org). This program doesn't have so > paranoya options, stable, very simple configured and > worked very well for me. > > ðÎ, 26.08 19:02 you wrote: > > > >Possibly a DNS issue? Try running tcpdump to see > what traffic is triggering > >the > >dialup. > > > >Maybe try banging your own IP addresses into > /etc/hosts to speed things up a > >bit. > > > >Jamie > > > >----- Original Message ----- > >From: "Fabrizio Ravazzini" > >To: > >Sent: Monday, August 26, 2002 3:51 PM > >Subject: ppp -auto -nat Gateway routing problem > > > > > >> Hello all. I've done a Gateway on FreeBSD4.5 for > a > >> small lan, connecting to Internet with a 56K > modem. > >> On this gateway I've installed also qmail,pop3 > and > >> courier imap for send and receive(fetchmail) > mails > >> from internet. > >> This the scheme: ed0 > >> Internet----56Kmodem--Fbsdbox---------------LAN > >> 192.168.0.1 > 192.168.0/24 > >> > >> The problem is that when the modem is > disconnected, if > >> I try for example to "telnet 192.168.0.1 25" from > a > >> machine on the Lan to test q-mail, the q-mail > server > >> takes a very very long time to respond me. > >> And if the modem is also light-up, he attempt to > >> connect to internet. > >> When the modem is connected to internet all works > >> well. > >> I use user-ppp in this way: > >> ppp -auto -nat provider (or with flags in > rc.conf) > >> > >> Looking at the routing tables I see that the > default > >> route is the 10.0.0.2, right because of the ppp. > >> If I delete the default route ("route delete > default") > >> the q-mail daemon responds ok and also pop and > imap, > >> but the ppp doesn't work because I deleted the > default > >> route. > >> This is the output of "netstat -rn": > >> > >> Routing tables > >> > >> Internet: > >> Destination Gateway Flags Refs Use Netif Expire > >> default 10.0.0.2 UGSc 0 0 tun0 > >> 10/24 link#1 UC 0 0 dc0 > >> 10.0.0.2 10.0.0.1 UH 1 0 tun0 > >> 127.0.0.1 127.0.0.1 UH 0 0 lo0 > >> 192.168.0 link#3 UC 0 0 ed0 > >> > >> ~snip IPV6 > >> > >> > >> And this is the /etc/rc.conf: > >> gateway_enable="YES" > >> firewall_enable="YES" > >> firewall_type="OPEN" > >> hostname="Walrus.Gsg" > >> ppp_enable="YES" > >> ppp_mode="auto" > >> ppp_nat="YES" > >> ppp_profile="provider" > >> inetd_enable="YES" > >> kern_securelevel_enable="NO" > >> keymap="it.iso" > >> linux_enable="YES" > >> moused_enable="NO" > >> moused_type="NO" > >> nfs_reserved_port_only="NO" > >> sendmail_enable="NO" > >> sshd_enable="YES" > >> ifconfig_dc0="inet 10.0.0.1 netmask > 255.255.255.0" > >> ifconfig_ed0="inet 192.168.0.1 netmask > 255.255.255.0" > >> > >> > >> Anybody knows what do I have to do to make the > qmail > >> and other servers have a faster response and > Internet > >> connection working? > >> > >> Thanks all > >> > >> > >> > >> > >> > >> > ______________________________________________________________________ > >> Scarica il nuovo Yahoo! Messenger: con webcam, > nuove faccine e tante altre > >novitÒ. > >> > http://it.yahoo.com/mail_it/foot/?http://it.messenger.yahoo.com/ > >> > >> To Unsubscribe: send mail to > majordomo@FreeBSD.org > >> with "unsubscribe freebsd-isp" in the body of the > message > >> > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-isp" in the body of the > message > >__________ > > >http://www.newhost.ru - õÀÔÎÏ, ÐÏ-ÄÏÍÁÛÎÅÍÕ, × > ÔÁÐÏÞËÁÈ..... > > > > > > > > __________ > www.newmail.ru -- ×ÓÅÇÄÁ ÞÔÏ-ÔÏ ÎÏ×ÏÅ. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message ______________________________________________________________________ Scarica il nuovo Yahoo! Messenger: con webcam, nuove faccine e tante altre novità. http://it.yahoo.com/mail_it/foot/?http://it.messenger.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message