View Full Version : [kubuntu] Problems with KMyFirewall
Masterofpsi
March 18th, 2009, 09:06 AM
I've decided to set up a firewall. I basically want to hide all ports and stop ping replies. I installed KMyFirewall and created a setup that looks like it does that. However, whenever I try to run the firewall, nothing happens. Visiting a test website confirms that my ports are the same as they were. Additionally, clicking the "install firewall" button does nothing. I know, because when I check the files that it said it would create, they're not there. I am running it as root.
I think this problem is probably related (perhaps the cause): when I type in "sudo service iptables start", I get "$iptables: unrecognized service."
Does anyone know what's happening?
iamkrazee
March 18th, 2009, 09:41 AM
'iptables' service is of RedHat family, I wonder if it works here.
bodhi.zazen
March 18th, 2009, 04:05 PM
I've decided to set up a firewall. I basically want to hide all ports and stop ping replies. I installed KMyFirewall and created a setup that looks like it does that. However, whenever I try to run the firewall, nothing happens. Visiting a test website confirms that my ports are the same as they were. Additionally, clicking the "install firewall" button does nothing. I know, because when I check the files that it said it would create, they're not there. I am running it as root.
I think this problem is probably related (perhaps the cause): when I type in "sudo service iptables start", I get "$iptables: unrecognized service."
Does anyone know what's happening?
Unless you are connected directly to the internet you are scanning your router when you do this.
See http://bodhizazen.net/Tutorials/iptables/
'iptables' service is of RedHat family, I wonder if it works here.
I do not mean to be rude iamkrazee, but iptables is on every modern distro. See the link above and please, if you do not know, do not guess at security.
Masterofpsi
March 19th, 2009, 03:48 AM
OK, so I'll have to connect directly after my family has gone to sleep. But that doesn't explain why iptables isn't listed in /etc/services, or why I can't install it.
bodhi.zazen
March 19th, 2009, 05:40 AM
OK, so I'll have to connect directly after my family has gone to sleep. But that doesn't explain why iptables isn't listed in /etc/services, or why I can't install it.
Ah, yes, that explains your confusion.
It sounds as if you come from a rpm system.
Ubuntu does not list iptables as a service that way, it is not in /etc/init.d the way it is on a rpm system.
iptables is compiled into the kernel and if you look at /etc/init.d on a rpm system it is "simply" a script to configure iptables.
Ubuntu uses ufw and , by default, iptables is permissive, so it allows all traffic.
It does not need to be installed either.
Simply :
sudo iptables -L and you will see.
See also : https://help.ubuntu.com/community/IptablesHowTo
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.