summaryrefslogtreecommitdiffstats
path: root/lib/libalias
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the bug in transparent TCP proxying with the "encode_ip_hdr"ru2001-12-181-1/+3
| | | | | | option -- TcpAliasOut() did not catch the IP header length change. Submitted by: Stepachev Andrey <aka50@mail.ru>
* When servicing an internal FTP server, punch ipfirewall(4) holesru2001-11-271-5/+2
| | | | | | | | | for passive mode data connections (PASV/EPSV -> 227/229). Well, the actual punching happens a bit later, when the aliasing link becomes fully specified. Prodded by: Danny Carroll <dannycarroll@hotmail.com> MFC after: 1 week
* cmott@scientech.com -> cm@linktel.netbrian2001-11-039-10/+10
| | | | Requested by: Charles Mott <cmott@scientech.com>
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-3/+3
|
* Add __FBSDID's to libaliasdillon2001-09-3010-21/+32
|
* Fixed the bug that prevented communication with FTP servers behindru2001-09-211-3/+4
| | | | | | | | | | | | | | | NAT in extended passive mode if the server's public IP address was different from the main NAT address. This caused a wrong aliasing link to be created that did not route the incoming packets back to the original IP address of the server. natd -v -n pub0 -redirect_address localFTP publicFTP Note that even if localFTP == publicFTP, one still needs to supply the -redirect_address directive. It is needed as a helper because extended passive mode's 229 reply does not contain the IP address. MFC after: 1 week
* Added TFTP support.ru2001-08-211-0/+9
| | | | | Submitted by: Joe Clarke <marcus@marcuscom.com> MFC after: 2 weeks
* Close the "IRC DCC" security breach reported recently on Bugtraq.ru2001-08-211-0/+6
| | | | Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
* Make the copyright consistent.brian2001-08-204-12/+0
| | | | Previously approved by: Charles Mott <cmott@scientech.com>
* Handle snprintf() returning -1brian2001-08-201-3/+13
| | | | MFC after: 2 weeks
* mdoc(7) police:ru2001-08-071-4/+2
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Fixed the brain-o in rev. 1.10: the logic check was reversed.ru2001-06-271-1/+1
| | | | Reported by: Bernd Fuerwitt <bf@fuerwitt.de>
* Add BSD-style copyright headersbrian2001-06-049-17/+253
| | | | Approved by: Charles Mott <cmott@scientech.com>
* Change to a standard BSD-style copyrightbrian2001-06-041-13/+22
| | | | Approved by: Atsushi Murai <amurai@spec.co.jp>
* Add an integer field to keep protocol-specific flags with links.ru2001-05-303-15/+20
| | | | | | | | | | For FTP control connection, keep the CRLF end-of-line termination status in there. Fixed the bug when the first FTP command in a session was ignored. PR: 24048 MFC after: 1 week
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Make header files conform to style(9).brian2001-03-256-326/+311
| | | | | | Reviewed by (*): bde (*) alias_local.h only got a cursory glance.
* Remove an extraneous declaration.brian2001-03-251-1/+0
|
* Remove (non-protected) variable names from function prototypes.brian2001-03-221-7/+5
|
* Add a few ``const''s to silence some -Wwrite-strings warningsbrian2001-01-291-7/+9
|
* Ignore leading witespace in the string given to PacketAliasProxyRule().brian2001-01-291-0/+1
|
* mdoc(7) police: use the new feature of the An macro.ru2000-11-221-24/+14
|
* Added boolean argument to link searching functions, indicatingru2000-10-307-107/+42
| | | | whether they should create a link if lookup has failed or not.
* A significant rewrite of PPTP aliasing code.ru2000-10-304-151/+265
| | | | | | | | | | | | | | PPTP links are no longer dropped by simple (and inappropriate in this case) "inactivity timeout" procedure, only when requested through the control connection. It is now possible to have multiple PPTP servers running behind NAT. Just redirect the incoming TCP traffic to port 1723, everything else is done transparently. Problems were reported and the fix was tested by: Michael Adler <Michael.Adler@compaq.com>, David Andersen <dga@lcs.mit.edu>
* A failure to allocate memory for auxiliary TCP data is now fatal.ru2000-10-191-16/+15
| | | | | This fixes a null pointer dereference problem that is unlikely to happen in normal circumstances.
* A bit of indentation reformatting.ru2000-10-021-33/+21
|
* Fixed the calculations with UDP header length field.ru2000-09-211-2/+2
| | | | | | | The field is in network byte order and contains the size of the header. Reviewed by: brian
* Add -Wmissing-prototypes.ru2000-09-152-5/+8
|
* Match IPPROTO_ICMP with IP protocol field of the original IPru2000-09-011-2/+2
| | | | | | | datagram embedded into ICMP error message, not with protocol field of ICMP message itself (which is always IPPROTO_ICMP). Pointed by: Erik Salander <erik@whistle.com>
* Changed the way we handle outgoing ICMP error messages -- doru2000-09-011-12/+22
| | | | | | | | not alias `ip_src' unless it comes from the host an original datagram that triggered this error message was destined for. PR: 20712 Reviewed by: brian, Charles Mott <cmott@scientech.com>
* Grab ADJUST_CHECKSUM() macro from alias_local.h.ru2000-08-311-17/+0
|
* Create aliasing links for incoming ICMP echo/timestamp requests.ru2000-08-312-47/+24
| | | | | This makes outgoing ICMP echo/timestamp replies to be de-aliased with the right source IP, not exactly the primary aliasing IP.
* strtok -> strsep (no strtok allowed in libraries)ache2000-08-291-3/+6
| | | | add unsigned char cast to ctype macro
* Fixed PunchFW code segmentation violation bug.ru2000-08-141-5/+4
| | | | Reported by: Christian Schade <chris@cube.sax.de>
* Use queue(3) LIST_* macros for doubly-linked lists.ru2000-08-141-65/+18
|
* - Do not modify Peer's Call ID in outgoing Incoming-Call-Connectedru2000-08-091-18/+25
| | | | | | | | PPTP control messages. - Cosmetics: replace `GRE link' with `PPTP link'. Reviewed by: Erik Salander <erik@whistle.com>
* Adjust TCP checksum rather than compute it afresh.ru2000-08-071-4/+8
| | | | Submitted by: Erik Salander <erik@whistle.com>
* Whitespace only:sheldonh2000-07-311-4/+4
| | | | | Fix an overlong line and trailing whitespace that crept in, in the previous commit.
* Add address translation support for RTSP/RTP used by RealPlayer andarchie2000-07-268-3/+819
| | | | | | | | Quicktime streaming media applications. Add a BUGS section to the man page. Submitted by: Erik Salander <erik@whistle.com>
* Fixed PunchFWHole():ru2000-06-271-2/+3
| | | | | - ipfw always rejected rule with `neither in nor out' diagnostics. - number of src/dst ports was not set properly.
* - Removed PacketAliasPptp() API function.ru2000-06-204-38/+1
| | | | - SHLIB_MAJOR++.
* Added true support for PPTP aliasing. Some nice features include:ru2000-06-207-11/+422
| | | | | | | | | | | | | | | | | | | | - Multiple PPTP clients behind NAT to the same or different servers. - Single PPTP server behind NAT -- you just need to redirect TCP port 1723 to a local machine. Multiple servers behind NAT is possible but would require a simple API change. - No API changes! For more information on how this works see comments at the start of the alias_pptp.c. PacketAliasPptp() is no longer necessary and will be removed soon. Submitted by: Erik Salander <erik@whistle.com> Reviewed by: ru Rewritten by: ru Reviewed by: Erik Salander <erik@whistle.com>
* - Improved passive mode FTP support by aliasing 229 replies.ru2000-06-161-312/+337
| | | | | - Stricter checking of PORT/EPRT/227/229 messages format. - Moved all security checks into one place.
* - Added support for passive mode FTP by aliasing 227 replies.ru2000-06-143-15/+228
| | | | | | | | | | | | | | | It does mean that it is now possible to run passive-mode FTP server behind NAT. - SECURITY: FTP aliasing engine now ensures that: o the segment preceding a PORT/227 segment terminates with a \r\n; o the IP address in the PORT/227 matches the source IP address of the packet; o the port number in the PORT command or 277 reply is greater than or equal to 1024. Submitted by: Erik Salander <erik@whistle.com> Reviewed by: ru
* Revert the default behaviour for incoming connections sobrian2000-05-112-3/+3
| | | | | | | | that they (once again) go to the target machine rather than the alias address. PR: 18354 Submitted by: ru
* Replace PacketAliasRedirectPptp() (which had nothing specificru2000-04-285-111/+88
| | | | | | | to PPTP) with more generic PacketAliasRedirectProto(). Major number is not bumped because it is believed that noone has started using PacketAliasRedirectPptp() yet.
* Spell PacketAliasRedirectAddr() correctly.ru2000-04-271-1/+1
|
* Load Sharing using IP Network Address Translation (RFC 2391, LSNAT).ru2000-04-273-27/+150
| | | | | | LSNAT links are first created by either PacketAliasRedirectPort() or PacketAliasRedirectAddress() and then set up by one or more calls to PacketAliasAddServer().
* Add support for multiple PPTP sessions:ru2000-04-185-88/+265
| | | | | | | - new API function: PacketAliasRedirectPptp() - new mode bit: PKT_ALIAS_DENY_PPTP Please see manual page for details.
OpenPOWER on IntegriCloud