You are not logged in.

#1 2007-06-07 20:55:20

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

should i use a firewall ?

i use my box to learn programming and connect to internet using my ADSL modem and watch some movies, some songs and that's it. should i use a firewall ?

Offline

#2 2007-06-07 20:56:03

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: should i use a firewall ?

yes.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2007-06-07 21:16:11

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: should i use a firewall ?

It's not because it linux that it can't be hacked. If you get online, no matter what OS, you need a firewall.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2007-06-08 00:29:16

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: should i use a firewall ?

Ideally, there should be some hardware in between your computer and your modem. If your ISP gave you a router (or you can get your hands on a cheap one somewhere else), use that and trust NAT for your firewall. Otherwise, a simple software firewall like Firestarter or Shoreline wouldn't be a bad idea. Linux firewall software does nothing more than configure the built-in ipfilter system, so it doesn't matter which one you choose.

Last edited by skymt (2007-06-08 00:29:50)

Offline

#5 2007-06-08 11:54:56

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: should i use a firewall ?

well, i posted the same on Gentoo Forums and i was advised to use this:

defaultserverargs="--nolisten tcp"  in "/usr/bin/startx"

any comments on that ?

Offline

#6 2007-06-08 11:57:39

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: should i use a firewall ?

That's a good idea if you don't want to be able to access your X server remotely, not sure whether it's on default or not in Arch, but I have it added on my machine.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#7 2007-06-08 12:10:15

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: should i use a firewall ?

[vEX] wrote:

That's a good idea if you don't want to be able to access your X server remotely, not sure whether it's on default or not in Arch, but I have it added on my machine.

not sure what that means but i just do not want anybody to access my machine, whether X or command-line. will that option make this possible ?

Offline

#8 2007-06-08 14:18:20

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: should i use a firewall ?

X is built around the server-client model which means that it can accept connections over TCP from remote machines. Just disabling it (--nolisten tcp) will not substitute a firewall, it will only stop X from listening for TCP connections, the rest off your system will still be "open" so to say.

Last edited by [vEX] (2007-06-08 14:18:58)


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#9 2007-06-08 15:22:50

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: should i use a firewall ?

If you use a simple ADSL modem, it's likely that you are directly connected on the Internet with a public IP.
In that case, you must have a firewall. Simplest way is to drop everything in the INPUT chain, then allow traffic on loopback
and allow established connections.
I even believe there is a sample firewall script provided in the Arch package.

If your ADSL modem is also a router, then it probably SNATs all the traffic and your box has likely a class C private address (192.168.x.y/24).
In that case, don't bother with a firewall.

Offline

#10 2007-06-09 04:52:27

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: should i use a firewall ?

jerem wrote:

If you use a simple ADSL modem, it's likely that you are directly connected on the Internet with a public IP.

In that case, you must have a firewall. Simplest way is to drop everything in the INPUT chain, then allow traffic on loopback and allow established connections. I even believe there is a sample firewall script provided in the Arch package.

If your ADSL modem is also a router, then it probably SNATs all the traffic and your box has likely a class C private address (192.168.x.y/24).
In that case, don't bother with a firewall.

i have Netgear DG632 ADSL modem. Netgear folks say it has built-in NAT: 
http://www.netgear.com/Products/Routers … ifications

but i don't find any firewall rules or even word NAT in Modem's home page @  192.168.0.1

Offline

#11 2007-06-09 16:29:55

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: should i use a firewall ?

geek.arnuld wrote:

i have Netgear DG632 ADSL modem. Netgear folks say it has built-in NAT: 
http://www.netgear.com/Products/Routers … ifications

but i don't find any firewall rules or even word NAT in Modem's home page @  192.168.0.1

NAT (Network Address Translation) isn't a firewall is the strictest sense, it merely acts as one as a side-effect. It allows you to connect multiple computers to the Internet using a single IP address. When a computer makes a connection to a system somewhere else on the net, the NAT system in the router detects it and forwards all incoming traffic related to that connection to the originating computer. With incoming connections, the router has no way of knowing which computer the traffic is meant for, so it rejects it. This way, NAT acts as a firewall that allows all outgoing connections and rejects incoming ones.

If you want to allow incoming connections, you need to set up port forwarding. You can tell your router to forward all incoming connections on a port to a certain address on your local network. This is useful for things like file sharing, VoIP or online gaming.

In short, don't worry, you're safe. Well, as safe (slightly safer, perhaps) as you would be with a software firewall set up.

Offline

#12 2007-06-09 18:32:05

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: should i use a firewall ?

The address 192.168.0.1 says it all : your modem does NAT stuff because that address
is a class C private address, which is not routable on the Internet.

Don't bother with a firewall.

Offline

#13 2007-06-09 22:52:08

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: should i use a firewall ?

I know pretty much all about firewalls. That's why I don't care to set one up. Ports are closed, case closed.


1000

Offline

Board footer

Powered by FluxBB