diff options
author | ru <ru@FreeBSD.org> | 2000-04-28 13:44:49 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-04-28 13:44:49 +0000 |
commit | 68665ff50512fd9baa5bc783a90faac11670b0dd (patch) | |
tree | e1f95cf27693e2b2b9ba04c34b7ce93a735af52e /sys/netinet/libalias/libalias.3 | |
parent | 7d9c02b334e0099d2c0540c996a5f1341959276a (diff) | |
download | FreeBSD-src-68665ff50512fd9baa5bc783a90faac11670b0dd.zip FreeBSD-src-68665ff50512fd9baa5bc783a90faac11670b0dd.tar.gz |
Replace PacketAliasRedirectPptp() (which had nothing specific
to PPTP) with more generic PacketAliasRedirectProto().
Major number is not bumped because it is believed that noone
has started using PacketAliasRedirectPptp() yet.
Diffstat (limited to 'sys/netinet/libalias/libalias.3')
-rw-r--r-- | sys/netinet/libalias/libalias.3 | 39 |
1 files changed, 10 insertions, 29 deletions
diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3 index 924262b..0344af5 100644 --- a/sys/netinet/libalias/libalias.3 +++ b/sys/netinet/libalias/libalias.3 @@ -227,15 +227,6 @@ Normal packet aliasing is not performed. See .Fn PacketAliasProxyRule below for details. -.It Dv PKT_ALIAS_DENY_PPTP -If this mode bit is set, all PPTP packets will be marked for being ignored -(both -.Fn PacketAliasIn -and -.Fn PacketAliasOut -return -.Dv PKT_ALIAS_IGNORED -code). .El .Ed .Pp @@ -647,25 +638,17 @@ access, or to restrict access to certain external machines. .Ed .Pp .Ft struct alias_link * -.Fo PacketAliasRedirectPptp +.Fo PacketAliasRedirectProto .Fa "struct in_addr local_addr" .Fa "struct in_addr remote_addr" .Fa "struct in_addr alias_addr" +.Fa "u_char proto" .Fc .Bd -ragged -offset indent -This function specifies that any Point to Point Tunneling Protocol -(PPTP) traffic from a given remote address to an alias address be +This function specifies that any IP packet with protocol number of +.Fa proto +from a given remote address to an alias address be redirected to a specified local address. -Currently supported PPTP protocols include: -.Pp -.Bl -tag -width "IPPROTO_GRE" -compact -.It IPPROTO_GRE -Generic Routing Encapsulation (RFC 1702) -.It IPPROTO_ESP -IP Encapsulating Security Payload (RFC 1827) -.It IPPROTO_AH -IP Authentication Header (RFC 1826) -.El .Pp If .Fa local_addr @@ -678,16 +661,16 @@ is to be used. Even if .Fn PacketAliasSetAddress is called to change the address after -.Fn PacketAliasRedirectPptp +.Fn PacketAliasRedirectProto is called, a zero reference will track this change. .Pp If .Fa remote_addr -is zero, this indicates to redirect PPTP packets from any remote address. +is zero, this indicates to redirect packets from any remote address. Non-zero remote addresses can sometimes be useful for firewalling. .Pp If two calls to -.Fn PacketAliasRedirectPptp +.Fn PacketAliasRedirectProto overlap in their address specifications, then the most recent call will have precedence. .Pp @@ -713,10 +696,8 @@ then PPTP aliasing is disabled. .Pp .Bf -symbolic This function is made obsolete by -.Fn PacketAliasRedirectPptp -and -.Dv PKT_ALIAS_DENY_PPTP -mode bit, and is provided only for backward compatibility. +.Fn PacketAliasRedirectProto , +and is provided only for backward compatibility. .Ef .Ed .Sh FRAGMENT HANDLING |