LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-09-2009, 05:24 PM   #1
kaitech76
LQ Newbie
 
Registered: Mar 2009
Location: Honolulu
Distribution: Fedora 10 and Ubuntu
Posts: 8

Rep: Reputation: 0
Shorewall, Two Public IPs and Two different servers


I am trying to get shorewall to allow DNAT port 80 on a speific public ip to goto another internal server and when a different ip is used it should go to a different server for exapmle

public ip 1.1.1.1. go to 10.0.14.2 and public ip 1.1.1.2 goto 10.0.14.3


#################################################################################################### #########
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/
# PORT PORT(S) DEST LIMIT GROUP
# PORT PORT(S) DEST LIMIT GROUP
#
DNAT:info net loc:10.0.14.103 tcp 3389
DNAT:info net loc:10.0.14.103 udp 3389
DNAT net loc:10.0.14.6 tcp www 80 1.1.1.1
DNAT net loc:10.0.14.7 tcp www 80 1.1.1.2
DNAT net loc:10.0.14.6 tcp 5003
DNAT net loc:10.0.14.6 tcp 443


Everytime i try this I get a connection failed, if i take out on of the DNAT rules and take out the orginal Dest then it works fine but I have two different web servers that I am trying to get access to from outside.

any help would be apreciated,

I am using fedora 4 and shorewall 3.0
 
  


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
Rules for specif ips internally with shorewall eXor Linux - Security 5 02-08-2008 10:30 PM
Can I use Public IPs on LAN dula Linux - Networking 1 06-07-2007 06:46 AM
two public ips on one nic for home office dns servers rioguia Linux - Networking 12 08-19-2004 03:59 PM
shorewall with 2 external static ips and DMZ gjmwalsh Linux - Networking 0 05-10-2004 09:31 PM
Public IPs behind router Buzer Linux - Networking 2 09-20-2003 01:36 PM

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

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