Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

hosts file question

Posted on 2013-06-30
5
Medium Priority
?
375 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 85

Accepted Solution

by:
ozo earned 1800 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 17

Assisted Solution

by:Sajid Shaik M
Sajid Shaik M earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Loops Section Overview
Suggested Courses

876 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