From owner-freebsd-questions Tue Aug 21 2:32:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.oak-wood.co.uk (pc1-dale2-0-cust111.not.cable.ntl.com [62.254.2.111]) by hub.freebsd.org (Postfix) with SMTP id 9F86D37B414 for ; Tue, 21 Aug 2001 02:32:48 -0700 (PDT) (envelope-from lists@oak-wood.co.uk) Received: from chris.oak-wood.co.uk ([192.168.37.3]) by mail.oak-wood.co.uk with SMTP (Mailtraq/1.1.6.1176) id ML9862B0B84 for freebsd-questions@freebsd.org; Tue, 21 Aug 2001 10:32:06 +0100 Message-ID: Date: Tue, 21 Aug 2001 10:31:45 +0100 To: freebsd-questions@freebsd.org From: Chris Hastie Subject: Re: Port redirection with natd References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.00-Beta-6-U () X-Hops: 1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 20 Aug 2001, Nick Rogness wrote >On Mon, 20 Aug 2001, Chris Hastie wrote: > >> Time to own up to my totally clueless credentials. I've been using >> FreeBSD, my first venture away from Mr Gates, since, oh, Saturday >> afternoon, and I haven't figured out this logging thing yet. Lots of >> things tell me how to log stuff, but I can't figure out where to find >> the logs they generate :( >> >> Instructions on 1) how to tell natd to log activity and 2) where to >> find the logs would be very much appreciated > > 1) include the "log" keyword in /etc/natd.conf > > 2) /var/log/alias.log > Thanks. I'm none the wiser for looking at a log I'm afraid. A lot of similar lines like this | icmp=0, udp=1, tcp=3, pptp=0, proto=0, frag_id=0 frag_ptr=0 / tot=4 (sock=0) which make little sense to me :( > What does `ipfw -a l` report? | rowan# ipfw -a l | 00050 161 17814 divert 8668 ip from any to any via xl0 | 00100 164 18720 allow ip from any to any via lo0 | 00200 0 0 deny ip from any to 127.0.0.0/8 | 00300 0 0 deny ip from 127.0.0.0/8 to any | 65000 988 491392 allow ip from any to any | 65535 3 984 deny ip from any to any >Is celandine reachable from your > natd machine and is the port listening on that machine? Yes and yes: | rowan# telnet celandine 25 | Trying 192.168.37.3... | Connected to celandine.oak-wood.co.uk. | Escape character is '^]'. | 220 mail.oak-wood.co.uk Ready for action (Mailtraq 1.1.6.1176/SMTP) Thanks for your help. This is certainly a steep learning curve for me. -- Chris Hastie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message