Nailz
10-09-2000, 10:32 AM
Quick Question re: IPCHAINS.
I'm running RH6.2. I have 2 pc's (the second is running Win98/Win2000/NT4 depending on what I'm working on). NIC 1 (eth0) on the Linux box is DHCP (to my cable modem), NIC 2 (eth1) is set at 192.168.0.1. The Win box is 192.168.0.2 with .1 as the gateway.
I have a basic script that should enable IP forwarding:
ipchains -P forward DENY
ipchains -A forward -s 192.168.0.1/255.255.255.0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
I can run each of these lines separately from the command line, however if I make the script executable (chmod +x filename), then I get the following error messages:
Try 'ipchains -h' or 'ipchains --help' for more info.
Try 'ipchains -h' or 'ipchains --help' for more info.
:No such file or directory4/ip_forward
Again, I can run each command separately without problem.
------------------
Bow down before the one you serve
You're gonna get what you deserve...
- Nine Inch Nails
I'm running RH6.2. I have 2 pc's (the second is running Win98/Win2000/NT4 depending on what I'm working on). NIC 1 (eth0) on the Linux box is DHCP (to my cable modem), NIC 2 (eth1) is set at 192.168.0.1. The Win box is 192.168.0.2 with .1 as the gateway.
I have a basic script that should enable IP forwarding:
ipchains -P forward DENY
ipchains -A forward -s 192.168.0.1/255.255.255.0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
I can run each of these lines separately from the command line, however if I make the script executable (chmod +x filename), then I get the following error messages:
Try 'ipchains -h' or 'ipchains --help' for more info.
Try 'ipchains -h' or 'ipchains --help' for more info.
:No such file or directory4/ip_forward
Again, I can run each command separately without problem.
------------------
Bow down before the one you serve
You're gonna get what you deserve...
- Nine Inch Nails