Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables: exe
@ 2002-09-21 21:12 Tasha Smith
  2002-09-21 21:28 ` Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Tasha Smith @ 2002-09-21 21:12 UTC (permalink / raw)
  To: netfilter

Ok...i have my own iptables script trying to get it
going...here what i have soo far in it...just starting
 
SPECS: 
RedHat 7.2 
2.4.19 Kernel 
iptables-1.2.3 

####################################### 
#!/bin/bash 

echo 1 = > /proc/sys/net/ipv4//ip_forward 
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 

# Remove any existing rules from all chains. 
iptables --flush 
iptables -t nat --flush 

# Unlimited access on the loopback interface 
iptables -A INPUT -i lo -j ACCEPT 
iptables -A OUPUT -o lo -j ACCPET 

# Set the fefault policy to Drop 
iptables --policy INPUT DROP 
####################################### 
Now... to get this to run on start-up here is what i
did but it didnt start up it gave me an error. 
chown root.root /etc/init.d/firewall 
chmod u=rwx /etc/init.d /firewall 

And when i restart I GET ERROR... which is 
"iptables: execvp: Permission Denied 
rc. Starting iptables: Failed"  

I also have this line sh /etc/init.d/firewall at the
end of my "rc.local" file 

HOW CAN I FIX THIS OR GET THEM TO START-UP PROPERLY?
EDIT: > OOPPPPPPSS guys  i forgot to mention the
original iptables script that came installed already
on my system in the "/etc/init.d/" i moved that to
somewhere else.... was i suppose to do that or just
leave them there???



=====

Image by MackDaddy

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <20020921220721.11083.qmail@web20303.mail.yahoo.com>]
* iptables: exe
@ 2002-09-22  1:36 Tasha Smith
  2002-09-22  1:57 ` Stewart Thompson
  0 siblings, 1 reply; 11+ messages in thread
From: Tasha Smith @ 2002-09-22  1:36 UTC (permalink / raw)
  To: netfilter

Alrightyyyy.. here is my script soooo  far:
#!/bin/bash 

# Remove any existing rules from all chains. 
iptables --flush 
iptables -t nat --flush 

# Unlimited access on the loopback interface 
iptables -A INPUT -i lo -j ACCEPT 
iptables -A OUPUT -o lo -j ACCPET 

# Set the fefault policy to Drop 
iptables --policy INPUT DROP 
iptables --policy FORWARD DROP

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
######################################################'
Here is my output for iptables -vL -t nat

Chain PREROUTING (policy Accept 67 packets, 8497 bytes)
pkts bytes target prt opt in out source destination

CHain POSTROUTING(policy ACCEPT 5 packets, 394 bytes)
pkts bytes target prt opt in out source destination
0 0 MASQUERADE all -- any eth0 anwywhere anwhere

Chain OUPUT (policy ACCEPT 5 packetts, 394bytes)
pkts bytes target prt opt in out source destination
---------------------------------------------------------
Soo does it look like they started ???


P.S.>By they way if anyone can gimme a few more rules for my box i could add i
would really appreciate it just to make it a bit more secure beofore i plug it
in ....  I have 2 INTERFACES and it is acting as FIREWALL/ROUTER




__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-09-24 20:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-21 21:12 iptables: exe Tasha Smith
2002-09-21 21:28 ` Antony Stone
2002-09-21 22:11 ` Tasha Smith
2002-09-21 22:37 ` Stewart Thompson
2002-09-21 22:58   ` Tasha Smith
2002-09-21 23:13     ` Stewart Thompson
2002-09-21 22:58   ` Tasha Smith
2002-09-24 20:24   ` internal ftp/port forwarding problem skmail
     [not found] <20020921220721.11083.qmail@web20303.mail.yahoo.com>
2002-09-21 22:19 ` iptables: exe Antony Stone
  -- strict thread matches above, loose matches on Subject: below --
2002-09-22  1:36 Tasha Smith
2002-09-22  1:57 ` Stewart Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox