From 046802948f00eff315a3acf801c1e6f88929593d Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Fri, 21 May 2010 15:02:47 +0200 Subject: [PATCH] Turn on IP forwarding in sysctl.conf --- rpm_spec/core-netvm.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 2e921e1..99404df 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -63,6 +63,13 @@ mkdir -p $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/ cp qubes_nmhook $RPM_BUILD_ROOT/etc/NetworkManager/dispatcher.d/ %post +sed 's/^net.ipv4.ip_forward.*/net.ipv4.ip_forward = 1/' -i /etc/sysctl.conf +usermod -L root +usermod -L user +if ! [ -f /var/lib/qubes/serial.orig ] ; then + cp /etc/event.d/serial /var/lib/qubes/serial.orig +fi + if [ "$1" != 1 ] ; then # do this whole %post thing only when updating for the first time... exit 0