LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2003, 04:51 AM   #1
poshphil
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 8.0
Posts: 6

Rep: Reputation: 0
How do I set up IPTables?


Hi,


I've been following the IP Masquerade HOWTO, which I can't link to yet because i havent made enough posts, but it's easily found I would guess.

anyway I've got as far as section 3.4.1. I have put that script in in the way specified, however I get errors when it runs:

Quote:
Loading simple rc.firewall version 0.74..

External Interface: eth0
Internal Interface: eth1
loading modules: - Verifying that all kernel modules are ok
----------------------------------------------------------------------
ip_tables, ip_conntrack, ip_conntrack_ftp, ip_conntrack_irc, iptable_nat, ip_nat
_ftp, ----------------------------------------------------------------------
Done loading modules.

Enabling forwarding..
Enabling DynamicAddr..
Clearing any existing rules and setting default policy..
/etc/rc.d/rc.firewall-2.4: line 272: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 273: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 274: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 275: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 276: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 277: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 278: /usr/local/sbin/iptables: No such file or d
irectory
FWD: Allow all connections OUT and only existing and related ones IN
/etc/rc.d/rc.firewall-2.4: line 281: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 282: /usr/local/sbin/iptables: No such file or d
irectory
/etc/rc.d/rc.firewall-2.4: line 283: /usr/local/sbin/iptables: No such file or d
irectory
Enabling SNAT (MASQUERADE) functionality on eth0
/etc/rc.d/rc.firewall-2.4: line 286: /usr/local/sbin/iptables: No such file or d
irectory

Done.

My guess is that IPTables isn't actually installed properly or not configured right or something, can anyone shed any light?
 
Old 09-19-2003, 06:02 AM   #2
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Try

# which iptables

If that shows up blank, then you have to find it on the net (apt-get or rpmfind.net). If it doesn't, then correct the variable IPTABLES in your script above to reflect not /usr/local/sbin/iptables but the output of the above command.
 
Old 09-19-2003, 06:26 AM   #3
poshphil
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by footfrisbee
Try

# which iptables

If that shows up blank, then you have to find it on the net (apt-get or rpmfind.net). If it doesn't, then correct the variable IPTABLES in your script above to reflect not /usr/local/sbin/iptables but the output of the above command.

doh, yes, should have spotted that one


Ok that's great thank you very much
 
  


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
iptables set up Pur 2103 Linux - Newbie 4 08-06-2005 02:18 PM
help - need to set up iptables on one interface out of three only aemee Linux - Security 2 05-10-2005 09:51 PM
newbie help - IPtables. What are they and DO I need to set them up? kopite Linux - Security 3 11-23-2003 07:25 AM
Iptables: help me set it up, please Adeyinka Linux - Security 2 10-09-2003 10:27 AM
set up iptables on rh7.2 chan Linux - Networking 0 03-18-2002 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration