Bug 249387 - natd uses wrong dealiased address
Summary: natd uses wrong dealiased address
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: i386 Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-17 07:45 UTC by natdbug
Modified: 2020-09-17 07:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description natdbug 2020-09-17 07:45:27 UTC
natd used to translate any dns connections to local dns server 91.222.48.5

natd started via cmd  "natd -t 91.222.48.5 -p 8485 -a 91.222.48.3"

ipfw rules used to forward dns traffic
divert 8485 udp from 91.222.48.0/22 to any 53 in via em0
divert 8485 udp from 91.222.48.5 53 to 91.222.48.0/22 out via em0

after start at first time nat work normally

In  {default}[UDP]  [UDP] 91.222.51.124:5678 -> 94.247.43.254:53 aliased to
           [UDP] 91.222.51.124:5678 -> 91.222.48.5:53
Out {default}[UDP]  [UDP] 91.222.48.5:53 -> 91.222.51.124:5678 aliased to
           [UDP] 94.247.43.254:53 -> 91.222.51.124:5678

In  {default}[UDP]  [UDP] 91.222.51.124:5678 -> 185.208.208.141:53 aliased to
           [UDP] 91.222.51.124:5678 -> 91.222.48.5:53
Out {default}[UDP]  [UDP] 91.222.48.5:53 -> 91.222.51.124:5678 aliased to
           [UDP] 185.208.208.141:53 -> 91.222.51.124:5678


but after some time returned dealiased ip sets to one value and not recognize from aliased address:


In  {default}[UDP]  [UDP] 91.222.51.124:5678 -> 1.1.1.1:53 aliased to
           [UDP] 91.222.51.124:5678 -> 91.222.48.5:53
Out {default}[UDP]  [UDP] 91.222.48.5:53 -> 91.222.51.124:5678 aliased to
           [UDP] 163.53.248.170:53 -> 91.222.51.124:5678

In  {default}[UDP]  [UDP] 91.222.51.124:5678 -> 8.8.4.4:53 aliased to
           [UDP] 91.222.51.124:5678 -> 91.222.48.5:53
Out {default}[UDP]  [UDP] 91.222.48.5:53 -> 91.222.51.124:5678 aliased to
           [UDP] 163.53.248.170:53 -> 91.222.51.124:5678