Skip to main content

IPCOP - How to block IP address's, ranges etc...

More
13 years 9 months ago #35944 by stevied81
oh and i made a mistake so went out and went back in and it says i must delete the .rc.local.sw file. ?
More
13 years 9 months ago #35945 by DaLight
To delete:
[code:1]rm .rc.local.sw[/code:1]
More
13 years 9 months ago #35950 by stevied81
Hi

I managed to edit rc.local finally. However when I do a iptables -L from the command it isnt showing in the Chain NEW_local_chk
So I presume I should not have edited the rc.local file but a different one?? How would I find this chain? I did dir whilst in the Folder /etc/rc.d and didnt see a folder in there called NEW_local_chk if that is what I am looking for.

Thank you
More
13 years 9 months ago #35953 by DaLight
Did you run:
[code:1]./rc.local[/code:1]
after editing rc.local?
More
13 years 9 months ago #35955 by stevied81
yes and then even restarted the firewall. the option has save in that file. but it seems like a different file.
As the rc.local file that i edited didnt even have a old range in it 10.15.0.0 but when i do the #iptables -L then it comes up there, the 10.15.0.0
and my new range 10.14.0.0 does not show up anywhere in the #iptables -L
the place I want to edit looks like this:

Chain NEW_local_chk (1 references)
target prot opt source destination
ACCEPT all -- 10.15.0.0/22 anywhere

now i would like to add 10.14.0.0 to that
More
13 years 9 months ago #35956 by DaLight
copy and paste the contents of your rc.local and also run the following command while in /ect/rc.d and paste the results as well.

[code:1] grep rc.local *
[/code:1]
Time to create page: 0.137 seconds