Hi guys
I need help getting my iptables script to run on my RedHat 7.3 box.
The script is as follows
which is in /sbin, but when i run the script and do a scan on myself the ports are still open!Code:#!/bin/bash ./iptables -A INPUT -p udp --dport 68 -j REJECT ./iptables -A INPUT -p udp --dport 1025 -j REJECT ./iptables -A INPUT -p udp --dport 111 -j REJECT ./iptables -A INPUT -p udp --dport 1024 -j REJECT ./iptables -A INPUT -p tcp --dport 25 -j REJECT ./iptables -A INPUT -p tcp --dport 111 -j REJECT ./iptables -A INPUT -p tcp --dport 1024 -j REJECT ./iptables -A INPUT -p tcp --dport 1025 -j REJECT ./iptables -A INPUT -p tcp --dport 6000 -j REJECT
Ive tried typing iptables -V but i get 'command not found' which i think means that iptables is not loaded.
Ive also tried ipchains -V which gives me the same message so that isnt loaded!
I dont know what else to do so any help would be great!
Cheers
r3b00+




Reply With Quote