Solved

Network Config with my DSL to Host Site

Posted on 2003-11-21
7
279 Views
Last Modified: 2010-05-18
Hello Experts!

I have been trying to configure my servers but no luck...
My problem goes this way. I have acquired a DSL to an ISP with a /29 IP block. I setup a firewall/gateway with a linux rh9 server with 2 nic. with 1 nic pointing at the net and one on my Lan. I have added an additional server which I intent to be my web server. How will I add my additional server to my network considering that it must have a routable ip, the same with my Internet gateway?

I tried to setup alias on my Lan's Interface but I am not able to do it? Should I do NAT on my firewall? Im not so familiar with NAT?

What would be the best thing to do?
Thank you for your advance answeres.

Elmer
{{email addr removed by jmcg during cleanup}}
0
Comment
Question by:elmerph
7 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 9801728
The easiest solution would be to set up static NAT translations for each server on the inside of your firewall.  You need to create an IP alias on your outside NIC for each of the routable IP's that will be statically mapped and then use a pair of rules or each NAT'ed IP, something like:

#
# To Statically NAT an outside IP (1.2.3.4) to an inside IP (10.0.0.2) you'd
# do something like:
#
iptables -t nat -A PREROUTING -i $OUTSIDE -d 1.2.3.4 -j DNAT --to-destination 10.0.0.2
iptables -t nat -A POSTROUTING -i $OUTSIDE -s 10.0.0.2 -j SNAT --to-source 1.2.3.4

The usual rules about allowing inbound connections also apply.
0
 

Author Comment

by:elmerph
ID: 9801807
how will i test it that way?

can i do this..-> create an alias on my LAN Interface with an ip the same ipblock of INTERNET Interface? then change the ip of my web machine to the same block ?

0
 
LVL 40

Expert Comment

by:jlevie
ID: 9810357
From outside you'd obviously just go to the routable IP of your web server, but from inside of the firewall you'd us the inside IP of the server. If you are using name based virtual hosts of the web server you'll need to either have a local DNS that equates the host name to private IP of the server or create hosts file records on each of the systems.
0
 
LVL 4

Assisted Solution

by:Netelligen
Netelligen earned 250 total points
ID: 9835516
A great source of information on this can be found at www.shorewall.net.

Shorewall is a set of IP Tables wrapper scripts that is the easiest and most flexible that I have found... but the best part of this is the excellent documentation that this site provides.

Hope this helps.

Netelligen
0
 
LVL 3

Expert Comment

by:jacauc
ID: 12210621
you can run the webserver on a private ip inside your network.
Then set up the gateway with Shorewall to NAT any traffic going out and to DNAT any incoming port 80 requests to your webserver private IP.

This is VERY easy if you are using webmin.  :P

let me know if you need more info on configuring NAT/DNAT...
jlevie's solution also sounds appropriate.


Thanks
J
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now