LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-18-2007, 01:25 AM   #1
wingmak
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
question about iptables (DMZ machine connect to other DMZ machine 's publuic IP)


hi all,

i am using iptables to be a firewall for my company,

for example:
ext_ip_1: 111.111.111.1
ext_ip_2: 111.111.111.2

dmz_ip_1: 192.168.0.1:www ( mapping to 111.111.111.1:www )
dmz_ip_2: 192.168.0.2:ftp ( mapping to 111.111.111.2:ftp )

when i try to connect to the Wan IP of 111.111.111.1 from 192.168.0.2,
it show me an error message about "Connection refused"

how can i setup a rule to connect to DMZ machine 111.111.111.1:www from machine 192.168.0.2 ??
and connect to DMZ machine 111.111.111.2:ftp from machine 192.168.0.1

thanks !

wingmak
 
Old 01-20-2007, 04:01 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I can't find the post I am looking for but what should work is DNAT. Check out the links in the post by Capt_Caveman. http://www.linuxquestions.org/questi...highlight=dnat

Search here for dnat and there are several examples.

Brian
 
  


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 + DMZ Host XaViaR Linux - Networking 3 10-08-2006 11:38 AM
iptables + DMZ Braytac Linux - Networking 3 10-06-2006 05:57 AM
Linux router - setting up a DMZ or default machine to route to Rooboy Linux - Networking 12 02-18-2004 03:44 PM
IPTABLES and DMZ Host htimst Linux - Security 1 12-21-2001 07:04 AM
Setting up DMZ with iptables.... ghost-ils Linux - Networking 0 09-09-2001 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:53 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