From ffff52b647e3941c6fd4852774d8d021c39c0803 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Fri, 17 May 2013 17:46:39 +0300 Subject: linux-yocto: added kernel configurations for iptables nat table Signed-off-by: Mihai Prica --- .../linux/linux-yocto/iptables-nat.cfg | 21 +++++++++++++++++++++ .../linux/linux-yocto/iptables-nat.scc | 4 ++++ .../recipes-kernel/linux/linux-yocto_3.4.bbappend | 5 +++++ .../recipes-kernel/linux/linux-yocto_3.8.bbappend | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.cfg create mode 100644 meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.scc create mode 100644 meta-openstack/recipes-kernel/linux/linux-yocto_3.4.bbappend create mode 100644 meta-openstack/recipes-kernel/linux/linux-yocto_3.8.bbappend (limited to 'meta-openstack') diff --git a/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.cfg b/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.cfg new file mode 100644 index 0000000..6e1cff7 --- /dev/null +++ b/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.cfg @@ -0,0 +1,21 @@ +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_NAT_PROTO_UDPLITE=m +CONFIG_NF_NAT_PROTO_SCTP=m +CONFIG_NF_NAT_AMANDA=m +CONFIG_NF_NAT_FTP=m +CONFIG_NF_NAT_IRC=m +CONFIG_NF_NAT_SIP=m +CONFIG_NF_NAT_TFTP=m + +CONFIG_NETFILTER_XT_TARGET_NETMAP=m + +CONFIG_NETFILTER_XT_TARGET_REDIRECT=m + +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_IP_NF_TARGET_NETMAP=m +CONFIG_IP_NF_TARGET_REDIRECT=m +CONFIG_NF_NAT_PROTO_GRE=m +CONFIG_NF_NAT_PPTP=m +CONFIG_NF_NAT_H323=m diff --git a/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.scc b/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.scc new file mode 100644 index 0000000..9faf22e --- /dev/null +++ b/meta-openstack/recipes-kernel/linux/linux-yocto/iptables-nat.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Enable iptables nat" +define KFEATURE_COMPATIBILITY board + +kconf non-hardware iptables-nat.cfg diff --git a/meta-openstack/recipes-kernel/linux/linux-yocto_3.4.bbappend b/meta-openstack/recipes-kernel/linux/linux-yocto_3.4.bbappend new file mode 100644 index 0000000..02bf487 --- /dev/null +++ b/meta-openstack/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PRINC := "${@int(PRINC) + 1}" + +SRC_URI += "file://iptables-nat.scc" + diff --git a/meta-openstack/recipes-kernel/linux/linux-yocto_3.8.bbappend b/meta-openstack/recipes-kernel/linux/linux-yocto_3.8.bbappend new file mode 100644 index 0000000..02bf487 --- /dev/null +++ b/meta-openstack/recipes-kernel/linux/linux-yocto_3.8.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +PRINC := "${@int(PRINC) + 1}" + +SRC_URI += "file://iptables-nat.scc" + -- cgit v1.2.3-54-g00ecf