bin/81611: natd runs with -same_ports by default

Alexander Melkov melkov at
Sat May 28 19:00:10 PDT 2005

>Number:         81611
>Category:       bin
>Synopsis:       natd runs with -same_ports by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 29 02:00:09 GMT 2005
>Originator:     Alexander Melkov
>Release:        5.4-STABLE
FreeBSD 5.4-STABLE FreeBSD 5.4-STABLE #4: Sun May 29 03:46:03 MSD 2005     spamtrap at  i386
even without -same_ports | -m switch natd tries to allocate the same
source port as in the original packet.

PKT_ALIAS_SAME_PORTS flag is set up in LibAliasInit function, -m switch
can also only set this flag.

Probably this default behaviour is actually good, and that's the manpage
should be shanged, not libalias :).

run natd without -m and inspect incoming and outgoing packet ports with tcpdump.

Workaround: create and use a config have with
same_ports no


More information about the freebsd-bugs mailing list