I justed switched from SuSE 7.3 to RedHat 7.2.
On my SuSE I used the following script to secure my Server:

#!/bin/bash
IPT="/sbin/iptables"
LAN="eth0"
WEB="ppp0"

#Load the module.
modprobe ip_tables

#Flush old rules, delete the firewall chain if it exists
$IPT -F
$IPT -F -t nat
$IPT -X firewall

#Setup Masquerading. Change the IP to your internal network and 
uncomment
#this in order to enable it.
$IPT -A POSTROUTING -t nat -s 192.168.0.1/24 -j MASQUERADE
$IPT -P FORWARD ACCEPT

...and so on.

When I try to run it on my RedHat I get the following message:

On the first run: Do you need to insmod?

On the second run:

./rc.firewall_012: modprobe: command not found
./rc.firewall_012: iptables: command not found
./rc.firewall_012: iptables: command not found
./rc.firewall_012: iptables: command not found
./rc.firewall_012: iptables: command not found
./rc.firewall_012: iptables: command not found

/sbin/lsmod shows the wollowing:

ipt_LOG                 4000   1  (autoclean)
ipt_MASQUERADE          1824   1  (autoclean)
iptable_nat            18452   0  (autoclean) [ipt_MASQUERADE]
ip_conntrack           17068   1  (autoclean) [ipt_MASQUERADE 
iptable_nat]
iptable_filter          2272   0  (autoclean) (unused)
ip_tables              11424   6  [ipt_LOG ipt_MASQUERADE 
iptable_nat iptable_filter]

What's wrong here?!

-- 
Jochen



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to