Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 08:49:57 -0500
From:      "Marko" <markovich@mindspring.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   natd UDP errors with PPP demand dial
Message-ID:  <126127242064.20020126084957@mindspring.com>

next in thread | raw e-mail | index | archive | help
Hello,

My   question  as  concerning  the  popular "netd[pid] failed to write
packet back [Permission denied]" message I get.

The  machine  is  FreeBSD 4.3R.  It connects to the Internet through a
PPP  demand dial link.  Natd is in dynamic mode.  The rules seem to be
ok, and packet filtering is working great.

The  natd  errors  log  right at the end of the PPP link setup.  Their
cause from the security log is this:


Jan 25 19:37:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.102.30:53 207.69.99.196:1909 out via tun0
Jan 25 19:37:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.102.30:41755 207.69.99.196:1909 out via tun0
Jan 25 19:37:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.102.30:53 207.69.99.196:1909 out via tun0
Jan 25 19:37:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.102.30:41755 207.69.99.196:1909 out via tun0
Jan 25 19:37:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.102.30:53 207.69.99.196:1909 out via tun0

Jan 25 21:11:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.101.242:53 207.69.102.30:2138 out via tun0
Jan 25 21:11:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.101.242:53 207.69.102.30:2144 out via tun0
Jan 25 21:11:45 PROTODOG /kernel: ipfw: 65000 Deny UDP 207.69.101.242:53 207.69.102.30:2144 out via tun0

There  are 2 PPP sessions depicted.  During the first, the machine had
the  207.69.102.30 IP, during the second - 207.69.101.242.  As you can
see,   it   tries  to  send  something via UDP to an IP it held during
the  previous  ppp  session.   Of  course, those attempts run into the
ipfw rules causing the natd error, and get rejected as they should be.

Some packets originate from very high ports, but there are always some
from port 53 on my machine.  Named is not running on it.

Tcpdump  doesn't  show  much  useful  stuff.  I think it's because the
packets never make it to the interface.

The  packets  don't come from my private network either because I have
the  internal interface shut off to most UDP traffic.  DNS queries are
directed  at  particular  servers  and work fine.  The problem packets
originate on the firewall machine.

My  questions  are:
How do I find out what the machine is trying to send in those rejected UDP packets.
Is  there  something  I  can  change  in  the machine configuration to
prevent   the   errors.    (I   have  ruled  out  opening UDP outbound
rules and bombarding machines on my previous IP's with nonsense.)

Thank you for any input YOU might have.

Marko


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?126127242064.20020126084957>