summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-17 13:01:49 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-17 13:01:49 +0000
commit24c980292843b7b9aebc9f1831c6c1e8ba49c148 (patch)
tree81e0800053aaa9c793d47c72d2ea8aaeaaf06546 /target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
parent55e2d9bdb5017342166af67b7289956113ffc4ea (diff)
downloadbuildroot-novena-24c980292843b7b9aebc9f1831c6c1e8ba49c148.tar.gz
buildroot-novena-24c980292843b7b9aebc9f1831c6c1e8ba49c148.zip
Update atngw100 target skeleton
Diffstat (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables')
-rwxr-xr-xtarget/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
index dff63c200..2ccadde6c 100755
--- a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
+++ b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S22iptables
@@ -2,7 +2,7 @@
IPTABLES=`which iptables`
-echo "Enable NAT: "
+echo "Enable NAT:"
echo -n " IPv4 forwarding: "
if echo 1 > /proc/sys/net/ipv4/ip_forward; then
echo "done"
@@ -17,7 +17,7 @@ if [ ! -x "${IPTABLES}" ]; then
exit 1
fi
-if ${IPTABLES} -t nat -A POSTROUTING -o eth0 -j MASQUERADE > /dev/null 2> /dev/null; then
+if ${IPTABLES} -t nat -A POSTROUTING -o eth0 -j MASQUERADE; then
echo "done"
else
echo "failed"
@@ -25,7 +25,7 @@ else
fi
echo -n " iptables incoming trafic: "
-if ${IPTABLES} -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT > /dev/null 2> /dev/null; then
+if ${IPTABLES} -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT; then
echo "done"
else
echo "failed"
@@ -33,7 +33,7 @@ else
fi
echo -n " iptables outgoung trafic: "
-if ${IPTABLES} -A FORWARD -i eth1 -o eth0 -j ACCEPT > /dev/null 2> /dev/null; then
+if ${IPTABLES} -A FORWARD -i eth1 -o eth0 -j ACCEPT; then
echo "done"
else
echo "failed"