[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: IPTABLES Firewall
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: IPTABLES Firewall  (Read 730 times)
0 Members and 1 Guest are viewing this topic.
Saif
Linux Noob !
*
Offline Offline

Posts: 10


View Profile
« on: August 20, 2004, 11:09:48 PM »

Hi all,
I have created a iptables firewall file named 'firewall"  in /etc/rc.d and changed its mode to 711. In rc.local I have put 'sh /etc/rc.d/firewall'  but unfortunately the file is not being executed during restart.

When i run, sh firewall I get error message. But when I put the iptables one by one, all the rules are accepted.

Can any one help me. Thanks in advance

Saif
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #1 on: August 21, 2004, 06:11:24 AM »

well.. do it like this..
Code:
chmod 755 /etc/rc.d/firewall

and put only following in your rc.local
Code:
/etc/rc.d/fireall

Smiley
Logged
Saif
Linux Noob !
*
Offline Offline

Posts: 10


View Profile
« Reply #2 on: August 22, 2004, 01:27:52 PM »

Ricky
Sorry..I tried with your solution but it is not working. Please see the text inside that file(firewall). It is like this:

#!/bin/sh
IPTABLES=/sbin/iptables

$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -F FORWARD

....... and bla bla bla

Then I did followings:
1. #chmod 755 firewall
2. #vi /etc/rc.d/rc.local
/etc/rc.d/firwall

Please note that I can run it if I put the commands
 sh /etc/rc.d/firewall
But none of the chains are accepted.

Now when i put the same chain directly it accepts all

I do not know why and where I am making a mistake.

Please help

With thanks and regards
Saif
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Firewall using NAT (after configuring transparent proxy) General Networking Support in Linux kenchix1 1 1278 Last post March 02, 2004, 12:02:23 AM
by Ricky
How to set up a firewall General Networking Support in Linux softmafia 1 1038 Last post June 17, 2004, 04:18:37 PM
by DriverJC
proxy + firewall Linux Servers Support linuxdummy 0 820 Last post August 21, 2004, 04:40:15 AM
by linuxdummy
Configuring smoothwall corporate firewall 4 Distribution Specific praful_thakare 3 1239 Last post October 10, 2005, 11:52:49 AM
by Ricky
configure iptables firewall Linux Development & Programming nikhilgmt 4 430 Last post May 15, 2008, 10:58:37 PM
by Ricky
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 10:51:08 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 19, 2008, 07:52:49 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6221
Latest: nelorahc
Stats
Total Posts: 8268
Total Topics: 2253
Online Today: 13
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc