PDA

View Full Version : [ubuntu] Help with event on Firestarter


Riddermark
July 8th, 2009, 10:09 AM
Hi,
I am new to Ubuntu, have been running it for about 1 month. I have set up Firestarter to configure iptables and run it at all times. Last night I had an event occur and would like some help in understanding what it means.

Time:Jul 7 23:59:31 Direction: Unknown In:eth1 Out: Port:80 Source:97.107.130.239 Destination:192.168.1.2 Length:68 TOS:0x00 Protocol:ICMP Service:HTTP

Firestartere is set up with defalts, except that ICMP filtering is enabled and no packets are allowed.

Thanks in advance for advice.

Kevin

lovinglinux
July 8th, 2009, 12:15 PM
In:eth1 - incoming on ethernet (http://en.wikipedia.org/wiki/Ethernet) 1
Out: - nothing here
Port:80 - incoming port used, usually related to http web traffic
Source: 97.107.130.239 (https://ws.arin.net/whois/?queryinput=97.107.130.239) - is the IP of the computer requesting the connection
Destination:192.168.1.2 - is the IP of the computer receiving the connection, in this case yours
Length:68 - length of the packet being transmitted
TOS:0x00 - don't have a clue
Protocol:ICMP - protocol of the connection, in this case a "ping"
Service:HTTP - the type of service usually associated with the port used, in this case a web service

Are you running a web server? Is this the only connection?

I recommend reading the Ubuntu Security (http://ubuntuforums.org/showthread.php?t=765421) tutorial. The best way to protect your machine, is to understand how security works.

BTW, you shouldn't be running Firestarter all the time, due to security issues. Just configure the settings and close it. The iptables will still work on the background.

Riddermark
July 8th, 2009, 01:45 PM
Thanks for the reply. No, I am not running a web server. I only have one connection running.

I have been running firestarter all the time. I have heard conflicting information about firestarter. Are the iptables reset to default at shutdown? If so do I need to run firestarter each time I boot? Also, does the event log for firestarter work if it is not running? Please excuse my ignorence about these issues, I am still trying to learn about linux. I will also check out the tutoural you mentioned.

Thanks

K

cariboo907
July 8th, 2009, 06:13 PM
You should only use Firestarter to set your firewall rules, once the program is closed the firewall still works. To check you rules after firestarter has closed, open a terminal and type:

iptables -L

the above command will print a listing on screen of your firewall rules.

lovinglinux
July 8th, 2009, 09:45 PM
Thanks for the reply. No, I am not running a web server. I only have one connection running.

Your connection log is showing someone checking if your port 80 responds to icmp requests. Since you don't have a web server, then there is nothing to worry about, even if your firewall was disabled.


Are the iptables reset to default at shutdown?

You shouldn't need to start Firestarter each boot. I guess when you setup the iptables with Firestarer it does not reset iptables after reboot. Anyways, you can use the the command provided by cariboo to check the iptables.

If you see just 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

Then it was reset. But if you see a bunch of other stuff, then you are still protected.

Also, does the event log for firestarter work if it is not running?

Firestarter is not the firewall. It's just an graphical interface that allows you to easily create iptables (the real firewall) rules. It is also not responsible for logging connections. Everything is configured in the iptables, so if you close Firestarter everything will still work. Firestarter just loads the system logs when it starts and show them to you.

You can check your logs in the "System >>Administration >> Log File Viewer" or simply using a command like this:

tail -f /var/log/kern.log | grep eth0

Where eth0 is your network card. This command will show you the contents of the kern.log file in real time, but will display only those lines containing the word eth0.

Riddermark
July 8th, 2009, 10:05 PM
Thanks for the help. I tried the command from cariboo907 and got the reply


iptables v1.4.1.1: can't initialize iptables table `filter': Permission denied (you must be root)Perhaps iptables or your kernel needs to be upgraded.

Should I run the command as:


sudo iptables -L

lovinglinux
July 8th, 2009, 10:10 PM
[/B]Should I run the command as:


sudo iptables -L


Yes, I missed that.