Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6a5de813
Commit
6a5de813
authored
21 years ago
by
Stephen Frost
Committed by
David S. Miller
21 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: Add "recent" iptables facility.
parent
9e10ad0f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1030 additions
and
1 deletion
+1030
-1
include/linux/netfilter_ipv4/ipt_recent.h
include/linux/netfilter_ipv4/ipt_recent.h
+27
-0
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Kconfig
+14
-1
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/Makefile
+3
-0
net/ipv4/netfilter/ipt_recent.c
net/ipv4/netfilter/ipt_recent.c
+986
-0
No files found.
include/linux/netfilter_ipv4/ipt_recent.h
0 → 100644
View file @
6a5de813
#ifndef _IPT_RECENT_H
#define _IPT_RECENT_H
#define RECENT_NAME "ipt_recent"
#define RECENT_VER "v0.3.1"
#define IPT_RECENT_CHECK 1
#define IPT_RECENT_SET 2
#define IPT_RECENT_UPDATE 4
#define IPT_RECENT_REMOVE 8
#define IPT_RECENT_TTL 16
#define IPT_RECENT_SOURCE 0
#define IPT_RECENT_DEST 1
#define IPT_RECENT_NAME_LEN 200
struct
ipt_recent_info
{
u_int32_t
seconds
;
u_int32_t
hit_count
;
u_int8_t
check_set
;
u_int8_t
invert
;
char
name
[
IPT_RECENT_NAME_LEN
];
u_int8_t
side
;
};
#endif
/*_IPT_RECENT_H*/
This diff is collapsed.
Click to expand it.
net/ipv4/netfilter/Kconfig
View file @
6a5de813
...
@@ -63,7 +63,7 @@ config IP_NF_AMANDA
...
@@ -63,7 +63,7 @@ config IP_NF_AMANDA
tristate "Amanda backup protocol support"
tristate "Amanda backup protocol support"
depends on IP_NF_CONNTRACK
depends on IP_NF_CONNTRACK
help
help
If you are running the Amanda backup package
(http://www.amanda.org/)
If you are running the Amanda backup package
<http://www.amanda.org/>
on this machine or machines that will be MASQUERADED through this
on this machine or machines that will be MASQUERADED through this
machine, then you may want to enable this feature. This allows the
machine, then you may want to enable this feature. This allows the
connection tracking and natting code to allow the sub-channels that
connection tracking and natting code to allow the sub-channels that
...
@@ -161,6 +161,19 @@ config IP_NF_MATCH_TOS
...
@@ -161,6 +161,19 @@ config IP_NF_MATCH_TOS
If you want to compile it as a module, say M here and read
If you want to compile it as a module, say M here and read
<file:Documentation/modules.txt>. If unsure, say `N'.
<file:Documentation/modules.txt>. If unsure, say `N'.
config IP_NF_MATCH_RECENT
tristate "recent match support"
depends on IP_NF_IPTABLES
help
This match is used for creating one or many lists of recently
used addresses and then matching against that/those list(s).
Short options are available by using 'iptables -m recent -h'
Official Website: <http://snowman.net/projects/ipt_recent/>
If you want to compile it as a module, say M here and read
<file:Documentation/modules.txt>. If unsure, say `N'.
config IP_NF_MATCH_ECN
config IP_NF_MATCH_ECN
tristate "ECN match support"
tristate "ECN match support"
depends on IP_NF_IPTABLES
depends on IP_NF_IPTABLES
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/netfilter/Makefile
View file @
6a5de813
...
@@ -49,6 +49,9 @@ obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o
...
@@ -49,6 +49,9 @@ obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o
obj-$(CONFIG_IP_NF_MATCH_MULTIPORT)
+=
ipt_multiport.o
obj-$(CONFIG_IP_NF_MATCH_MULTIPORT)
+=
ipt_multiport.o
obj-$(CONFIG_IP_NF_MATCH_OWNER)
+=
ipt_owner.o
obj-$(CONFIG_IP_NF_MATCH_OWNER)
+=
ipt_owner.o
obj-$(CONFIG_IP_NF_MATCH_TOS)
+=
ipt_tos.o
obj-$(CONFIG_IP_NF_MATCH_TOS)
+=
ipt_tos.o
obj-$(CONFIG_IP_NF_MATCH_RECENT)
+=
ipt_recent.o
obj-$(CONFIG_IP_NF_MATCH_ECN)
+=
ipt_ecn.o
obj-$(CONFIG_IP_NF_MATCH_ECN)
+=
ipt_ecn.o
obj-$(CONFIG_IP_NF_MATCH_DSCP)
+=
ipt_dscp.o
obj-$(CONFIG_IP_NF_MATCH_DSCP)
+=
ipt_dscp.o
obj-$(CONFIG_IP_NF_MATCH_AH_ESP)
+=
ipt_ah.o ipt_esp.o
obj-$(CONFIG_IP_NF_MATCH_AH_ESP)
+=
ipt_ah.o ipt_esp.o
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/netfilter/ipt_recent.c
0 → 100644
View file @
6a5de813
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment