Hmm.
Added entries to hosts (firewall can ping the workstation by name OK). Sadly
though the problem still occurs.
So. I ran up "tcpdump -i tun0" in an already connected SSH term and started
another. Lo and behold, DNS requests were being fired to my local DNS
server. In other works you were spot on.
I've read the man pages for hosts & resolv.conf neither of which seems to
adequately explain the name resolution order. Do you know what order
attempts to resolve names are made in or is there an entry to resolv.conf
that I can make to force a check of hosts prior to hitting the DNS servers.
It seems to me that it is hitting the DNS servers before checking the hosts
file.
Either way, the next steps I'll be taking are 1) find something to show me
what's inside the packets being sent to the DNS server (Ethereal?) 2) Like
you say, get my arse into gear and learn BIND.
Thanks again for help already received (I'm on the right track now &
learning..... Honest) & TIA for any more ;-).
Regards.
Matt
PS. Am I right in saying that the load order for IPF, PPP and IPNAT should
be IPF, PPP, IPNAT or someother. The reason I ask is that I always have to
run "sh /etc/netstart" to get name resolution working from the private
network after the dial up connection has been made.
> >I've put this off for a while now (aversion to public displays of idiocy)
> >but have finally realised I must request help. I've built a tidy little
> >firewall (following *the* book) using OBSD2.8. Everything works perfectly
> >except that ppp -auto seems to dial out whenever it sees traffic inbound
to
> >the firewall regardless of whether that traffic is destined for the
machine
> >itself (i.e. me SSHing into the box from my private network) or for the
> >outside world.
> >This is by no means the end of the world but as our chums in British
Telecom
> >chage us 5p to connect any call regardless of the length of that call,
it's
> bastards, aren't they?
> >I can provide any information about config. that's required and any help
> >would be gratefully received.
> well, this is a wild guess, but when things start dialing up for no reason
> on any platform suspect DNS. bung in some number and name mappings in your
> host file on the dial out server... and make sure the box your ssh-ing
from
> is included in the list.
> if this solves the problem i'd strongly recommend you invest a little time
> in setting up a proper caching DNS server on the dialout box anyway. this
> will cut down on network traffic a little more/speed things up a bit.
> there's an excellent little tutorial in the oBSD faq plus a few more on
the
> web.
> finally, if that doesn't work, try checking your logs carefully and/or
using
> TCP dump to see what network traffic is being generated when you use the
> box.
> good luck
> cp
> --
> help prevent global warming ---------------------->
http://www.stopesso.com/