View Full Version : DA-Kiss - DirectAdmin specific firewall based on Kiss v2.0
ProWebUK
11-27-2003, 09:07 PM
KISS Version: 2
DA Specific version: 1
Release: 2
Over the past few weeks i have mentioned a firewall specific for use with DirectAdmin. If you have looked at the recent posts in the DA server checklist, you will have realised the Kiss link was recently updated to v2.0
I have modified the firewall to provide a simpe but very effective method for basic security on your server, I advise all who run Directdmin on RedHat to use this, or another firewall, if you know IPTables then that would also be fine.
IF YOU CURRENTLY HAVE A FIREWALL INSTALLED EITHER REMOVE IT FIRSTLY OR DO NOT INSTALL THIS FIREWALL
Installation does not get any simpler:
Moderator's Note:
The location below is no longer valid.
Try these locations:
The original one can be found here (http://www.geocities.com/steve93138/).
My modified version, modified to work with DirectAdmin and with Plesk PSA, and also with some optional changes (read the code) for ModernBill, can be found here (http://www.nobaloney.net/downloads/kiss/).
# cd /usr/bin
# wget http://optimum-servers.com/downloads/DirectAdmin/kiss2-1.2.tar.gz
# tar -zxvf kiss2-1.2.tar.gz
# rm -f kiss2-1.2.tar.gz
To configure any settings use top section of the KISS file
# pico -w kiss
Run the following commands *anywhere*:
To start KISS
kiss start
To stop KISS
kiss stop
To Restart
kiss restart
To check current status
kiss status
If you make any changes ensure you restart it for the chnages to take effect.
Once it is installed I suggest you double check websites, directadmin, mysql and also into SSH in another window to ensure that you are not locked out.
Once you are sure everything is ok, add the following line to the end of /etc/rc.d/rc.local
/usr/bin/kiss start
Any questions, problems or suggestions feel free to post here :)
FarCry
11-27-2003, 09:17 PM
nice, can you come on msn??
FarCry
11-27-2003, 10:08 PM
For those who use scripts that will message them by ICQ, AIM, or YAHOO (EG: system status monitor, ClientExec, etc)
You need these ports open for TCP_OUT:
ICQ Messengers: 4000
YAHOO Messengers: 5010
AIM Messengers: 5190
If you use MRTG or RRDTool to graph router info, you will need to open SMNP (port 161)
Run game servers?
{HL/CS/DOD/TFC/NS/etc}
Client: 27010
Game: 27015 (if you run more than 1 per IP, you might want 27016 27017 etc open)
{BF1942}
Game: 14567
GameSpy Query: 23000
ASE Query: 14690
{SOF2}
Game: 20100
{QUAKE 3}
Game: 27961
{UT/UT2003}
Game: 7777
Query: 7778
{Jedi Knight 2}
Game: 28070
You can find other games at my page here: http://www.playergraph.com/gamesupport
ProWebUK
11-27-2003, 10:14 PM
If you are unsure what a port is or need additional ports you can also check the following link:
http://forum.rackshack.net/showthread.php?s=&threadid=18618
Chris
synergy
11-29-2003, 08:14 PM
The original geocities script start fine for me. However the DA modified script keeps giving me an error when I try to start it:
: bad interpreter: No such file or directory
I have changed permission etc, but without any luck. Is there any reason the regular kiss script would start fine but not this one? Thank you.
ProWebUK
11-29-2003, 08:27 PM
ensure you remove the previous version firstly, having 2 running will cause problems.
if you cant run kiss start run:
/usr/bin/kiss start
Chris
synergy
11-29-2003, 09:25 PM
Chris, thanks for the quick reply...my post wasn't very clear. I actually tried the DA version first, with no other firewall running at all. After several unsuccessful attempts I downloaded the original KISS script which started on the first try. I then stopped and removed the original KISS script and went back to the DA modified one. No luck. I tried full paths, relative paths, changing to the /usr/bin directory, running from other directories. For now I have removed KISS and just gone back to the APF firewall. Is there any big advantage in running KISS instead of APF? Otherwise I will probably just leave it as is. Thanks again for the suggestions.
ProWebUK
11-29-2003, 10:24 PM
Kiss / APF both as good as each other. I personally prefer Kiss since that is what I have always used.
Are you using telnet or ssh to login? and also are you getting any errors / what does it say when you start it?
Chris
FarCry
11-30-2003, 02:21 PM
he said its saying this:
: bad interpreter: No such file or directory
Which usualy means bad permissions/bad ownership/bad feeding habits.
check the ownership (chown root.root /usr/bin/kiss/), try again.
Im going to put this on the servers at work today :)
interfasys
11-30-2003, 02:47 PM
Did anyone try this in a VPS? APF does not work, so I'm wondering if this one could give better results.
ProWebUK
11-30-2003, 02:49 PM
Don't add it to /etc/rc.local and if it doesnt work / you get locked out a restart will load up without starting the firewall. I believe Kiss V2.0 is set not to lock you out if its wrong anyway,just ensure you leave your current SSH window open whilst you get another window logged into SSH.
Chris
FarCry
11-30-2003, 02:59 PM
Could it be that this just plain wont work on a VPS?
interfasys
11-30-2003, 03:02 PM
I should have explained things better. Installation is not really a problem with APF, except that some kernel modules cannot be found at load times.
The problem is that Passive FTP and some apps like wget don't work anymore afterwards unless you leave every high port open which defeats the purpose of having a tight firewall.
interfasys
11-30-2003, 03:05 PM
Mark, I don't know, but it would be strange if nobody could install firewalls in VPS. I don't see why would anybody want to use a VPS in that case.
FarCry
11-30-2003, 03:32 PM
to be honest i dont actualy know how a VPS works, having always had the luxury of dedicated servers.. But your right, it does seem strange if it wouldnt work.
Anyway, enough spamming these forums for me, i gotta get ready for work :)
interfasys
12-09-2003, 04:50 PM
Quick note : Does not work in a Virtuozzo VPS.
ProWebUK
12-09-2003, 04:57 PM
Thanks for the notification. Can i ask if you get any errors anywhere when installing / running it?
Chris
interfasys
12-09-2003, 05:04 PM
When trying to tun it I get :
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
ProWebUK
12-09-2003, 05:17 PM
Sounds like you problem is quite simple, IP tables does not exist within your VPS.
Are you sure you do have this installed?
Chris
interfasys
12-09-2003, 05:24 PM
Yes.
I get this :
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
when running iptables -L
and a lot more when starting apf.
APF is also complaining about a lot of missing modules but it does start and it does partially work. It's just unusable in a production server.
I can't find a working firewall
ProWebUK
12-09-2003, 05:31 PM
Could you run the following and paste the output:
/sbin/iptables -L -n
Chris
interfasys
12-09-2003, 05:44 PM
Exact same output
ProWebUK
12-09-2003, 05:52 PM
weird.... have you updated your kernel at all since you have had the VPS?
Chris
interfasys
12-09-2003, 05:59 PM
I can't update it myself, but it was updated recently.
2.4.20-020stab009.5.777-enterprise #1 SMP Wed Dec 3 13:30:08 MSK 2003 i686
It's a special version for Virtuozzo
ProWebUK
12-09-2003, 06:08 PM
I'm now thinking the problem may be that the kernel is compiled incorrectly, or alternatively not the same as a default RedHat compile with the modules.
You may also want to contact your provider since versions prior to 2.4.22 are vulnerable to the recent exploit allowing local attackers to gain root privileges.
Further information on that can be found at the following address:
https://rhn.redhat.com/network/errata/errata_details.pxt?eid=1888
Chris
interfasys
12-09-2003, 06:13 PM
Already contacted ;)
I was assured that the hole had been patched.
mega-hos
12-15-2003, 05:56 AM
Hallo
Ive just followed the processes to install kiss 2.0. but when trying to start the firewall i receive this error
-bash: /usr/bin/kiss: Permission denied
ive tryed chmod to 777 but nothing.
any ideas
Originally posted by mega-hos
Hallo
Ive just followed the processes to install kiss 2.0. but when trying to start the firewall i receive this error
-bash: /usr/bin/kiss: Permission denied
ive tryed chmod to 777 but nothing.
any ideas
try doing an ls -l /usr/bin/kiss to verify that it does have execute permissions. If you did the chmod 777 then it should read -rwxrwxrwx , if it does, then that part is fine. The next thing to look at is the interpreter, which by default is /bin/bash make sure that exists and has execute permissions. The last thing to insure, is that you are executing this as root, I don't believe you can run the iptables command as a user, you need to be root to modify the firewall tables.
ProWebUK
12-15-2003, 09:07 AM
from root (you dont need the path), simply run:
kiss start
kiss stop
kiss status
you need to have an argument also (start, stop, status)
The chmod of the file *should* be -rwx------
Chris
mega-hos
12-15-2003, 09:12 AM
when i type kiss start i receive that same error
ProWebUK
12-15-2003, 09:14 AM
/
also what OS are you running?
Chris
ProWebUK
12-15-2003, 09:22 AM
Reading the messages again, are you logged in as root through su -?
Chris
mega-hos
12-15-2003, 09:22 AM
[root@subzero bin]# sh /usr/bin/kiss start
: command not found 9:
: command not found 22:
: command not found 30:
: command not found 44:
: command not found 45:
'usr/bin/kiss: line 311: syntax error near unexpected token `do
'usr/bin/kiss: line 311: `for blocked_ip in $BLOCK_LIST; do
OS RED HAT 9.0
iTS PROBABLY SOMETHING SIMPLE IM NEW TO DEDICATED SERVERS
mega-hos
12-15-2003, 09:24 AM
Yes root access - im going to try a fresh installation
ProWebUK
12-15-2003, 09:34 AM
ensure you remove the file firstly, from root:
# rm -f /usr/bin/kiss
if you have not yet removed / reinstalled it try going directly into the folder then running it:
# cd /usr/bin
# /kiss start
jmccoy
12-15-2003, 03:17 PM
I just tried installing it as well im running on a redhat 9 on a ded server. Installed as root no problems installing when i tried to run it for the first time i got an error about file permission so i look and the permission were set wrong on the file so i fixed them to read -rwx------ got rid of that error now everytime i try to start i get
bad interpreter: no such file or directory
i have tried running it with # /usr/bin/kiss start but still same thing. Any ideas?
Justin
ProWebUK
12-15-2003, 04:29 PM
... are you sure the file exists?
# pico -w /usr/bin/kiss
And check the contents is actually the firewall :p
Chris
jmccoy
12-15-2003, 05:35 PM
Yes it is the filewall...... and it does exist.
I have tried removeing the file and redownloading it thinking maybe i got a bad download but still same thing
: Bad interpreter: No such file or directory
ProWebUK
12-15-2003, 06:36 PM
Give me an hour or two... will do some checking now.
Chris
jmccoy
12-18-2003, 10:04 PM
Did you by any chance figure out anything? No rush i was just wondering. Also thanks for your help on this.
Justin
I have a rather standard IPtables and I'd like to switch to KISS. Can I just install KISS, which will overwrite the excisting IPtables or should I first delete all IPtables lines and then install KISS?
Thanks,
Kark
ProWebUK
01-10-2004, 03:11 AM
Flush all your current rules from iptables firtsly, you should be able to place kiss in place then run:
kiss stop
which should flush your existing rules.
Chris
I'll try that, thanks for the quick response!
I'm not a real firewall guru so I hope someone can help me?! :)
I have installed Kiss which went without any problem. But in my /etc/sysconfig/iptables are still the old rules (shouldn't be there something from KISS?). Should I delete the file or open the file and remove all lines ?
Thanks,
Kark
ProWebUK
01-10-2004, 05:46 PM
As mentioned above 'kiss stop' should flush your current rules.
Chris
Perhaps I don't understand the term "flush" correctly. If you say flush, you mean like "gone" or "deleted" right? At least, that is what I am thinking what flush means. If so; then it doesn't work. :)
ProWebUK
01-10-2004, 06:21 PM
Flush would mean.. flush your existing rules........ think of flushing it down your toilet - bad example :D
In seriousness its basically removing / dropping / flushing your current rules.
Chris
Hmm ... I still didn't understand it, so I googled a bit more. :)
So now I understand that if you 'Flush' IPtables the rules will be deleted but NOT from the file /etc/sysconfig/iptables. So if I want to use KISS I must call IPtables with the command KISS and not /etc/rc.d/init.d/iptables. Because at the moment when the server is rebooted /etc/rc.d/init.d/iptables is called (which is using the /etc/sysconfig/iptables rules). Am I correct on this ?
I'm a slow learner .. sorry :o
Thanks for the time,
Kamiel
ProWebUK
01-10-2004, 06:39 PM
Basically when you run 'kiss stop' it runs the following commands:
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -F
That basically says accept all incoming connections and accept all outgoing conections then remove any rules currently being used.
When you run kiss start it basically just adds the rules specified in the script to iptables. Nothing else is called by kiss.
Chris
Ok ... now I got it. I think. :)
Thanks!
Kark
ProHS
01-17-2004, 03:15 AM
Is APF or Kiss better?
ProWebUK
01-17-2004, 06:26 AM
I prefer KISS...... although I would say the 2 best software firewalls that are free - certainly KISS and APF. Take your pick :)
Chris
ProHS
01-17-2004, 06:42 AM
Well do you know where i can get a list of their features like APF has an offical web site where they list it at?
ProWebUK
01-17-2004, 06:57 AM
http://rfxnetworks.net/apf.php
Chris
ProHS
01-17-2004, 07:05 AM
No i mean the offical web site for kiss i was using APF as an sample but thank you.
ProWebUK
01-17-2004, 08:17 AM
http://www.geocities.com/steve93138/
Not really a list of features, there is some commenting on general lines in the kiss source......... take a look through that to get an idea also :)
Chris
ProHS
01-20-2004, 02:35 PM
does kiss and/or APF run on FreeBSD?
ProWebUK
01-20-2004, 02:47 PM
If it has ifconfig iptables modprobe... (for KISS) you could try it and keep us informed with the results ;)
Chris
ProHS
01-20-2004, 04:02 PM
ok i been messing with it but i will let you know if i get it to work.
ProHS
01-21-2004, 09:31 AM
Yea the kiss firewall will not work in FreeBSd because their is no /etc/rc.d/rc.local dir, well the /etc is in all Unix OS acourse but not that hole path and when i did try to run it i got permission denied and i tryed changing the permission's and then it said unknown command. If any one has been successful at getting it to work or re wrote a kiss script let me know i would apprecate but for now i am going to try to get APF to work again.
ProWebUK
01-21-2004, 09:51 AM
Originally posted by ProHS
Yea the kiss firewall will not work in FreeBSd because their is no /etc/rc.d/rc.local dir
Its suppost to be a file, and that wouldnt really affect it anyway....... adding it in there simply gets it to start upon reboot (with redhat anyway).
Chris
ProHS
01-21-2004, 09:55 AM
that gives me ideas then, will with it some more then.
Kiss and APF are IPtable based firewalls. FreeBSD uses something called IPfirewall, so the rules syntax would be different. That would mean you can't really use them on FreeBSD.
ProHS
01-21-2004, 01:39 PM
Yea i try it i notice they were calling for different file paths and that it has to be wrote different. Do any of you know of a FreeBSD firewall?
ProWebUK
01-31-2004, 03:34 PM
For the redhat 9 problems:
chmod 755 /usr/bin/kiss
kiss start
Runs as expected :)
Chris
S2S-Robert
02-17-2004, 12:52 PM
So how exactly does this block_list variable work?
if I want to block a certain IP I just add the ip to the block list? Or do I need to add a subnet mask as well?
And how about if I want to block more ip's, do I just add them there as well?
ProWebUK
02-17-2004, 02:33 PM
You can use it anyway you specify IPs in other areas
Multiple IP addresses (usually subnets)
Do not use the first example below (0.0.0.0/0))
BLOCK_LIST="0.0.0.0/0"
or you can use it with multiple IP addresses indivudually
BLOCK_LIST="0.0.0.0 1.1.1.1 2.2.2.2"
or just 1 single IP:
BLOCK_LIST="0.0.0.0"
Chris
Originally posted by ProWebUK
For the redhat 9 problems:
chmod 755 /usr/bin/kiss
kiss start
Runs as expected :)
Chris
Hate to say it but I still get the "bad interpreter message" on my RH9 system. I checked and iptables is installed, nothing in the config file.
Any other ideas?
ProWebUK
02-24-2004, 05:52 AM
What ownership does the kiss file have? have you tried running
/usr/bin/kiss start (rather than just kiss start)
Chris
Ownership was root. I say was because I finally uninstalled the "DA" version and installed the version direct from the KISS site and it worked fine.
ProWebUK
02-24-2004, 09:30 AM
The only difference between the one from the official page and this... is that a few variables are chnaged (ports added, and unwanted ports removed) - besides that the script is unchanged - you could just use the original and copy the ports list from this script over... that should work fine, if it doesn't then... i'm unsure!
Chris
hoobastank68
02-27-2004, 03:41 PM
I'd recommend everyone on RH9 getting regular KISS< and use
BLOCK_LIST=""
TCP_IN="21 25 53 80 110 143 443 2222"
TCP_OUT="21 22 25 37 43 53 80 443"
UDP_IN="53"
UDP_OUT="53"
TCP_IN_TRUSTED="22"
TRUSTED_IPS="0.0.0.0/0"
SERVER_IPS="0.0.0.0/0"
as config for ports
the one listed kept giving me permission + cant interpret errors as well.
existenz
02-27-2004, 04:27 PM
Originally posted by ProHS
Yea i try it i notice they were calling for different file paths and that it has to be wrote different. Do any of you know of a FreeBSD firewall?
Their are 2 kernel level firewalls built into FBSD, IPfilter and ipfw. They are well covered in the handbook but if you want I will post a How-To in a seperate FBSD thread? I use ipfw more than I use IPfilter so it would be ipfw.
Basic rundown is you comment out the lines in the kernel for the firewall
Edit your /etc/rc.conf and turn on the firewall
Edit the /etc/rc.firewall and edit the rules.
That makes it seems easy but their is a TON more than that. Let me know I will write a How-To...
ProWebUK
03-07-2004, 08:56 AM
New release available - fix for previous DNS problem with earthlink DNS servers.
Link is available from the main post.
Chris
existenz
03-07-2004, 11:01 AM
Chris,
Not to mess up your thread what turned out to be the problem with KISS? Just interested to know what he found...
ProWebUK
03-07-2004, 12:18 PM
I have not actually contacted the author as of yet. - what has been said is in the EV1 thread appears correct, I have seen a numerous amount of systems running kiss with them lines commented that have problems with earthlinks DNS servers.
He has given valid reasons why you should keep them commented, however, as much as them comments may be valid, it *does* affect some DNS servers which in my opinion shouldn't happen and therefore, that is my reasoning behind uncommenting the lines in the release I am offering.
I'm sure having the lines uncommented will provide advantages rather than disadvantages with KISS users here, and on EV1, since it's not my script nor do I have any contact withthe author I believe its his responsibility to update or leave the script as it is.
All servers I am currently working on have the lines uncommented to fix the problem, all servers I work on in the future will have the lines uncommented and of course, all releases of the software I provide from here on in, will have the lines uncommented :)
The *actual* problem is that earthlinks DNS servers appear to use port 53 as a source port for DNS... in depth details on the ev1 link :)
Chris
hoobastank68
04-16-2004, 02:46 PM
Hi,
Anyone know why KISS is blocking pings from all ips except for main IP? And how i can fix that? Thanks
:cool:
ProWebUK
04-16-2004, 03:16 PM
It's all commented in the script for you...
Chris
hoobastank68
04-16-2004, 04:46 PM
So where do i go to fix this? Can't seem to find it in pico..
##############################################################################
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
for trusted_ips in $TRUSTED_IPS; do
$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
Thanks for your help.
ProWebUK
04-17-2004, 12:05 AM
Replace:
for trusted_ips in $TRUSTED_IPS; do
$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
with:
# comment out the previous setup if you want it in the future
#for trusted_ips in $TRUSTED_IPS; do
#$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
#done
# allow anyone to ping this system
$IPTABLES -A INPUT -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
Chris
hoobastank68
04-17-2004, 02:31 PM
Hi,
I changed it to:
##############################################################################
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
# comment out the previous setup if you want it in the future
#for trusted_ips in $TRUSTED_IPS; do
#$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
#done
# allow anyone to ping this system
$IPTABLES -A INPUT -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
##############################################################################
Kiss stop then start
I can still only ping MAIN Server IP, but the 2 DNS Ips and dedicated IPs i can't ping.
Any ideas? :confused:
ProWebUK
04-17-2004, 02:34 PM
Are you trying to ping your main ip or an additional IP?
Also make sure you dont have outgoing pings blocked on the machine you're pinging from.
Chris
hoobastank68
04-17-2004, 04:07 PM
Hi,
I can ping the main IP fine, i just want to be able to ping additional ips on server such as the ips used for separate accounts, dns ips etc..
:)
ProWebUK
04-18-2004, 01:09 AM
Replace the 1 line i specified above with:
for serverips in $SERVER_IPS; do
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
Let me know if it works ok :)
Chris
hoobastank68
04-18-2004, 11:09 AM
Originally posted by ProWebUK
Replace the 1 line i specified above with:
for serverips in $SERVER_IPS; do
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
Let me know if it works ok :)
Chris
I did:
##############################################################################
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
# comment out the previous setup if you want it in the future
#for trusted_ips in $TRUSTED_IPS; do
#$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
#done
# allow anyone to ping this system
for serverips in $SERVER_IPS; do
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
##############################################################################
Still nothing :\
ProWebUK
04-18-2004, 11:27 AM
Can you ping these IPs when KISS is disabled, can you access the IPs through http or any other protocol?
The IPs you want are listed in your SERVER_IPS variable aswell?
Chris
hoobastank68
04-18-2004, 11:39 AM
I can ping all ips when kiss is off
I can ping main ip only when kiss is on
I can access all ips via http,
The IPs you want are listed in your SERVER_IPS variable aswell?
All ips are added inside DA and 1 is main, 2 are DNS, 1 is dedicated ip for a site, 5th one is just not used.
ProWebUK
04-18-2004, 11:58 AM
At the top of the KISS file you should see a line
SERVER_IPS="0.0.0.0/0"
add your server ips there, seperated by a space "1.2.3.4 1.2.3.4"
Chris
hoobastank68
04-18-2004, 12:14 PM
k, i added ips and also:
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
# comment out the previous setup if you want it in the future
#for trusted_ips in $TRUSTED_IPS; do
#$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state
NEW -p icmp --icmp-type ping -j ACCEPT
#done
# allow anyone to ping this system
$IPTABLES -A INPUT -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
Now i ping again, still wont work. :confused:
It's no big deal if there aren't any fix for it I'll just live with it.
ProWebUK
04-18-2004, 05:12 PM
Once you add them to the SERVER_IPS variable use the 3 line script i provided rather than the other...
for serverips in $SERVER_IPS; do
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
Chris
hoobastank68
04-20-2004, 03:43 PM
great, working now.
One more thing, now when i start kiss i get an error:
kiss start
/usr/bin/kiss: line 469: NEW: command not found
Any idea?
ProWebUK
04-20-2004, 06:47 PM
pico -w +469
Paste that line and a few lines above it...
from the sounds of things you have added:
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state
NEW -p icmp --icmp-type ping -j ACCEPT
rather than 1 line as it should be:
$IPTABLES -A INPUT -d $serverips -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
since the error says its trying to execute the command "NEW" which of course is just part of the --state flag used by iptables, not a bash command.
Chris
hoobastank68
04-22-2004, 03:50 PM
thanks i got it, there was space but somehow when i pasted it became 2 lines, now its fine.
sander815
05-06-2004, 03:19 AM
if i use the default config, and don't add to /etc/rc.d/rc.local i will never be locked out of my box?
ProWebUK
05-06-2004, 10:01 AM
You should never be locked out of your box unless you take ssh out of the allowed ports, add your own IP to the blocklist or remove all IPs from the allowed IP list.
If you have SSH running on another port you will need to configure it, since its only allowing port 22 for SSH as default.
Chris
sander815
05-07-2004, 12:59 AM
so, is it possible that you explain the kiss config a bit?
-BLOCK_LIST=""
block an ip from connecting to any port on the box?
-TCP_IN="21 25 53 80 110 143 443 2222"
?
-TCP_OUT="21 22 25 37 43 53 80 443"
?
-UDP_IN="53"
?
-UDP_OUT="53"
?
-TCP_IN_TRUSTED="22"
?
-TRUSTED_IPS="0.0.0.0/0"
can i enter here the ips i use to connect to the box?(or better not, cause my ip is not static)
-SERVER_IPS="0.0.0.0/0"
?
ProWebUK
05-07-2004, 08:51 AM
Originally posted by sander815
so, is it possible that you explain the kiss config a bit?
-BLOCK_LIST=""
block an ip from connecting to any port on the box?
-TCP_IN="21 25 53 80 110 143 443 2222"
TCP Inbound ports
-TCP_OUT="21 22 25 37 43 53 80 443"
TCP Outbound ports
-UDP_IN="53"
UDP Inbound ports
-UDP_OUT="53"
UDP Outbound ports
-TCP_IN_TRUSTED="22"
TCP Inbound ports only accessable by IP addresses listed in the TRUSTED_IPS var (22 - ssh)
-TRUSTED_IPS="0.0.0.0/0"
can i enter here the ips i use to connect to the box?(or better not, cause my ip is not static) Yes, or leave the current option to allow all IP addresses to connect
-SERVER_IPS="0.0.0.0/0"
All the IP addresses bound to your system can be listed here, although the current option works fine unless you want pings etc as discussed above.
?
All in the quote :)
Chris
deltaned
05-12-2004, 11:02 AM
is there an option to see KISS is working OK like an online scanner ore something?
I doesent link new not welcome visits...
ProWebUK
05-12-2004, 11:16 AM
ping / telnet
"I doesent link new not welcome visits..."
What do you mean?
Chris
deltaned
05-12-2004, 11:44 AM
@ ProWebUK: I send a PM
To close an port on what option do I need to add it?
Or can I remove the port number on:
TCP_IN="21 25 53 80 110 143 443 2222"
TCP_OUT="21 22 25 37 43 53 80 443"
I don`t use 443, so I linke to close that port
ProWebUK
05-12-2004, 11:57 AM
All ports are closed besides what's in the configs at the top of the script ;)
443 is the https://, so unless you dont use SSL you would be wanting that ;)
sander815
05-30-2004, 02:14 PM
does kiss have some sort of ddos protection like APF?
http://www.rfxnetworks.com/apf.php
- antidos subsystem to stop attacks before they become a significant threat
and does it support auto update for the dshield block list? kiss i mean
vandal
05-30-2004, 04:47 PM
Originally posted by phriendly-Mark
[B]For those who use scripts that will message them by ICQ, AIM, or YAHOO (EG: system status monitor, ClientExec, etc)
^^ where can i get such scripts (the monitoring, clientexec and mostly the MSN script)
deltaned
05-31-2004, 11:49 AM
maybe a bug in Kiss, bit with kiss on you can`t update DA.
Turn kiss off and update DA there is no problem.
my KISS details:
BLOCK_LIST="Some IP adresses"
TCP_IN="21 25 53 80 110 143 2222"
TCP_OUT="21 22 25 37 43 53 80"
UDP_IN="53"
UDP_OUT="53"
TCP_IN_TRUSTED="22"
TRUSTED_IPS="0.0.0.0/0"
SERVER_IPS="myIPadres/0"
Tips to update DA without closing the firewall?
ProWebUK
05-31-2004, 12:00 PM
Originally posted by vandal
^^ where can i get such scripts (the monitoring, clientexec and mostly the MSN script)
You can use command line messenger clients I would assume, although I dont have the exact information.
Chris
ProWebUK
05-31-2004, 12:02 PM
SERVER_IPS="0.0.0.0/0"
Try that...
Chris
deltaned
05-31-2004, 12:07 PM
Originally posted by ProWebUK
SERVER_IPS="0.0.0.0/0"
Try that...
Chris
I try but it doesent work.
Maybe because I blocked telnet?
ProWebUK
05-31-2004, 12:08 PM
Originally posted by sander815
does kiss have some sort of ddos protection like APF?
http://www.rfxnetworks.com/apf.php
- antidos subsystem to stop attacks before they become a significant threat
and does it support auto update for the dshield block list? kiss i mean
It has its own way of preveting DOS attacks, although its of course not perfect, neither is the one for APF.
It doesnt have any support for dshield, you can incorporate it yourself if you wish, use any other block lists etc... as default the only blocks are what you specify.
Chris
ProWebUK
05-31-2004, 12:12 PM
Originally posted by deltaned
I try but it doesent work.
Maybe because I blocked telnet?
What error are you getting? Can you successfully connect to the DA website from your server? Can you update the license also...
Does it work when you turn the firewall off?
Chris
sander815
06-07-2004, 02:15 PM
if i don't want people pinging my machine, what do i do?
##############################################################################
# Allow pinging of this server's MAIN_IP by trusted IPs only.
#
for trusted_ips in $TRUSTED_IPS; do
$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
TRUSTED_IPS="0.0.0.0/0" <-change this iin kiss?
ProWebUK
06-07-2004, 02:19 PM
Originally posted by sander815
for trusted_ips in $TRUSTED_IPS; do
$IPTABLES -A INPUT -s $trusted_ips -d $MAIN_IP -i eth0 -m state --state NEW -p icmp --icmp-type ping -j ACCEPT
done
comment out the part ive quoted ;)
Chris
sander815
06-08-2004, 12:39 PM
if i want to block a certain port for a certain ip connecting, what do i do?
ProWebUK
06-10-2004, 05:21 PM
Originally posted by sander815
if i want to block a certain port for a certain ip connecting, what do i do?
try:
iptables -I INPUT -s 111.111.111.111 --destination-port 22 -j DROP
ip/port
Chris
sander815
06-11-2004, 01:11 AM
do i just execute that at the prompt?
i get an error
[root@server1 apf]# iptables -I INPUT -s 212.xx.xx.xx--destination-port 53 -j DROP
iptables v1.2.7a: Unknown arg `--destination-port'
Try `iptables -h' or 'iptables --help' for more information.
[
deltaned
06-16-2004, 12:41 PM
On my fedor2 machine I get after command: kiss start
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
Tips?
The default firewall of Fedora is off.
jlasman
06-16-2004, 02:05 PM
Do you have iptables implemented in your fedora core kernel?
Jeff
sander815
06-18-2004, 04:38 AM
Originally posted by sander815
do i just execute that at the prompt?
i get an error
[root@server1 apf]# iptables -I INPUT -s 212.xx.xx.xx--destination-port 53 -j DROP
iptables v1.2.7a: Unknown arg `--destination-port'
Try `iptables -h' or 'iptables --help' for more information.
[
please anyone? how do i use this?
i need to block a certain ip thats keeps connecting to port 53, like every 4-5 seconds, constantly
ProWebUK
06-18-2004, 08:21 AM
Try this one, again, untested
iptables -A INPUT -i eth0 -s *BLOCKIP* -d *SERVERIP* -p tcp -m state --state NEW --dport *PORT* -j DROP
Chris
Exzee
06-24-2004, 07:51 PM
I'm running Fedora Core 1 with Direct Admin. I havent touched the server except for the DA installation.
This is the error I get when trying to run kiss:
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
Maybe Im going off topic with this post, but how exactly do I install those modules if they "dont exist"?
Thanks in advanced.
jlasman
06-25-2004, 08:10 PM
check the following, logged in as root:
$ rpm -qa | grep iptables
Here's my results when I do this on my local desktop system:
[jlasman@da1 nobaloney.net]$ rpm -qa | grep iptables
iptables-1.2.5-3
iptables-ipv6-1.2.5-3
[jlasman@da1 nobaloney.net]$
Your results may differ.
What do you get?
Jeff
Exzee
06-25-2004, 08:24 PM
[root@server root]# rpm -qa | grep iptables
iptables-1.2.8-13
iptables-1.2.9-1.0
[root@server root]#
jlasman
06-25-2004, 08:34 PM
Then I have no idea :( .
Have you tried asking on the Fedora users' list?
Jeff
Exzee
06-25-2004, 08:50 PM
Nope. I thought someone here would probably know what's wrong.
jlasman
06-25-2004, 08:54 PM
Perhaps, but since it's not DA specific, but Fedora specific, I'd think you'd stand a better chance there.
You can join here (http://www.redhat.com/mailman/listinfo/fedora-list).
Jeff
ProWebUK
06-25-2004, 08:55 PM
ls /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.o /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.o /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_multiport.o
Output?
Chris
Exzee
06-25-2004, 09:03 PM
[root@server root]# ls /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.o /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.o /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_multiport.o
ls: /lib/modules/2.4.26-HN-1.6-i686/kernel/net/ipv4/netfilter/ip_tables.o: No such file or directory
ls: /lib/modules/2.4.26-HN-1.6-i686/kernel/net/ipv4/netfilter/ipt_state.o: No such file or directory
ls: /lib/modules/2.4.26-HN-1.6-i686/kernel/net/ipv4/netfilter/ipt_multiport.o: No such file or directory
[root@server root]#
ProWebUK
06-25-2004, 09:09 PM
i'll get you the information you need in the morning, but it will involve compiling a kernel, and adding specific modules... try using up2date to check if theres a new kernel there also, as the redhat kernels should already have the support... that may just be quick fix :)
Chris
Exzee
06-27-2004, 04:08 PM
I sent the problem to the Fedora list. I'm just waiting for their reply now.
deltaned
07-18-2004, 09:57 AM
Hi,
Do you have an reply from the list?
I have the same problem...
Exzee
07-18-2004, 12:29 PM
They suggested a kernel upgrade. It's quite a process (basically what ProWebUK said).
deltaned
07-18-2004, 12:40 PM
I try and update the new kernel, but no reaction of kiss.
I use the firewall of fedore core 2 and after "playing" with the options I get all working and secured now (I hope)
mdoens
08-03-2004, 12:21 PM
is the first post the latest available script or are there updates for de DA version? do i have to check things before i install ? (redhat9)
skruf
08-03-2004, 12:35 PM
Hey,
These are the changes I made for RH9 to the kiss file:
The install puts it here: /usr/bin/kiss
Be sure to back it up before changing anything.
Under this section:
# ALL DONE WITH CONFIGURATIONS!
I added this line:
IFCONFIG="/sbin/ifconfig"
And under this section:
# Determine MAIN_IP & SERVER_IPS if needed
I changed this:
MAIN_IP=`ifconfig eth0 | grep inet | cut -d: -f2 | awk '{print $1}'`
to this:
MAIN_IP=`$IFCONFIG eth0 | grep inet | cut -d: -f2 | awk '{print $1}'`
Basically, just change ifconfig to be a variable so I could set it's path.
David
mdoens
08-03-2004, 12:48 PM
and you used the customized DA-kiss scipt? do i need to change anything else in the config file?
skruf
08-03-2004, 12:50 PM
Hey,
Yes, I used the customized DA-kiss script...
Yes, that's the only changes I made.
David
ProWebUK
08-04-2004, 08:57 AM
since the problem is with the path (ifconfig rather than /sbin/ifconfig) my guess is you are logging in as root using:
su
rather than:
su -
Chris
jlasman
08-04-2004, 10:01 AM
Originally posted by skruf
The install puts it here: /usr/bin/kiss
That's not really a good place for it.
It's a local addition, designed to be run only by a systems administrator.
My guess is it should be in /usr/local/sbin.
But what do I know :) .
I admin a lot of systems and I don't want to install it each time.
So I have one copy on my desktop system, and I just copy it in, and install it on, each new server.
If you'd like a copy, let me know by email (NOT by private message). My email address is in my sig.
If you get it, be sure to read my notes; it may require changes depending on your environment, but they're all well documented.
I agree with Chris that if you're properly logged in as root (either by direct login, or by "su -" then you won't need the path to ifconfig.
Jeff
skruf
08-04-2004, 01:32 PM
Hey,
since the problem is with the path (ifconfig rather than /sbin/ifconfig) my guess is you are logging in as root using:
su
rather than:
su -
Damn, hate when that happens... That was it.
That's not really a good place for it.
I just left it where it was placed...
This is the first time I used it and future use probably won't include tarring it on the server. (Like you mentioned.)
Obviously, there are no changes needed like I mentioned above...
Unless of course, like me, you're trying to learn a little script writing...
David
lnguyen
08-05-2004, 05:58 PM
Is there a BFD equivalent for KISS?
hostcini
01-07-2005, 09:28 AM
Link is broken :(
jlasman
01-07-2005, 07:42 PM
Which link?
I have a copy of Kiss specifically designed to work on DA servers in a hosting environment.
If enough people need it and can't get it from the original site, I'll post it on my download pages.
Jeff
hostcini
01-08-2005, 04:01 AM
Thanks , first post link is dead.
But i'm download file from rfxnetwork then install everythink ok.
sander815
03-30-2005, 01:59 AM
i still have probs with ftping when kiss is running, in passive mode, what am i doing wrong?
##############################################################################
#
# Optional KISS Configuration Variables:
#
BLOCK_LIST=""
TCP_IN="21 25 53 80 110 143 443 2222 10000"
TCP_OUT="21 22 25 37 43 53 80 443"
UDP_IN="53"
UDP_OUT="53"
TCP_IN_TRUSTED="22"
TRUSTED_IPS="0.0.0.0/0"
SERVER_IPS="0.0.0.0/0"
jlasman
03-31-2005, 12:28 AM
Kiss requires a module installed for your kernel:
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o"
$MODPROBE ip_conntrack_ftp
fi
If ip_conntrack_ftp.o available for dynamic loading on your server?
Jeff
sander815
03-31-2005, 12:54 AM
uhm, i think so?:
[root@server01 mysql]# locate ip_conntrack_ftp.o
/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o
[root@server01 mysql]#
jlasman
03-31-2005, 01:14 AM
What version of Linux?
Jeff
sander815
03-31-2005, 01:36 AM
RH 9
jlasman
03-31-2005, 10:05 AM
At first glance I don't see any problem.
If you want a "free as in beer" solution you might want to post on a forum specializing in the kiss firewall, or contacting the author.
Of if you know or want to learn the details of iptables, you could try a good linux help group; isp-linux.com or isp-webhosting.com are probably good places to start.
Or perhaps use a consultant (hopefully one who guarantees results) to resolve the issue for you.
Jeff
noneym
04-09-2005, 06:53 AM
Link is broken
jlasman
04-12-2005, 12:10 AM
What link?
What are you looking for?
Jeff
resolveit
04-12-2005, 09:59 AM
Hi Jeff,
They are referring to the link in the first post to download the Kiss Firewall. The link is no longer valid.
Regards,
Onno
jlasman
04-15-2005, 10:09 PM
Has anyone found another location, or should I post it and change the first post?
Jeff
@how@
04-25-2005, 10:31 AM
any body have link :confused:
jlasman
04-25-2005, 07:03 PM
I found it at the original location here (http://www.geocities.com/steve93138/).
My version modified to work with DirectAdmin and with Plesk PSA, and also with some optional changes (read the code) for ModernBill, can be found here (http://www.nobaloney.net/downloads/kiss/).
Jeff
@how@
04-26-2005, 05:25 AM
Thanks man :D
@how@
04-26-2005, 06:12 AM
recommended configure the firewall to trusted IP addresses/subnets or no install it and finsh:confused:
Avenueduweb
04-26-2005, 11:07 AM
A jlasman's kiss version don't run in fedora (core 3). I've modified the script to run on this os. If you want, download a jlasman's kiss version here :
http://www.avenueduweb.org/scripts/kiss
Bye.
jlasman
04-28-2005, 06:35 PM
I should probably do a diff and figure out what's wrong with the original.
I guess I'll have to take the time unless you can tell me in a few words what the differences were.
Since I'm busy as a ... (well you know what I mean), can you ?
Thanks :)
Jeff
Avenueduweb
04-29-2005, 07:03 AM
The problem is the links for ip_tables, ipt_state, ipt_multiport. In your script you test if modules exists and the links are ip_tables.o or ipt_state.o or ipt_multiport.o, but for run on fedora the links must be ip_tables.ko, ipt_state.ko and ipt_multiport.ko, and with that it's running. My modification is :
# Note: KISS requires that ip_tables, ipt_state, and ipt_multiport exist:
if [ ! -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.ko" ] || [ ! -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.ko" ] || [ ! -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
echo "Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!"
exit 1
fi
# All is well, load modules:
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.ko" ]; then
$MODPROBE ip_tables
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.ko" ]; then
$MODPROBE ipt_state
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
$MODPROBE ipt_multiport
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.ko" ]; then
$MODPROBE ip_tables
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_state.ko" ]; then
$MODPROBE ipt_state
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_multiport.ko" ]; then
$MODPROBE ipt_multiport
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/iptable_filter.ko" ]; then
$MODPROBE iptable_filter
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_unclean.ko" ]; then
$MODPROBE ipt_unclean
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_limit.ko" ]; then
$MODPROBE ipt_limit
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_LOG.ko" ]; then
$MODPROBE ipt_LOG
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_REJECT.ko" ]; then
$MODPROBE ipt_REJECT
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_conntrack.ko" ]; then
$MODPROBE ip_conntrack
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_conntrack_irc.ko" ]; then
$MODPROBE ip_conntrack_irc
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko" ]; then
$MODPROBE ip_conntrack_ftp
fi
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/iptable_mangle.ko" ]; then
$MODPROBE iptable_mangle
fi
Sorry for my bad english, it's very difficult for me to explain that in english ;o). Thanks for your script jlasman. Bye.
jlasman
05-01-2005, 09:40 PM
It's not my script; I found it on the 'net after reading about it in these forums.
I made a few line changes.
Are you saying that by default Fedora doesn't load/install the proper kernel modules? That's the impression I get from your post.
I suppose I can try your fixes to see if they work with other flavors of Linux and if they do issue one fixed version, but I'd like to get your response first.
Thanks.
Jeff
linuxlearner
05-31-2005, 09:21 PM
I found the thread that mentions about the error Avenueduweb said ".o" and ".ko"
http://forum.ev1servers.net/showthread.php?t=36733&page=4&pp=25
flumps
03-03-2008, 03:55 AM
has anyone managed to get KISS to work on a debian OS? im running debian 4.0 and every time i got to run it I get:
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
iptables is installed I think cause I get an output of the following when using iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
any ideas?
ive played around with:
# Enabled this for Pre Fedora Core 2 or Red Hat
#EXTN="o"
# Enabled this for Fedore Core 2 or later
EXTN="ko"
still no joy :(
jlasman
03-04-2008, 07:30 PM
I think you may have to recompile the kernel with those modules compiled in.
But I'm not sure :(.
Jeff
flumps
03-08-2008, 05:06 AM
I could try a different firewall, anything different other than kiss?
iceuk626
03-08-2008, 08:24 AM
You can try APF, but thats iptables based aswell. I think you may have to compile a new kernel with the coorect modules.
eConcept-Web
03-13-2008, 11:48 AM
hi, I have a problem with kiss. My OS is Fedora Core 6 and I fellow the first post to install kiss. When I try the Kiss start command, I received this message:
[root@220915 bin]# kiss start
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
[root@220915 bin]#
When I do kiss stop to flush the rules I received this:
[root@220915 bin]# kiss stop
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DA-KISS Firewall - Stopped!
I also add my 10 IP adress to the SERVER_IPS="0.0.0.0/0" like this: SERVER_IPS="ip1.ip1.ip1.ip1 ip2.ip2.ip2.ip2 ip3.ip3.ip3.ip3 ..." without the /0
Any solutions for this. Thx all :)
eConcept-Web
03-14-2008, 08:14 AM
I will try to recompile the kernel with the ip_table :) thx for the support and the previous post :)
mikegrungey
05-12-2008, 12:19 AM
Hi there. After looking around i decided to try out KISS. But then i got this error.I'm running VPS using Centos 5.
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
Is it because my admin don't install it?
when i run iptables -L it gave me:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
How can i solve this problems. Thanks
jlasman
05-12-2008, 09:17 AM
You should contact your VPS provider to see if they offer support for those modules. Both KISS and APF require them.
Jeff
Jackiegoal
06-28-2008, 04:04 AM
Tried it, getting the same issues about the ip_tables, ipt_state, and/or ipt_multiport modules. In the script it checks, for example, for existance of the file /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.o. I checked for it and the file exists. However, it has a .ko extention. I'm a bit shy to try and bluntly change .o into .ko in the config file, so I thought I'd ask it here first.
jlasman
06-28-2008, 01:03 PM
The latest version of KISS allows you to set once and it will work with either .ko or .o.
But you can safely change them.
KISS doesn't have a config file. All changes are made directly in the runfile.
Jeff
Jeff
Jackiegoal
06-30-2008, 02:16 AM
So it's safe to say I don't have the latest version? Then where do I get that as KISS is now blocking my FTP traffic due to the fact that multiple .ko files are not where it expects them to be (in this case ip_conntrack_ftp.ko I guess)?
Jackiegoal
06-30-2008, 02:41 AM
I can answer my own question. I seem to have the latest DA-KISS, but KISS is now in v2.1. It does still refer to the ip_conntrack_ftp file. I don't have it! I only have some nf_conntrack_ftp file, but I don't know whether that's the same.
Jackiegoal
07-02-2008, 07:42 AM
It still doesn't work. I can't find a definitive answer on nf_conntrack_ftp.
spoonfed
07-05-2008, 02:32 AM
Hello, i just installed KISS using jeff's version (http://www.nobaloney.net/downloads/kiss/kiss)
When trying to start it for the first time i got this error:
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
iptables is there but stopped, i stopped it yesterday when i thought it might be blocking DA, iptstate i installed with "yum install iptstate" and it seems to have worked, ipt_multiport isnt something that yum can find to install.
i ran locate on it and found something so it seems to be installed:
[root@flipper ~]# locate ipt_multiport
/lib/iptables/libipt_multiport.so
/usr/include/linux/netfilter_ipv4/ipt_multiport.h
Any ideas why KISS wont start? iptables wont start now either, it doesnt give any errors when running start or restart but when i check its status it just says Firewall is stopped.
Any help appreciated here.
jlasman
07-05-2008, 10:32 AM
The contents of iptables may be deleted; in CentOS boxes the file is at /etc/sysconfig/iptables.
When kiss gives us that error it's always been on a VPS box.
VPS boxes often don't have the right kernal modules actually installed, but it could be an old or specially configured kernel as well.
Jeff
spoonfed
07-05-2008, 11:09 AM
Yeah, theres no iptables file in that directory, there is a iptables-config file there tho.
Any solution to the problem? I found these files named iptables i tried copying the first one to the directory you said and now when i try to start iptables it at least gives an error :)
[root@flipper sysconfig]# service iptables start
Applying iptables firewall rules: iptables-restore: line 12 failed
[FAILED]
Files
/etc/rc.d/init.d/iptables
/lib/iptables
/sbin/iptables
jlasman
07-06-2008, 12:43 PM
You have iptables on your server. You need a set of rules that work. Mine won't work for you because they're created from kiss. Perhaps someone else can give you a set of rules that that you can try.
Anyone?
Jeff
spoonfed
07-07-2008, 03:46 AM
Thanks for trying to help but I got some assistance from smtalk to install a firewall, he went with APF instead of KISS so i'm all set now. :)
nobaloney
07-09-2008, 09:16 PM
I've found the issue; in the later kernel versions some modules have been replaced with newer ones: specifically modules beginning with ipt have been replaced with modules beginning with xt.
I've placed more recent versions at my download page, here (http://www.nobaloney.net/downloads/kiss/).
Jeff
youds
08-02-2008, 11:22 AM
kiss start
Since the ip_tables, ipt_state, and/or ipt_multiport modules do not exist, KISS can not function. Firewall script aborted!
I get the above with a clean/fresh CentOS 5.2 64bit install
youds
08-02-2008, 11:31 AM
I've found the issue; in the later kernel versions some modules have been replaced with newer ones: specifically modules beginning with ipt have been replaced with modules beginning with xt.
I've placed more recent versions at my download page, here (http://www.nobaloney.net/downloads/kiss/).
Jeff
This script solved the problem for me. Thanks
UserName
09-02-2008, 10:30 PM
We installed KISS on a CentOS 5.2 64 bit unmanaged server and received the "KISS is running message".
We then started to download DDOS Deflate and the server froze. Now we cannot connect to the server at all - DA or ssh. Reboot did not resolve the issue.
Any ideas before I have to ask the host to reinstall the OS? :(
edit: no ports are open when I scan the IP.
littleoak
09-03-2008, 04:05 PM
Why would you have your host reinstall the OS? Have them log in via the console and:
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Have you tried sshing to the server with another IP address?
UserName
09-03-2008, 04:23 PM
The host ran:
/etc/init.d/iptables stop
but the problem returned shorty afterwards *& I'm locked out again.
littleoak
09-03-2008, 05:15 PM
It sounds as though you're running two firewalls at once. That is not normal behavior for iptables. I recommend you get someone to take a look at your server.
UserName
09-03-2008, 07:12 PM
I have iptables and KISS. Do I have to stop or flush iptables before using KISS?
(this my 1st dedicted)
jlasman
09-05-2008, 06:05 AM
No; the first thing KISS does is flush the tables.
Jeff
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.