LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2006, 09:16 PM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
Firewall


Hi all

I'm running Debian GNU/Linux 3.1

And I wish to install a firewall, do I go iptables or a GUI firewall package that I can bring up from the command . is there such a package.

How do I tell if I have iptables or a firewall is installed on the system.

Code:
find / -name iptbales bring up nothing
can any one help me out please

TT
 
Old 09-26-2006, 09:31 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Iptables is the defacto standard for firewalling on Linux. As far as I know, all GUIs are merely front-ends to iptables.
 
Old 09-26-2006, 09:47 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
There are a number of scripts available that will set some iptables rules for you. Search google for some.

The guarddog or firestarter packages have a good graphical frontend, but both create a startup script for you. I prefer guarddog.

--Ian
 
Old 09-26-2006, 09:50 PM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Matir
Iptables is the defacto standard for firewalling on Linux. As far as I know, all GUIs are merely front-ends to iptables.
I see so iptables is standard to most linux systems

so how do i got about get it up and running,

apt-get install iptables

What I meant by GUI was, I was hoping to install a front end firewall package that will load from the command line in the light blue screen colour we seen when installing an OS.

I use Putty from one PC (XP) to another(Debian).

if you get what I mean.

TT

Code:
apt-get install iptables
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  ipmasq iproute
The following NEW packages will be installed:
  iptables
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 381kB of archives.
After unpacking 1270kB of additional disk space will be used.
Get:1 http://mirror.aarnet.edu.au stable/main iptables 1.2.11-10 [381kB]
Fetched 381kB in 7s (49.3kB/s)
Selecting previously deselected package iptables.
(Reading database ... 26381 files and directories currently installed.)
Unpacking iptables (from .../iptables_1.2.11-10_i386.deb) ...
Setting up iptables (1.2.11-10) ...

Last edited by tommytomato; 09-26-2006 at 09:52 PM.
 
Old 09-26-2006, 10:22 PM   #5
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
I have a backup iptables file that I use some time ago written by a friend. ( Generated by iptables-save v1.2.9 on Tue Sep 21 12:29:55 2004 )

I know where the file was stored on a tinysofa system, but where does debian store its iptables file

can the file I have be used on debian

TT

Code:
*mangle
:PREROUTING ACCEPT [1:576]
:INPUT ACCEPT [1:576]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
*nat
:PREROUTING ACCEPT [2:1152]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
*filter
:INPUT ACCEPT [6:3456]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT

# Generated by iptables-save v1.2.9 on Tue Sep 21 12:29:55 2004
*mangle
:PREROUTING ACCEPT [1644:139895]
:INPUT ACCEPT [1644:139895]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1533:369026]
:POSTROUTING ACCEPT [1532:368906]
COMMIT
# Completed on Tue Sep 21 12:29:55 2004
# Generated by iptables-save v1.2.9 on Tue Sep 21 12:29:55 2004
*nat
:PREROUTING ACCEPT [25:3104]
:POSTROUTING ACCEPT [11:736]
:OUTPUT ACCEPT [11:736]
COMMIT
# Completed on Tue Sep 21 12:29:55 2004
# Generated by iptables-save v1.2.9 on Tue Sep 21 12:29:55 2004
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [1:120]
:REJECT-PKT - [0:0]
-A INPUT -s 83.132.97.14 -j DROP
-A INPUT -s 81.199.85.110 -j DROP
-A INPUT -s 218.16.120.80 -j DROP 
-A INPUT -s 210.59.228.94 -j DROP 
-A INPUT -s 219.153.0.218 -j DROP 
-A INPUT -s 63.93.95.121 -j DROP 
-A INPUT -s 203.134.154.2 -j DROP 
-A INPUT -s 67.52.65.10 -j DROP 
-A INPUT -i lo -j ACCEPT 
-A INPUT -s 127.0.0.0/255.0.0.0 -j DROP 
-A INPUT -d 127.0.0.0/255.0.0.0 -j DROP 
-A INPUT -p tcp -m tcp ! --tcp-flags SYN,RST,ACK SYN -m state --state NEW -j DROP 
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
#-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT 
-A INPUT -j REJECT-PKT 
-A OUTPUT -s 127.0.0.0/255.0.0.0 -j ACCEPT 
-A OUTPUT -s 10.0.0.0/255.0.0.0 -j ACCEPT 
-A OUTPUT -s 192.168.1.0/255.255.255.0 -j ACCEPT 
-A REJECT-PKT -p tcp -m tcp -j REJECT --reject-with tcp-reset 
-A REJECT-PKT -p udp -m udp -j REJECT --reject-with icmp-port-unreachable 
COMMIT
# Completed on Tue Sep 21 12:29:55 2004

Last edited by tommytomato; 09-26-2006 at 11:28 PM.
 
Old 09-27-2006, 12:25 AM   #6
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
Ok I've work out how to add rules to iptables.

but how you restart iptables, or get it to come on when the PC loads

could some point me to some simple to read about iptables for debian please.

I've tried here
http://www.little-guardian.com/diy/iptables.html

and a few other sites.

TT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BSD Firewall vs Linux Firewall ? rootlinux Linux - Security 5 08-29-2007 07:38 AM
router billion 5102 has firewall and software firewall tests aus9 Linux - Security 6 12-31-2006 10:09 PM
using a router with firewall, local firewall waste? Michael_aust Linux - General 1 03-26-2006 08:02 AM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Firewall Builder sample firewall policy file ? (.xml) nuwanguy Linux - Networking 0 09-13-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:02 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