Okay I setup IPTABLES and want it to use the
/etc/sysconfig/iptables rule file as I am useing webmin and thats the file it updates. But I am geting a error. Here is what happens
[root@router rc3.d]# ./S09iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: iptables-restore v1.2.6a: Line 3 seems to have a -t table option.
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
[root@router rc3.d]#
Okay here is the /etc/sysconfig/iptables file what am I doing wrong?
-------------------------
# Generated by iptables-save v1.2.5 on Wed Oct 16 17:47:42 2002
*nat
:PREROUTING ACCEPT [11:1351]
-A PREROUTING -t nat -p tcp -d 4.3.2.2 --dport 4899 -j DNAT --to 192.168.4.100:4899
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Wed Oct 16 17:47:42 2002
# Generated by iptables-save v1.2.5 on Wed Oct 16 17:47:42 2002
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A FORWARD -m state -i eth0 -o eth1 --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -i eth1 -o eth0 -j ACCEPT
-A FORWARD -m state -i eth0 -o eth2 --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -i eth2 -o eth0 -j ACCEPT
-A FORWARD -m state -i eth0 -o eth3 --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -i eth3 -o eth0 -j ACCEPT
-A FORWARD -m state -i eth0 -o eth4 --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -i eth4 -o eth0 -j ACCEPT
-A FORWARD -p tcp -m tcp -s 192.168.1.0/24 ! -d 192.168.1.0/24 --dport 41031:41900 -j REJECT
-A FORWARD -p tcp -m tcp -m state -i eth0 -o eth4 --dport 4899 --state NEW,ESTABLISHED,RELATED -j ACCEPT -tcp
COMMIT
# Completed on Wed Oct 16 17:47:42 2002
# Generated by webmin
*mangle
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
COMMIT
# Completed
-----------------------
What is wrong with this????