matey3
September 5th, 2008, 09:09 AM
Hello;
Can someone post either copy of IP inputs in their /etc/hosts.deny file or post the Correct way of inputting the IP addresses in there please?
No matter what I put there I get an error. (My log file is /var/log/auth.log btw,)
Like when I put : (colon) to separate the IP addresses I get:
warning: /etc/hosts.deny, line 21: missing ":" separator
Or when I put a \ (backslash) I get:
warning: /etc/hosts.deny, line 31: missing newline or line too long
Here's part of my hosts.deny: (And I dont care if YOUR IP address is in the *hitlist) :D lol j/k ;)
# versions of Debian this has been the default.
# ALL: PARANOID
ALL:
79.187.241.62\
82.50.250.22\
82.179.130.135\
69.80.255.165\
219.150.196.6\
83.16.112.18\
222.191.240.194\
219.150.196.0/12\
168.234.227.2\
219.150.196.6\
200.228.120.130\
I Have searched the net but found many diff. versions. many of them put a comma , between the IP addresses but that was the 1st try and of course got the same error?!But most site won't even post this portion of their .deny file I dont know why? May be CYA policy? but any way they could've used private IP addresses or A.B.C.. as examples...
Thanks a lot!
oh I am using Debian/Ubuntu Feisty 7.04 btw.
Can someone post either copy of IP inputs in their /etc/hosts.deny file or post the Correct way of inputting the IP addresses in there please?
No matter what I put there I get an error. (My log file is /var/log/auth.log btw,)
Like when I put : (colon) to separate the IP addresses I get:
warning: /etc/hosts.deny, line 21: missing ":" separator
Or when I put a \ (backslash) I get:
warning: /etc/hosts.deny, line 31: missing newline or line too long
Here's part of my hosts.deny: (And I dont care if YOUR IP address is in the *hitlist) :D lol j/k ;)
# versions of Debian this has been the default.
# ALL: PARANOID
ALL:
79.187.241.62\
82.50.250.22\
82.179.130.135\
69.80.255.165\
219.150.196.6\
83.16.112.18\
222.191.240.194\
219.150.196.0/12\
168.234.227.2\
219.150.196.6\
200.228.120.130\
I Have searched the net but found many diff. versions. many of them put a comma , between the IP addresses but that was the 1st try and of course got the same error?!But most site won't even post this portion of their .deny file I dont know why? May be CYA policy? but any way they could've used private IP addresses or A.B.C.. as examples...
Thanks a lot!
oh I am using Debian/Ubuntu Feisty 7.04 btw.