Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-15-2003, 06:48 PM   #1
LQ Newbie
Registered: Jan 2003
Posts: 13

Rep: Reputation: 0
IPTABLES, NAT & Firewall

I am trying to configure a simple firewall. I want to have the firewall use NAT to translate the internal address to public. This will need to happen in both directions. All servers will reside behind the firewall. I will create holes in the firewall to allow traffic to each port. Simple huh!!!

Well I've been trying for 2 weeks and need a lot of help. Can someone send me a sample. I am using Slackware 8.1 kerneral 2.4.19. and IPtables 1.2.6a

My internal interface is:
My external interface is:

All servers will be -
Web Server will be located at

I would like to block everything inbound else port 80, 110, 25 etc.
Old 02-15-2003, 08:14 PM   #2
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
The following web site might prove helpfull. A detailed explanation of iptables and a good rc.firewall script example.


You can also do a search on LQ using "rc.firewall" and restrict to the Slack forum for some previous posting of scripts. Or let it search the entire site and get several pages of possible information targets. That later is how I turned up the link above.

But it sounds like what you desire is often called simply, port forwarding.


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
NAT, iptables, forwading, firewall w3it Linux - Newbie 7 11-17-2005 03:15 AM
nat & firewall thru iptables jkmartha Linux - Security 5 05-13-2005 08:47 AM
Iptables,firewall,nat,gnutella fortezza Linux - Security 1 05-15-2004 01:16 AM
NAT, iptables, firewall, and Windoze AWyant Linux - Newbie 7 09-23-2003 05:30 PM
iptables questions: NAT & firewall insanitee Linux - Networking 10 08-24-2003 07:32 AM

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration