Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th October 2010, 16:43
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default Setting up internal and external network using ISPConfig

Hello to you all,

ISPconfig 3 is working like a dream for my external network. I would like to know if the next setup is possible.

I would like to have an internal and an external network with two nic's eth0 and eth1. Eth0 is used for my external network using ip 192.168.2.10. ISPConfig is setup using this ip and nic.

My internal network is on eth1 using ip 10.0.0.10 I setup Samba and I'm able to connect to my internal network. In hosts I added servername to both ip's an put the ip's and names of the internal networkcomputers.

Is it possible to edit named.conf and adding zones in ISPConfig for internal and external network? In the Centos Bible by Boronczyk and Negus there is an example. If neccessary I wil copy this.

Do I need two seperate servernames for both networks, instead of one I'm now using?

The server I build has to replace my old server, the old one is only configured for the internal network, and uses Pervasive sql. My new server has to host a few websites, and I would like to backup my internal network using a connection to my homeadress.

With kind regards Ad.
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2010, 11:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by Showa View Post
In the Centos Bible by Boronczyk and Negus there is an example. If neccessary I wil copy this.
Do you mean BIND views? http://www.howtoforge.com/two_in_one_dns_bind9_views

This is not supported by ISPConfig, so you'd have to configure this manually.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th October 2010, 11:56
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default

No I have got the book, in there is an example for thenamed.conf file and a few zones.

In the example DNS Server = example.com; Localhost = 127.0.0.1; internet = 123.45.67.89; FTP server = 123.45.67.3; mail server = 123.45.67.2; web server = 123.45.67.1; LAN = 10.0.0.10; LAN adress = 10.0.0.10/18 red.example.com = 10.0.0.20 blue.example.com = 10.0.0.30; green.example.com = 10.0.0.40; and yellow.example.com = 10.0.0.50

Here is the example named.conf:

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};

acl "mylan" {
127/8; 10.0.0.0/24;
};

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

view "inside" {
match-clients { "mylan"; };
recursion yes;

zone "." IN {
type hint;
file "namd.ca";
};

zone "0.0.10 in-addr.arpa" IN {
type master;
file "yourlan.db";
};

zone "example.com" {
type master;
file "db.example.com. inside";
allow-transfer { 10.0.0.20; };
};
};

view "outside" {
match-clients { any: };
recursion no;

zone "." IN {
type hint;
file "named.ca";
};

zone "example.com" {
type master;
file "db.example.com.outside";
allow-transfer { 123.45.67.2; };
};
};

include "/etc/rndc.key";

Here the inside zone:

