Hello,
I have typed in a bash script for a Firewall book by Robert Ziegler and I am debugging my typos and I am stuck on my latest.
The bash code hits a for loop
Code:
# Disable Source Routed Packets
for f in /proc/sys/net/ipv4/conf/*/accept_source_route; do
echo 0 > $f
done
which gives a syntax error near unexpected token do'
I checked the line and its as printed. I've checked the directory wildcard and its correct for my distro (Fedora Core 3).
I've tried putting the do on the next line and stripping off the semi-colon but none of this corrects the behaviour.
Any ideas anyone, I'm stuck here until help is forthcoming.
Thanks in advance
Meadensi