LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-10-2004, 08:22 AM   #1
Tinochelli
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 18

Rep: Reputation: 0
IPTABLE Entries Issue


I am currently setting up a fedora c2 box to perform routing, the box can communicate to the external and the internal networks. the clients on the internal cannot get internet access. i have added iptable entries (as seen below) i Want to remove all the rules and just get the internal machines setup with internet connectivity...then i can start adding more specific rules

My main problem is that wen i run the iptables -F (to flush entries) they still remain in the iptables file?? No doubt i am missing sumthin...but what?

/etc/sysconfig/iptables
*mangle
:PREROUTING ACCEPT [167405:23043570]
:INPUT ACCEPT [10911:2766774]
:FORWARD ACCEPT [27696:1644743]
:OUTPUT ACCEPT [7381:586217]
:POSTROUTING ACCEPT [34850:2218884]
COMMIT
# Completed on Fri Dec 10 11:35:23 2004
# Generated by iptables-save v1.2.9 on Fri Dec 10 11:35:23 2004
*filter
:INPUT DROP [3175:1096675]
:FORWARD ACCEPT [27569:1639551]
:OUTPUT ACCEPT [7281:579333]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i ! eth0 -m state --state NEW -j ACCEPT
-A INPUT -i eth0 -m state --state INVALID,NEW -j DROP
-A FORWARD -i eth0 -o eth0 -j REJECT --reject-with icmp-port-unreachable
-A FORWARD -i eth0 -m state --state INVALID,NEW -j DROP
COMMIT
# Completed on Fri Dec 10 11:35:23 2004
# Generated by iptables-save v1.2.9 on Fri Dec 10 11:35:23 2004
*nat
:PREROUTING ACCEPT [184963:25023615]
:POSTROUTING ACCEPT [58:4227]
:OUTPUT ACCEPT [72:5375]
-A POSTROUTING -o eth0 -j SNAT --to-source 10.61.0.3
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT



Thanks in advance for any help
 
Old 12-10-2004, 09:15 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
The /etc/sysconfig/iptables file is the default rule set. When iptables service is started these rules are loaded. The file will not reflect any manual changes via the command line or script unless they are saved:

service iptables save

You can also see the current rules via the command

iptables -L

Last edited by michaelk; 12-10-2004 at 09:18 AM.
 
  


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
SuSe 9.3 Firewall iptable issue Dralnu Linux - Security 1 08-13-2005 01:29 PM
what is an iptable? Baran Linux - Newbie 7 02-07-2005 05:14 PM
iptable summerfish Linux - Networking 1 07-16-2004 02:28 AM
iptable help Neomaster Linux - Security 5 05-29-2003 09:13 PM
iptable help Syntax Linux - General 1 12-29-2002 11:04 PM

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

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