$TTL 86400
@ IN SOA example.com. hostmaster.example.com. (
2010101701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS ns1.example.com.
IN NS ns2.example.com.
; Mail server for domain
IN MX 10 mail.example.com.

; Public servers
ns1 IN A 10.0.0.10
ns2 IN A 10.0.0.20
mail IN A 123.45.67.2
www IN A 123.45.67.3
ftp IN A 123.45.67.4

; Private clients on the LAN
red IN A 10.0.0.20
blue IN A 10.0.0.30
green IN A 10.0.0.40
yellow IN A 10.0.0.50

; EOF

and the outside zone:

$TTL 86400
@ IN SOA ns1 example.com. hostmaster.example.com. (
2010101701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.example.com
1 IN PTR example.com.
2 IN PTR red.exaqmple.com.
3 IN PTR blue.example.com.
4 IN PTR green.example.com.
5 IN PTR yellow.example.com.

; EOF

Can I implement this in ISPConfig, maybe as a secondary DNS? Or else where do I have to put these files, and what do I have leave out, this because I think ISPConfig is my outside view?

Ad.
Reply With Quote
  #4  
Old 29th October 2010, 20:38
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default

Meanwhile I did a lot of reading about DNS and I will have a go at creating the necessary files to solve my problem.
I still have a few questions.

Can I put the changes for the named.conf in the named.conf.local file so I can easily make corrections.
This because there is in the named.conf file a include /var/named/chroot/etc/named.conf.local part.

Question two for ns1 and ns2 is it possible to use the nameservers which I use for my domains in ISPConfig, in my case ns0.domeinbalie.nl and ns1.domeinbalie.nl?

Will the changes I make in named.conf have effect on ISPConfig?

I also noticed that in my file system there seems to be an endless string when looking at var -> named -> chroot -> var -> named -> chroot -> var -> named -> chroot etc. Is this normal?

With kind regards Ad.

Last edited by Showa; 31st October 2010 at 21:32.
Reply With Quote
  #5  
Old 1st November 2010, 18:11
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
 
Default

Hello,

I think I'm a little bit further in my quest.

This is the named.config file I made it is in the named.conf.local file:

acl "mylan" {
127/8; 10.0.0.0/24;
};

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

view "inside" {
match-clients { "mylan"; };
recursion yes;

zone "." IN {
type hint;
file "named.root";
};

zone "0.0.10.in-addr.arpa" IN {
type master;
file "yourlan.db";
};

zone "amtand.nl" {
type master;
file "db.amtand.nl.inside";
// allow-transfer { 10.0.0.40; };
};
};

view "outside" {
match-clients { any; };
recursion no;

zone "." IN {
type hint;
file "named.root";
};

zone "amtand.nl" {
type master;
file "db.amtand.nl.outside";
allow-transfer { 192.168.2.10; };
};
};

include "/var/named/chroot/etc/rndc.key";

This my outside zone:

$TTL 86400
@ IN SOA amtand.nl. hostmaster.amtand.nl. (
2010103102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS dns0.domeinbalie.nl.
IN NS dns1.domeinbalie.nl.

; Mail server for domain
IN MX 10 mail.amtand.nl.

; Public servers
ns1 IN A 81.171.114.51
ns2 IN A 82.94.224.155
mail IN A 192.168.2.10
www IN A 192.168.2.10
ftp IN A 192.168.2.10

; EOF

My inside zone:


$TTL 86400
@ IN SOA amtand.nl. hostmaster.amtand.nl. (
2010103107 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name servers
IN NS ns1.amtand.nl.
IN NS ns2.amtand.nl.

; Mail server for domain
IN MX 10 mail.amtand.nl.

; Public servers
ns1 IN A 10.0.0.10
ns2 IN A 8.8.8.8
mail IN A 192.168.2.10
www IN A 192.168.2.10
ftp IN A 192.168.2.10

; Private clients on the LAN
pcbalie IN A 10.0.0.20
kamer2 IN A 10.0.0.30
kamer1 IN A 10.0.0.40
rontgen IN A 10.0.0.50

; EOF

and my yourlan.db file:

$TTL 86400
@ IN SOA ns1.amtand.nl. hostmaster.amtand.nl. (
2010103102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.amtand.nl
10 IN PTR amtand.nl.
20 IN PTR pcbalie.amtand.nl.
30 IN PTR kamer2.amtand.nl.
40 IN PTR kamer1.amtand.nl.
50 IN PTR rontgen.amtand.nl.

;EOF


This is my resolv.conf file:

nameserver 8.8.8.8
nameserver 192.168.2.254
search amtand.nl
nameserver 127.0.0.1
nameserver 10.0.0.10

Checking the zones and named.conf with named-checkzone and named-checkconf give no problems.
I,m able to ping the computers from both sides. But my internal network doesn't connect. I suppose there is something wrong with the nameservers. Who has an answer.

Ad.

Totally of topic but how do you get those nice windows with the slidingbars?

Last edited by Showa; 1st November 2010 at 18:14.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig3 and DNS server for internal network Mitz Server Operation 0 12th November 2009 11:31
How to share web content between internal and external domains bizkid64 Installation/Configuration 7 29th April 2009 10:12
Can't receive external mail anymore - Ubuntu 8.10, ISPconfig, postfix, etc... malou Server Operation 3 15th April 2009 17:13
DNS, Website, External IP, Internal IP setup? webking Installation/Configuration 1 5th June 2007 11:10


All times are GMT +2. The time now is 20:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.