Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

hosts file question

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
Thomas
Asked:
Thomas
2 Solutions
 
ozoCommented:
If the hosts file is inside the firewall, use the internal IPs
If it is a public host file, use the public IPs
0
 
Manjunath SulladTechnical ConsultantCommented:
Hi ,

NATted IP address you need to add.

Regards,
~ Manju
0
 
Sajid Shaik MSr. System AdminCommented:
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
 
ThomasPartnerAuthor Commented:
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
 
ThomasPartnerAuthor Commented:
Thanks guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now