LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-05-2008, 08:40 AM   #1
s_hcl
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Rep: Reputation: 0
Firewall` script problem in RHEL 4


I am using RHEL 4 and have created a custom Firewall script .

The systems has 2 lan cards etho and eth1 configured with the respective internal and external ips .

When i run the firewall script it runs perfectly without any errors ,but when i run the command

service iptables status ,it seems to run the internal Iptables script .

I have made the changes in the below files

/etc/sysctl.conf
/etc/rc.d/rc.local - added the path of the firewall script
Have made the Firewall script executable
added the command echo "1" > /proc/sys/net/ipv4/ip_forward in the firewall script

I can Ping external websites from the linux server and also the clients can ping the DNS ,but cannot access the websites.


Do i need to link the firewall script file so that it starts at boot up .

Pl let me know where am i going wrong .Am i missing any pre-requisites before a custom made firewall script needs to be run.

regds

Sudarshan'
 
Old 06-05-2008, 09:31 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I believe the convention on Red Hat (and Red Hat-based) distros is to not have an iptables script run at startup, and instead just save your configuration after executing your script. That would mean doing a "service iptables save" right after executing your script. Then your iptables configuration gets automatically restored every boot, without you having to edit any startup scripts or anything like that.
 
  


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
Mounting an NFS volume on RHEL 5 Thru the Firewall louisb Linux - Server 7 10-05-2007 01:02 PM
startup script not working in RHEL 4 shipon_97 Linux - Enterprise 3 08-09-2007 01:13 PM
Where should this firewall script be placed? wardialer Linux - Security 84 02-14-2005 07:06 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Firewall script help!!!! cirkut5732 Linux - Newbie 8 04-17-2003 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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