- Posts: 15
- Thank you received: 0
IPCOP - How to block IP address's, ranges etc...
13 years 9 months ago #35944
by stevied81
Replied by stevied81 on topic Re: IPCOP - How to block IP address's, ranges etc...
oh and i made a mistake so went out and went back in and it says i must delete the .rc.local.sw file. ?
13 years 9 months ago #35945
by DaLight
Replied by DaLight on topic Re: IPCOP - How to block IP address's, ranges etc...
To delete:
[code:1]rm .rc.local.sw[/code:1]
[code:1]rm .rc.local.sw[/code:1]
13 years 9 months ago #35950
by stevied81
Replied by stevied81 on topic trying to edit Chain NEW_local_chk
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
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
13 years 9 months ago #35953
by DaLight
Replied by DaLight on topic Re: IPCOP - How to block IP address's, ranges etc...
Did you run:
[code:1]./rc.local[/code:1]
after editing rc.local?
[code:1]./rc.local[/code:1]
after editing rc.local?
13 years 9 months ago #35955
by stevied81
Replied by stevied81 on topic Re: IPCOP - How to block IP address's, ranges etc...
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
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
13 years 9 months ago #35956
by DaLight
Replied by DaLight on topic Re: IPCOP - How to block IP address's, ranges etc...
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]
[code:1] grep rc.local *
[/code:1]
Time to create page: 0.137 seconds