Solved

hosts file question

Posted on 2013-06-30
5
365 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
ID: 39287949
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
ID: 39287950
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
ID: 39287980
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
ID: 39289110
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
ID: 39289113
Thanks guys
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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