groundzero
12-01-2000, 12:05 PM
Look at this shell script for me.
#!/bin/bash
echo "Turning on IP_FWRD and MASQ"
echo 1 /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 10.0.0.0/24 -j MASQ
echo "FIN"
OK when i exe this it return the following....
Turning on IP Forwarding and IP Masqing
:No such file or directoryipv4/ip_forwarding
'for -Pchains:invalid policy DENY
Try '/sbin/ipchain -h bla bla bla
FIN
However I can exe each of the commands at a terminal?
What the heck is up with that
BTW im new to Shell scripting
THANX
------------------
Groundzer0......
Please stop me before I format again. (Im a Serial Formater)
#!/bin/bash
echo "Turning on IP_FWRD and MASQ"
echo 1 /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 10.0.0.0/24 -j MASQ
echo "FIN"
OK when i exe this it return the following....
Turning on IP Forwarding and IP Masqing
:No such file or directoryipv4/ip_forwarding
'for -Pchains:invalid policy DENY
Try '/sbin/ipchain -h bla bla bla
FIN
However I can exe each of the commands at a terminal?
What the heck is up with that
BTW im new to Shell scripting
THANX
------------------
Groundzer0......
Please stop me before I format again. (Im a Serial Formater)