LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-09-2004, 09:56 PM   #1
Eklipz
Member
 
Registered: Sep 2004
Posts: 85

Rep: Reputation: 15
Sarge Software Firewall


I was wondering if there are currently any software firewalls similar to firestarter than are available in the testing/sarge distribution. I have found Shorewall, but that appears to be more for putting on a router, I want to use it as a personal firewall on my laptop.
 
Old 12-09-2004, 11:14 PM   #2
sparticat
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
guarddog?
 
Old 12-11-2004, 09:56 AM   #3
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
build a firewall yourself
make sure you have what you need to run a firewall

apt-get install iptables klogd sysklogd

http://easyfwgen.morizot.net/gen/
http://www.citadec.com/FirewallGenerator.html

there are a bunch of them....

then just copy the output to a file on your system

for example .. /etc/firewall/'firewall_main'

then type the following command;

#iptables-restore < /etc/firewall/firewall_main

and check to see if the fire wall is up and running

#iptables -L

you should see the output of the script you wrote (from one of the sites)

you can also build a script that will open everything just incase you have problems

for example .. /etc/firewall/'firewall_reset'

## firewall_reset
#
*filter
:INPUT ACCEPT [164:15203]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [147:63028]
COMMIT

*mangle
:PREROUTING ACCEPT [164:15203]
:INPUT ACCEPT [164:15203]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [147:63028]
:POSTROUTING ACCEPT [147:63028]
COMMIT

*nat
:PREROUTING ACCEPT [14:672]
:POSTROUTING ACCEPT [9:684]
:OUTPUT ACCEPT [9:684]
COMMIT
#

and you can run this to open up everything

#iptables-restore < /etc/firewall/firewall_reset

#iptables -L

you should see the output of teh script you wrote (/etc/firewall/firewall_reset)

now if you find a script you like you can have it start on boot with the ifupdown iptables commands.

open /etc/network/interfaces with your favorite editor and add the following lines (following my examples)

# The primary network interface
#auto eth0
#iface eth0 inet dhcp #<- after this block#
pre-up iptables-restore < /etc/firewall/firewall_main
post-down iptables-restore < /etc/firewall/firewall_reset

now you will will have your cumtom firewall script start when your network interface is started and stop when it is shut down
 
Old 12-11-2004, 01:18 PM   #4
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
read the Debian Configuration Post-install sticky, look for Firehol (third or fourth posting by Dead Parrot)
 
  


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
debian sarge firewall lostdata Linux - Newbie 6 08-22-2005 03:02 PM
firewall problems in sarge abunsair Debian 4 07-14-2005 02:17 PM
Firewall on Debian 3 1 Sarge R Audano Linux - Security 17 07-01-2005 01:32 AM
Sarge and recent software GruiX Debian 7 06-23-2005 11:13 AM
software firewall for debian sarge r.stiltskin Linux - Security 1 11-27-2004 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:04 PM.

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