LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2003, 01:43 AM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Iptables newbie / simple question


Ok, i am trying to come up with a iptables setup.....just started looking around today..have a extremely simple question on a concept..by the way this is for a dial up connection..

iptables -A INPUT -s localhost -p icmp -j ACCEPT
iptables -A INPUT -p icmp -j DROP


ok, lol...this is how far i got so far, blocking icmp.. (me being able to ping myself is pointless i know, but just trying to figure how once a rule applies to let it thru) it goes to first rule, then moves to next....but then it will get dropped....so how do i make it so once it gets accepted not to move on??? or even better yet does someone have a good recent tutorial or something to point me in the right direction....thanks


EDIT: ok, i guess by me adding a.......
iptables -F ....at the beginning it works out, so once a something matches thats it, it stops going??? also a good tutorial would still be nice -thanks

Last edited by wr3ck3d; 03-06-2003 at 02:19 AM.
 
Old 03-06-2003, 09:08 AM   #2
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
there are many a good tutorial out there to look at man...

I think you need to understand what is meant by a "default policy"...

you should be running a "DROP" by default policy... then you only make rules for connections you want to come into the box.... everything else gets dropped...

I would check out the FAQ post listed at the top of this forum as a start... then if you are serious about learning linux firewalls (and more specifically, iptables) I would pick up Robert Ziegler's book "Linus Firewalls". I have found it to be a great reference/asset.

One thing you will need to look into is masquerading since you are firewalling a dial-up connection...

GL yo...

Last edited by WeNdeL; 03-06-2003 at 09:09 AM.
 
Old 03-06-2003, 09:08 AM   #3
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
and use the search function... you'll find some good stuff in here...
 
  


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
simple newbie question naijaguy Red Hat 1 08-11-2004 11:55 PM
Simple newbie question izrahi Linux - Newbie 1 08-11-2004 06:07 PM
Simple iptables help- Newbie ldahn Linux - Networking 3 03-06-2003 10:51 PM
A simple newbie question ! trubi Linux - General 19 01-30-2003 09:34 AM
Simple iptables DNAT question taylor Linux - General 0 10-02-2001 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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