Knowledgebase

Need advises on my network setup

Posted by userkiller, 10-14-2012, 09:12 PM
Hello guys, i have i have 5 IP's assign to me. i have a small network configured but im trying to set up a more modern network for educational purpose. I have 2 servers both with the same specs hp dl 360 g5 32gb, duo 2.6 quad and 6x72gb sas drive. running Centos 6.3 and solusVM 2 watchguard firewalls, running pfsense 2.1 2 dell powerconnect 2724 switches. My goal is to have a dedicate mail server inside a vps. Dedicate DNS server something like Powerdns. I'm stuck here, can i add a local IP to my PowerDns VPS? and later do a NAT? Or do i need to assign one of my dedicate IP to ns1 and another one to ns2? Example powerdns ns1=10.0.1.14 ns2=10.0.1.15 and do a NAT or do i need to use my ip assign to my by the ISP? ns1=97.121.242.x51 ns2=97.121.242.x52 same goes to my Email server

Posted by darockProjects, 10-15-2012, 01:28 PM
IMHO, i will suggest that you assign all the public IPs to the public facing interface of the firewalls. Then set up a private internal LAN. Using the firewall you can easily do either a DNAT or SNAT as needed. This will provide you with more flexibility. For example you could use the same public IP for both Mail and DNS but map them to different internal private IPs (servers) on the firewall. So back to your question, Yes, you can allocate a local IP to your VPS and do a NAT on the firewall

Posted by userkiller, 10-15-2012, 02:21 PM
This respond has brighten my day, can i use the same technique to host multiple vps running cpanel. will the firewall redirect the traffic to the correct vps using http headers?

Posted by BestServerSupport, 10-16-2012, 08:44 AM
Yes, you can use the same technique as mentioned by darockProjects to host multiple VPS running with cPanel.

Posted by userkiller, 10-16-2012, 12:51 PM
But when someone try to log in, let suppose vps1 it will be using the same public ip, so there will be a conflict when I'm trying to log in.

Posted by darockProjects, 10-16-2012, 01:47 PM
Hey, You can apply the firewall rules to map the public IP (A.B.C.D) to your internal subnet (192.168.1.0/24) as follows VPS 1 = A.B.C.D:2001 <--> 192.168.1.1:80 VPS 2 = A.B.C.D:2002 <--> 192.168.1.2:80 The idea is that you can do different IP (public and internal) and ports combinations and you can conserve your IP addresses. HTH

Posted by userkiller, 10-16-2012, 02:28 PM
what ports are 2001? i know 80 is http



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
backup script (Views: 620)
.htaccess help (Views: 653)
awknet? (Views: 718)


Language:

Client Login

Email

Password

Remember Me

Search