Date: Wed, 19 Jun 2019 13:43:47 -0500 From: Doug McIntyre <merlyn@geeks.org> To: freebsd-questions@freebsd.org Subject: Re: IPFW redirect to another port? Message-ID: <20190619184346.GA34759@geeks.org> In-Reply-To: <20190618165028.83C662015F9118@ary.qy> References: <20190618165028.83C662015F9118@ary.qy>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 18, 2019 at 12:50:27PM -0400, John Levine wrote: > I would like to use ipfw to redirect incoming port 53 requests from a > few IP addresses to a different port, so I can use a custom DNS server > to answer them. I can figure out how to redirect their traffic to, > say, port 5553, but the responses come from 5553 which of course > doesn't work. > > Any suggestions about how to adjust the port numbers going both ways? It's > fine if they screw up other traffic to those IPs. TIA. I would approach this differently. I'd install dns/dnsdist to listen on port 53, and then with backends out to your custom DNS server on port 5553.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190619184346.GA34759>
