summaryrefslogtreecommitdiffstats
path: root/sbin/natd
Commit message (Collapse)AuthorAgeFilesLines
* MFC r303541, r303542, r303543, r303545, r303546, r303547, r304225, r304226, ↵araujo2016-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r304605, r304676, r305212, r305863: r303541: Use nitems() from sys/param.h. Sponsored by: gandi.net (BSD Day Taiwan) MFC after: 2 weeks. r303542: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) r303543: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) r303545: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) r303546: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) r303547: Use nitems() from sys/param.h. MFC after: 2 weeks. Sponsored by: gandi.net (BSD Day Taiwan) r304225: Use nitems() from sys/param.h. MFC after: 2 weeks. r304226: Use nitems() from sys/param.h. MFC after: 2 weeks. r304605: Fix calloc(3) argument order. Reviewed by: trasz MFC after: 4 weeks. Differential Revision: https://reviews.freebsd.org/D7532 r304676: Fix calloc(3) argument order. MFC after: 4 weeks. r305212: - Invert calloc(3) argument order. MFC after: 4 weeks r305863: Invert calloc(3) argument order. Reviewed by: ed. MFC after: 4 weeks. Differential Revision: https://reviews.freebsd.org/D7902
* MFC r306735:sevan2016-10-161-2/+7
| | | | | | | | | Add history section to natd(8) Fix back sentence raised by igor. PR: 212544 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* Do not coredump if the packet is too long in the global (non-interfacephk2016-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)
* Create packages for atm, ccdconfig, devd, ipf, ipfw,gjb2016-02-091-0/+1
| | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* Fix two cases where "const" were washed off pointers with strchr(3)phk2015-09-251-4/+6
|
* Add META_MODE support.sjg2015-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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-9/+8
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| | |
| | \
| | \
| | \
| *---. \ Sync from headsjg2012-11-042-9/+7
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+21
| | |_|/ / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | mdoc: remove superfluous paragraph macros.joel2014-06-231-1/+0
| | | |
* | | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-8/+8
| |/ / |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | remove duplicate semicolons where possible.eadler2012-10-221-1/+1
| | | | | | | | | | | | | | | Approved by: cperciva MFC after: 1 week
* | | Add missing const keywords.ed2012-10-191-1/+1
| |/ |/|
* | mdoc: fix a few badly nested blocks.joel2012-06-091-7/+5
|/
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Add missing static keywords for global variables to tools in sbin/.ed2011-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.
* Fix a typo.sem2011-07-011-1/+1
| | | | Approved by: kib
* Furthermore condition IP waiting behaviour also on -dynamic flag.sobomax2011-04-181-4/+8
| | | | | | This should preserve POLA in all other cases (foreground || non-dynamic). MFC after: 2 weeks
* Only wait for the IP to appear on the interface if natd is running in thesobomax2011-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
* If we can retrieve interface address sleep for one second and try again.sobomax2011-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
* Raise WARNS for various tools where possible.ed2010-01-171-1/+1
| | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch>
* Mute some (hidden) warnings about old-style function definitions.ed2010-01-171-2/+2
| | | | Submitted by: Marius Nünnerich <marius nuenneri ch>
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-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
* Check rule numbers against maximum value to avoid rules cleanup duerik2008-09-061-0/+24
| | | | | | to overflow. MFC after: 5 days.
* Add exit_delay parameter to control daemon exit delay after signal.mav2008-06-223-4/+31
| | | | | PR: bin/58696 Submitted by: sp@alkor.ru
* Use strdup() instead of static buffer allocation to avoid 128 bytes limitmav2008-06-221-6/+18
| | | | | | | on -redirect_XXX arguments length. PR: bin/86647 Submitted by: Stephen Hurd <shurd@sasktel.net>
* Don't abend if we get ENOMEM from sysctl(3). The data returnedbrian2008-06-061-1/+1
| | | | | | is sufficient MFC after: 2 weeks
* Improve rev. 1.63. Document -instance and -globalport options.ru2008-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
* Note that the punch_fw option does not work in securelevel 3 and Xref init.8.trhodes2008-01-211-1/+6
| | | | | | Bump .Dd. PR: 41807
* o Markup and grammar fixes.maxim2007-12-141-5/+9
|
* Bump .Dd for r1.63; fix small nit from the same.ceri2007-12-101-2/+2
|
* Add a bit more detailed description about a configurationphk2007-12-101-0/+20
| | | | | | file format and about using NAT "instances". Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
* Summer of Code 2005: improve libalias - part 1 of 2piso2006-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
* WARNS=6 and gcc4 cleanup:delphij2005-05-021-15/+15
| | | | | | - Use const where necessary - Use __unused where applicable - Rename variables that is conflicit with global definations
* Eliminate macro calls inside literal displays.ru2005-01-151-3/+3
|
* Remove unused variable.trhodes2005-01-081-1/+0
|
* Give natd multi-instance capabilities.phk2004-07-043-176/+410
| | | | This makes it possible to do load-sharing on two xDSL lines etc.
* Use strlcpy(3) instead of strcpy(3).hmp2004-05-101-3/+3
| | | | | | PR: 46761 Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
* Replace ROUNDUP/ADVANCE with SA_SIZEluigi2004-04-131-5/+1
|
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* Add Cisco Skinny Station protocol support to libalias, natd, and ppp.marcus2003-09-232-0/+33
| | | | | | | | | | | | | | | Skinny is the protocol used by Cisco IP phones to talk to Cisco Call Managers. With this code, one can use a Cisco IP phone behind a FreeBSD NAT gateway. Currently, having the Call Manager behind the NAT gateway is not supported. More information on enabling Skinny support in libalias, natd, and ppp can be found in those applications' manpages. PR: 55843 Reviewed by: ru Approved by: ru MFC after: 30 days
* - Clarify the port range syntax in -redirect_port.ru2003-08-131-14/+24
| | | | | | PR: docs/46286 - "IP number" -> "IP address", for consistency.
OpenPOWER on IntegriCloud