Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th June 2008, 15:51
sud.tech sud.tech is offline
Junior Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default firewall scripts error 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'
Reply With Quote
Sponsored Links
  #2  
Old 6th June 2008, 11:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I'd disable the iptables init script and enable your script with the help of the chkconfig command. See
Code:
man chkconfig
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability (Load Balancing) behind a firewall geek.de.nz Server Operation 7 4th January 2011 13:58
Firewall Won't Open up! vibrancy Installation/Configuration 7 31st January 2008 01:34
Implement single firewall login for access to all ports on LAN? ripwit Installation/Configuration 1 29th August 2007 06:03
ISP Services firewall page ustoopia Feature Requests 2 17th July 2007 18:39
I need a suitable firewall. agul Server Operation 4 23rd November 2005 00:12


All times are GMT +2. The time now is 16:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.