LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-06-2005, 10:01 PM   #1
figfighter
Member
 
Registered: Jun 2005
Distribution: Mandriva LE 2005
Posts: 71

Rep: Reputation: 15
Can't get on internet when firewall activated in Xandros


I noticed under internet in Xandros that there was a Firewall Wizard. When I run it (and activate the firewall) I can't get an internet connection. I'm using a cable connection through a hub. If I turn the firewall off, I get online just fine.

Anyway, does this mean I am not running any kind of firewall? How neccessary is a firewall when using Xandros as Linux is supposed to be designed to be secure? Lastly how do I setup the firewall to work?
 
Old 06-06-2005, 11:33 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
for a home computer, nnot running any web servers, a simple firewall will do.

i use

Code:
iptables -F INPUT
iptables -F OUTPUT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -P INPUT DROP
iptables -P OUPUT DROP
this firewall allows any outgoing connections, and drops all incomming connection attempts.

then you just need to poke a few holes for anything that needs to accept new connections like maybe for multiplayer game servers like UT-2004 with c rule like

Code:
iptables -A INPUT -p tcp --dport <ut2004-port> -m state --state NEW -j ACCEPT
what firewall rules are you using ?
run iptables -vL when the firewall is running and post output here.
 
Old 06-07-2005, 08:28 PM   #3
figfighter
Member
 
Registered: Jun 2005
Distribution: Mandriva LE 2005
Posts: 71

Original Poster
Rep: Reputation: 15
apologies for my ignorance...

i logged in the console using root (i assume i have to use the root, correct?)...

typed in iptables -vL

this is what came up:

Ummmm...

Is there an easy way to post that info... like how other people do with the grey box? =(
 
Old 06-07-2005, 08:52 PM   #4
figfighter
Member
 
Registered: Jun 2005
Distribution: Mandriva LE 2005
Posts: 71

Original Poster
Rep: Reputation: 15
NEVERMIND! i figured it out...

this is what it says when i type iptables -vL:


Chain INPUT (policy ACCEPT 1707 packets, 1295K bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 1624 packets, 380K bytes)
pkts bytes target prot opt in out source destination


What does this mean?

(P.S. i still want to know how pwople post their code in a box)
 
Old 06-08-2005, 08:52 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
to begin a code block put the word code in square brackets. like [ code ] without the spaces.
to end a code block put /code in square brackets.

That output means you have no firewall rules for incomming packets.
No rules for forwarding packets, and No rules four outgoing packets.

in other wise un-restricted netwok, firewall is not doing anything.

did you remember ot start the firewall before running iptables -vL ?

if you star your firewall, then run post the iptbales output, we should be able to find out whats wrong.

i am guessing you are accidently restricing web browser output...
or the input is not correctly handling what we call RELATED / ESTABLISHED traffic.

Anyway, to answer your first question... running a firewall is not needed unless you run a server of some kind, but most poeple turn it on anyway, just in case.
 
Old 06-08-2005, 08:52 AM   #6
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
There is a Code button at the top of this page, in the vB Code section.
or you can put it in yourself:

[ CODE ]
Type your code here. Omit the space from the brackets.
[ /CODE ]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I put a firewall on Debian(Xandros)? jdruin Linux - Software 2 07-06-2004 02:05 PM
Does Xandros have a firewall by default? jdruin Debian 3 07-05-2004 09:57 PM
i have an activated ethernet card but cannot get internet service whodunnit Fedora 8 04-18-2004 09:19 AM
samba stops when MDK integrated firewall activated arete1969 Linux - Networking 2 04-06-2004 09:59 PM
SuSE 8.1 open ports without firewall activated ruedi Linux - Distributions 2 05-10-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration