mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Artur Wiebe <artur@4wiebe.de>
To: ptxdist@pengutronix.de
Cc: Artur Wiebe <artur@4wiebe.de>
Subject: [ptxdist] [PATCH] systemd: IP forwarding and masquerading support
Date: Wed, 27 Apr 2016 16:13:28 +0200	[thread overview]
Message-ID: <1461766408-19230-1-git-send-email-artur@4wiebe.de> (raw)

Signed-off-by: Artur Wiebe <artur@4wiebe.de>
---
 rules/systemd.in   | 8 ++++++++
 rules/systemd.make | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/systemd.in b/rules/systemd.in
index c58e424..876a890 100644
--- a/rules/systemd.in
+++ b/rules/systemd.in
@@ -19,6 +19,7 @@ menuconfig SYSTEMD
 	select LZ4		if SYSTEMD_LZ4
 	select LIBSECCOMP	if SYSTEMD_SECCOMP
 	select LIBSELINUX	if GLOBAL_SELINUX
+	select IPTABLES		if SYSTEMD_IPMASQUERADE
 	# for udev:
 	select ROOTFS_DEV
 	select LIBKMOD
@@ -81,6 +82,13 @@ config SYSTEMD_NETWORK
 	bool
 	prompt "network configuration with systemd"
 
+config SYSTEMD_IPMASQUERADE
+	bool
+	depends on SYSTEMD_NETWORK
+	prompt "IP forwarding and masquerading support"
+	help
+	  Pv4/IPv6 support also needs to be enabled in iptables package
+
 config SYSTEMD_TIMEDATE
 	bool
 	default y
diff --git a/rules/systemd.make b/rules/systemd.make
index dbf62f5..71c633a 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -92,7 +92,7 @@ SYSTEMD_CONF_OPT	:= \
 	--disable-microhttpd \
 	--disable-libcurl \
 	--disable-libidn \
-	--disable-libiptc \
+	--$(call ptx/endis,PTXCONF_SYSTEMD_IPMASQUERADE)-libiptc \
 	--disable-binfmt \
 	--$(call ptx/endis,PTXCONF_SYSTEMD_VCONSOLE)-vconsole \
 	--enable-bootchart \
-- 
2.8.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2016-04-27 14:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461766408-19230-1-git-send-email-artur@4wiebe.de \
    --to=artur@4wiebe.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox