LinuxQuestions.org
Visit Jeremy's Blog.
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, 10:11 PM   #1
ldahn
LQ Newbie
 
Registered: Mar 2003
Distribution: RH8
Posts: 2

Rep: Reputation: 0
Question Simple iptables help- Newbie


Windoze user for years, new to the Linux community but liking what I see

I recently installed RH8 and am trying to set up iptables for security. I connect through a cable modem using DHCP and am only running one box. I set up iptables per RHL8 4 Dummies but, since then, Gnome freezes on load. KDE loads okay, but can't connect to the net.

Everything loaded fine before changing iptables. If I turn iptables off in server settings, everything loads fine... obviously a problem with iptables configuration. I have gone over what is set up and it is exactly what the book recommends.

Any tips on a basic iptables setup for DHCP would be greatly appreciated.
 
Old 03-06-2003, 10:18 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You should post your iptables settings. I'm no expert myself but it helps if people can see exactly what your allowing and dropping.
 
Old 03-06-2003, 10:50 PM   #3
ldahn
LQ Newbie
 
Registered: Mar 2003
Distribution: RH8
Posts: 2

Original Poster
Rep: Reputation: 0
iptables current setup

# Generated by iptables-save v1.2.6a on Wed Mar 5 21:02:48 2003
*nat
:PREROUTING ACCEPT [65:22445]
:POSTROUTING ACCEPT [30:1813]
:OUTPUT ACCEPT [120:7785]
COMMIT
# Completed on Wed Mar 5 21:02:48 2003
# Generated by iptables-save v1.2.6a on Wed Mar 5 21:02:48 2003
*filter
:INPUT ACCEPT [268:20708]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [523:34938]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Wed Mar 5 21:02:48 2003
 
Old 03-06-2003, 10:51 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Yo crashed; Is that You sticking out your tougue on your home page?

I think you need wild cards in you IP chains to accout for the IP range your going to be accessing via DHCP.
 
  


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 IPTABLES problem zahoo Linux - Networking 2 03-09-2005 10:43 PM
iptables problem in a very simple script max_sipos Linux - Security 2 08-10-2004 07:58 AM
simple Iptables line enrique_arong Linux - Networking 1 06-09-2004 08:14 AM
Simple enough...iptables..port forwarding pembo13 Linux - Networking 4 07-19-2003 03:08 AM
Iptables newbie / simple question wr3ck3d Linux - Networking 2 03-06-2003 09:08 AM

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

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