aboutsummaryrefslogtreecommitdiff
path: root/sbin/natd
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* natd: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERTGleb Smirnoff2022-08-301-4/+4
|
* natd: Remove uneeded in_cksum.h includesMark Johnston2021-11-242-2/+0
| | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add history section to natd(8)Sevan Janiyan2016-10-051-2/+7
| | | | | | | | | | | | Fix back sentence raised by igor. PR: 212544 Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8104 Notes: svn path=/head/; revision=306735
* Invert calloc(3) argument order.Marcelo Araujo2016-09-161-1/+1
| | | | | | | | | Reviewed by: ed. MFC after: 4 weeks. Differential Revision: https://reviews.freebsd.org/D7902 Notes: svn path=/head/; revision=305863
* Do not coredump if the packet is too long in the global (non-interfacePoul-Henning Kamp2016-06-281-1/+1
| | | | | | | | | | | | | associated) instance. The result is that the packet is dropped without an indication that smaller MTU is advisable, which is not optimal, but better than a NULL pointer deref. Approved by: re (glebius) Notes: svn path=/head/; revision=302256
* Create packages for atm, ccdconfig, devd, ipf, ipfw,Glen Barber2016-02-091-0/+1
| | | | | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295448
* Fix a ton of speelling errorsEitan Adler2015-10-211-1/+1
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Fix two cases where "const" were washed off pointers with strchr(3)Poul-Henning Kamp2015-09-251-4/+6
| | | | Notes: svn path=/head/; revision=288212
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-9/+8
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync from headSimon J. Gerraty2012-11-042-9/+7
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | mdoc: remove superfluous paragraph macros.Joel Dahl2014-06-231-1/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=267803
* | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-8/+8
| |/ |/| | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | remove duplicate semicolons where possible.Eitan Adler2012-10-221-1/+1
| | | | | | | | | | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=241844
* | Add missing const keywords.Ed Schouten2012-10-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=241736
* | mdoc: fix a few badly nested blocks.Joel Dahl2012-06-091-7/+5
|/ | | | Notes: svn path=/head/; revision=236809
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-1/+1
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-2/+2
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* Fix a typo.Sergey Matveychuk2011-07-011-1/+1
| | | | | | | Approved by: kib Notes: svn path=/head/; revision=223713
* Furthermore condition IP waiting behaviour also on -dynamic flag.Maxim Sobolev2011-04-181-4/+8
| | | | | | | | | This should preserve POLA in all other cases (foreground || non-dynamic). MFC after: 2 weeks Notes: svn path=/head/; revision=220808
* Only wait for the IP to appear on the interface if natd is running in theMaxim Sobolev2011-04-181-5/+5
| | | | | | | | | | | | | | background. Suggested by: Garrett Cooper <yanegomi@gmail.com> Use EAGAIN instead of magic value of -2 to report this condition from the SetAliasAddressFromIfName routine. MFC after: 2 weeks Notes: svn path=/head/; revision=220806
* If we can retrieve interface address sleep for one second and try again.Maxim Sobolev2011-04-171-9/+29
| | | | | | | | | | This can happen during start-up, when natd starts before dhclient has a chance to receive IP address from the upstream provider. MFC after: 2 weeks Notes: svn path=/head/; revision=220736
* Raise WARNS for various tools where possible.Ed Schouten2010-01-171-1/+1
| | | | | | | Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch> Notes: svn path=/head/; revision=202532
* Mute some (hidden) warnings about old-style function definitions.Ed Schouten2010-01-171-2/+2
| | | | | | | Submitted by: Marius NĂ¼nnerich <marius nuenneri ch> Notes: svn path=/head/; revision=202531
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.Antoine Brodin2009-12-281-1/+1
| | | | | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month Notes: svn path=/head/; revision=201145
* Check rule numbers against maximum value to avoid rules cleanup dueRoman Kurakin2008-09-061-0/+24
| | | | | | | | | to overflow. MFC after: 5 days. Notes: svn path=/head/; revision=182825
* Add exit_delay parameter to control daemon exit delay after signal.Alexander Motin2008-06-223-4/+31
| | | | | | | | PR: bin/58696 Submitted by: sp@alkor.ru Notes: svn path=/head/; revision=179937
* Use strdup() instead of static buffer allocation to avoid 128 bytes limitAlexander Motin2008-06-221-6/+18
| | | | | | | | | | on -redirect_XXX arguments length. PR: bin/86647 Submitted by: Stephen Hurd <shurd@sasktel.net> Notes: svn path=/head/; revision=179935
* Don't abend if we get ENOMEM from sysctl(3). The data returnedBrian Somers2008-06-061-1/+1
| | | | | | | | | is sufficient MFC after: 2 weeks Notes: svn path=/head/; revision=179607
* Improve rev. 1.63. Document -instance and -globalport options.Ruslan Ermilov2008-02-041-1/+160
| | | | | | | | | | | | Add a MULTIPLE INSTANCES section which provides an example of setting up natd in multi-instance mode (based on the notes.natd file from phk@). Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Reviewed by: ru Notes: svn path=/head/; revision=175971
* Note that the punch_fw option does not work in securelevel 3 and Xref init.8.Tom Rhodes2008-01-211-1/+6
| | | | | | | | | Bump .Dd. PR: 41807 Notes: svn path=/head/; revision=175552
* o Markup and grammar fixes.Maxim Konovalov2007-12-141-5/+9
| | | | Notes: svn path=/head/; revision=174591
* Bump .Dd for r1.63; fix small nit from the same.Ceri Davies2007-12-101-2/+2
| | | | Notes: svn path=/head/; revision=174508
* Add a bit more detailed description about a configurationPoul-Henning Kamp2007-12-101-0/+20
| | | | | | | | | file format and about using NAT "instances". Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Notes: svn path=/head/; revision=174506
* Summer of Code 2005: improve libalias - part 1 of 2Paolo Pisati2006-09-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the first part of my previous Summer of Code work, we get: -made libalias modular: -support for 'particular' protocols (like ftp/irc/etcetc) is no more hardcoded inside libalias, but it's available through external modules loadable at runtime -modules are available both in kernel (/boot/kernel/alias_*.ko) and user land (/lib/libalias_*) -protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp, skinny and smedia -added logging support for kernel side -cleanup After a buildworld, do a 'mergemaster -i' to install the file libalias.conf in /etc or manually copy it. During startup (and after every HUP signal) user land applications running the new libalias will try to read a file in /etc called libalias.conf: that file contains the list of modules to load. User land applications affected by this commit are ppp and natd: if libalias.conf is present in /etc you won't notice any difference. The only kernel land bit affected by this commit is ng_nat: if you are using ng_nat, and it doesn't correctly handle ftp/irc/etcetc sessions anymore, remember to kldload the correspondent module (i.e. kldload alias_ftp). General information and details about the inner working are available in the libalias man page under the section 'MODULAR ARCHITECTURE (AND ipfw(4) SUPPORT)'. NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat support will be part of the next libalias-related commit. Approved by: glebius Reviewed by: glebius, ru Notes: svn path=/head/; revision=162674
* WARNS=6 and gcc4 cleanup:Xin LI2005-05-021-15/+15
| | | | | | | | | - Use const where necessary - Use __unused where applicable - Rename variables that is conflicit with global definations Notes: svn path=/head/; revision=145797