LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2004, 02:34 AM   #1
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 25 86_64
Posts: 357

Rep: Reputation: 32
Question Firewall problems


Dear people,

As my user name suggest, I知 very new with Linux I知 using Fedora Core 2.

I have some problems with the firewall, when it is active, it look that the firewall is blocking all outgoing data.

I have also Firestarter installed, but this also not gives me a clear idea what is incoming and outgoing data. Basically I want that the firewall allows all data outgoing and block some incoming ports.

I知 using a 56K analog modem on serial port 1.

With kind regards

Richard
 
Old 06-16-2004, 02:39 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
here is a very simple script

#!/bin/sh
# Simple firewall script
iptables -X
iptables -F
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT

iptables -A OUTPUT -o ppp -j ACCEPT -m state --state NEW,RELATED,ESTABLISHED
iptables -A INPUT -i ppp -j ACCEPT -m state --state RELATED,ESTABLISHED

Last edited by ppuru; 06-16-2004 at 02:41 AM.
 
Old 06-16-2004, 08:21 AM   #3
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 25 86_64
Posts: 357

Original Poster
Rep: Reputation: 32
Hello PPuru,

I'm very happy with this simple script, but there is a small problem. The small problem is that I have no idea what to do with this simple script.

Therefore I want to ask if you can explain it to in some more details?

With kind regards,

Richard
 
Old 06-16-2004, 08:43 AM   #4
sporadic235
Member
 
Registered: May 2004
Location: Osaka
Distribution: FreeBSD 5.2, Mandrake 9.2
Posts: 39

Rep: Reputation: 15
name that script to something like firewallrules.sh and save it to /etc/rc.d
 
Old 06-16-2004, 11:07 PM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Login as root

save that script as say ... simpfilt.sh in your /root directory.

from your /root directory

#chmod 700 simpfilt.sh
#mv /etc/sysconfig/iptables /etc/sysconfig/iptables.orig
#source simpfilt.sh
#service iptables save

now you have the script running

#iptables -nvL

to will give you the current ruleset.
 
Old 06-17-2004, 03:36 AM   #6
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 25 86_64
Posts: 357

Original Poster
Rep: Reputation: 32
Dear Ppuru and Sporadic235,

Thanks for the information; I can now connect to the internet with my Firewall running.

As all things in live, one solution for a problem opens the way for new problems. I知 using a Micronet SP3000 56k External modem (serial RS-232). I use KPPP to dial to my ISP, KPPP informs me that I知 connect at 52000 but it takes ages to get a website or if I try to download some files it never gets above 0.6kb download speed.

With my Windows 2000 computer, I use the same modem and get easily 4.4 to 5.2 kb download speed.

It is also almost clockwork that I get disconnected from the internet after +/- 2 hours, if I get not disconnected after 2 hours I not receive any data from my ISP after 2 hours time. My ISP told me that the problem is at my side; I have to say I use the same ISP for my Windows system and not have problems like that.

I think that this is not a firewall problem, as the same happens with Firewall On or Off.

If somebody, knows something that a newbie surely forget to do when he installed his modem, I did not that much. KPPP 展izzard and ISP user information..

With kind regards,

Richard
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall Problems Rick069 Linux - Security 2 08-16-2005 11:20 AM
Firewall Problems fannymites Linux - Software 3 12-03-2004 06:37 PM
Firewall Problems susesarus Linux - Newbie 5 08-04-2003 06:30 AM
Firewall Problems Ange062 Linux - Networking 14 01-16-2003 07:48 AM
Firewall problems lcadwell Linux - Networking 5 08-07-2001 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration