LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 03: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, 05: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, 05: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



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

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

All times are GMT -5. The time now is 11:50 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
Open Source Consulting | Domain Registration