LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2004, 05:05 PM   #1
boeing9379
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
firewall for 5 external ip's


Hi everyone,
I have purchased 5 ip addresses so I can host my own servers. I have a red hat 7.2 box, that I would like to use as a firewall. I want to use this as a firewall for each pc. I want to use the red hat box as a dns server and a firewall. I just need to know hot to set it up as a firewall for five ip addresses. Just to be a little more clear they are not internal private ip addresses. Say I had the ip 69.243.192.185 and 69.243.192.186. How would I forward port 80,25,21,22, and 110 to ip 69.243.192.185, and then port 53 to ip 69.243.192.186. So i need to first set it up as a firewall for five ip's, and then set up port forwarding for 2 of the five ip's.

Last edited by boeing9379; 10-09-2004 at 05:07 PM.
 
Old 10-09-2004, 07:24 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
iptables www.netfilter.org
also read networking howtos at www.tldp.org

use the (front-)box with one of your official ip addresses. use the REDIRECT rule from iptables to move a query to the specific machine (can be any ip) into your intern lan.

man iptables and the above links should give you a overview of what's to do.

sl mritch.
 
Old 10-10-2004, 12:45 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Also, make sure you update that Red Hat box before you put it on the Internet, or your firewall will soon become a failedwall. RH 7.2 is horribly obsolete and there are dozens and dozens of known security vulnerabilities with it.
 
  


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 - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
ssh connection refused for external IP's Pleonast Linux - Networking 2 11-08-2004 12:00 PM
internal box to external IP's? TigZy Linux - Networking 4 09-29-2004 06:39 PM
Unable to reach external IP's and URL's louisb Linux - Networking 6 08-19-2003 08:45 PM
2 NICs, 2 external IP's (1 behind a router) yskwong Linux - Networking 5 05-25-2001 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:14 AM.

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