LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-18-2004, 05:35 PM   #1
nightmare6667
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
Iptables in fedora wont work properly


Hi I am a new to linux having upgraded from windows xp as I wasn’t happy with the security aspect of it and I have just purchased a copy of fedora but I cant get the iptables to work properly it seams to load R-H Firewall as default I have created two scripts with a lot of help from a friend one to make the 2.4 kernel better equipped against a DOS attack and the other as a firewall script I have added the commands into the rc.local script after creating the folder rc.scripts with the relevant files in the folder
/etc/rc.d/rc.local
sh /etc/rc.scripts/rc.kernel
sh -f -v /etc/rc.scripts/rc.firewall

But it doesn't seam to load the firewall script into the iptables memory can anyone help me please
 
Old 02-18-2004, 10:15 PM   #2
geraldomanaus
Member
 
Registered: Nov 2002
Location: Amazonas/Brasil (Rain Forest)
Distribution: GNU/Slackware
Posts: 43

Rep: Reputation: 15
Hello friends,

Friend nightmare6667,

You can try this mode:
Put your configuration file in a directory, like /usr/local/bin, and use the command: chmod +x /usr/local/bin/firewall_rules.sh. Then, insert the following lines in your rc.d (boot):
sh /usr/local/bin/firewall_rules.sh.
 
Old 02-22-2004, 01:06 PM   #3
nightmare6667
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I think the iptables are now loading

Hi thanks for your reply i found a mistake in my rc.local how ever i think they are now loading my rule set when i do iptables -L it comes up with some text that bares a resemblance to my script but what i am trying to do is have 3 computer networks

eth0 being the INTERNET address assigned by a dhcp server that gives my network card an address of 10.0.0.5

eth1 being an internal nic with the address of 10.1.0.254

eth2 being internal network two with the address of 10.2.0.254

eth 3 being network three with the address of 10.3.0.254

i want network one eth one to have access to the other two networks on eth2 and 3

i want network two to be able to have access to network three but not one and still be able to go on the INTERNET

and i want network three to be stand alone just with INTERNET access

i managed to get Windows xp to share the INTERNET for me and i turned off its file sharing and clients for Microsoft networking which just gave me the INTERNET to the second network but i am still a new to linux and unfortunately very new to iptables and masquerading nating and other names for it i would be gratefully for any help possible
 
  


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
mplayer wont work on suse 9.2 properly sephitoh999 Linux - Software 3 03-17-2005 12:52 PM
X wont work properly on HP/Compaq nx9105 Icetec Linux - Laptop and Netbook 2 12-13-2004 10:17 AM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 12:02 PM
why wont my mouse work properly with kde? nikolai Mandriva 2 01-22-2004 11:15 AM
sharing internet through eth0 to sl0, iptables wont work Oxagast Linux - Networking 2 08-11-2003 08:36 PM


All times are GMT -5. The time now is 09:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration