2.5.x new amanda conntrack + NAT support
Subsystems (2)
PATCH 1/1 2.5.x new amanda conntrack + NAT support
Hi Dave!
This is the 2.5.x merge of the 2.4.x amanda patch I've sent you yesterday.
It also includes a small cosmetic update to net/ipv4/netfilter/Makefile
Please apply, thanks.
include/linux/netfilter_ipv4/ip_conntrack.h +2 -0
@@ -63,12 +63,14 @@ };/* Add protocol helper include file here */ +#include <linux/netfilter_ipv4/ip_conntrack_amanda.h> #include <linux/netfilter_ipv4/ip_conntrack_ftp.h> #include <linux/netfilter_ipv4/ip_conntrack_irc.h> /* per expectation: application helper private data */ union ip_conntrack_expect_help {/* insert conntrack helper private data (expect) here */ +struct ip_ct_amanda_expect exp_amanda_info;struct ip_ct_ftp_expect exp_ftp_info;struct ip_ct_irc_expect exp_irc_info;
include/linux/netfilter_ipv4/ip_conntrack_amanda.h +29 -0
@@ -0,0 +1,29 @@ +#ifndef _IP_CONNTRACK_AMANDA_H +#define _IP_CONNTRACK_AMANDA_H +/* AMANDA tracking. */ + +#ifdef __KERNEL__ + +#include <linux/netfilter_ipv4/lockhelp.h> + +/* Protects amanda part of conntracks */ +DECLARE_LOCK_EXTERN (ip_amanda_lock); + +#endif + +struct conn { +char * match; +int matchlen; +}; + +#define NUM_MSGS 3 + + +struct ip_ct_amanda_expect +{ +u_int16_t port;/* port number of this expectation */ +u_int16_t offset;/* offset of the port specification in ctrl packet */ +u_int16_t len;/* the length of the port number specification */ +}; + +#endif /* _IP_CONNTRACK_AMANDA_H */
net/ipv4/netfilter/Kconfig +20 -0
@@ -59,6 +59,20 @@ If you want to compile it as a module, say M here and read <file:Documentation/modules.txt>. If unsure, say `Y'. +config IP_NF_AMANDA + tristate "Amanda backup protocol support" + depends on IP_NF_CONNTRACK + help + If you are running the Amanda backup package (http://www.amanda.org/) + on this machine or machines that will be MASQUERADED through this + machine, then you may want to enable this feature. This allows the + connection tracking and natting code to allow the sub-channels that + Amanda requires for communication of the backup data, messages and + index. + + If you want to compile it as a module, say M here and read + <file:Documentation/modules.txt>. If unsure, say `Y'. + config IP_NF_QUEUE tristate "Userspace queueing via NETLINK (EXPERIMENTAL)" depends on EXPERIMENTAL
@@ -393,6 +407,12 @@ default m if IP_NF_FTP=m config IP_NF_NAT_TFTP + tristate + depends on IP_NF_IPTABLES!=n && IP_NF_CONNTRACK!=n && IP_NF_NAT!=n + default IP_NF_NAT if IP_NF_TFTP=y + default m if IP_NF_TFTP=m + +config IP_NF_NAT_AMANDA tristate depends on IP_NF_IPTABLES!=n && IP_NF_CONNTRACK!=n && IP_NF_NAT!=n default IP_NF_NAT if IP_NF_TFTP=y
net/ipv4/netfilter/Makefile +2 -4
@@ -20,15 +20,13 @@ obj-$(CONFIG_IP_NF_CONNTRACK) += ip_conntrack.o # connection tracking helpers +obj-$(CONFIG_IP_NF_AMANDA) += ip_conntrack_amanda.o obj-$(CONFIG_IP_NF_TFTP) += ip_conntrack_tftp.o obj-$(CONFIG_IP_NF_FTP) += ip_conntrack_ftp.o -ifdef CONFIG_IP_NF_NAT_FTP -endif obj-$(CONFIG_IP_NF_IRC) += ip_conntrack_irc.o -ifdef CONFIG_IP_NF_NAT_IRC -endif # NAT helpers +obj-$(CONFIG_IP_NF_NAT_AMANDA) += ip_nat_amanda.o obj-$(CONFIG_IP_NF_NAT_TFTP) += ip_nat_tftp.o obj-$(CONFIG_IP_NF_NAT_FTP) += ip_nat_ftp.o obj-$(CONFIG_IP_NF_NAT_IRC) += ip_nat_irc.o
net/ipv4/netfilter/ip_conntrack_amanda.c +233 -0
233 lines not on this page · raw message
net/ipv4/netfilter/ip_nat_amanda.c +226 -0
226 lines not on this page · raw message
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
David S. Miller
Applied From: Harald Welte <[email protected]>
Date: Mon, 31 Mar 2003 18:23:43 +0200
This is the 2.5.x merge of the 2.4.x amanda patch I've sent you yesterday.
It also includes a small cosmetic update to net/ipv4/netfilter/Makefile
Applied, thanks.