Solved

hosts file question

Posted on 2013-06-30
5
358 Views
Last Modified: 2013-06-30
Hi,

This is probably a complete rookie question but I am just not sure anymore.

I have a centos6 server and have a external firewall.
So I use NAT to translate public IP's to internal IP's

so should the hosts file use public ips or internal IPs?


Best wishes,
thom
0
Comment
Question by:Thomanji
5 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 450 total points
Comment Utility
If the hosts file is inside the firewall, use the internal IPs
If it is a public host file, use the public IPs
0
 
LVL 11

Expert Comment

by:Manjunath Sullad
Comment Utility
Hi ,

NATted IP address you need to add.

Regards,
~ Manju
0
 
LVL 16

Assisted Solution

by:Shaik M. Sajid
Shaik M. Sajid earned 50 total points
Comment Utility
when yo do NAT the adress will be automatically translated... from public ip to private IP...

and the public ip stays on the firewall route the traffic to your Natted server private IP...

so where why you'll put the public IP....

you need security and youare hiding your server from public ip so you must go for server a private IP...

while users accessing from external they feel that they are accessing from public IP ... even it'll not shows the private IP to external Users...


the main question is how you want to host files ?  do you mean by FTP ?

it's quite simple...  

all the best
0
 

Author Comment

by:Thomanji
Comment Utility
Thanks for the answers, both actually work fine, just meant in terms of securety. I will go with Ozo's info and use the public since this is a public server so I guess I should keep the internal addresses as secret as possible.
Thank you all for the feedback.
0
 

Author Closing Comment

by:Thomanji
Comment Utility
Thanks guys
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

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

6 Experts available now in Live!

Get 1:1 Help Now