Setting up a DNS on private network, needing internet access on one
Posted: 29. May 2017, 04:09
Hi,
I recently picked up Virtual Box for setting up a server that will need NAPTR records for talking to the server. I am using BIND on my dns servers (set up two)
and want them to be in a private network.
I currently have it set up like this:
Server:
Adapter1: Bridged
Adapter2: NatNetwork
DNS1:
Adapter 1: NatNetwork
DNS2:
Adapter 1: NatNetwork.
However, the current set up doesn't work. I am needing to have access to the server from outside since there are members on the team that are not in the same physical building as I am. My understanding of NatNetwork adapter is that it acts as a virtual group that the computers part of the network can connect to. Not sure the difference between NatNetwork and NAT.
Currently, if I set up the second adapter on the server, i can't access the computer over the internet, and it comes up with an error when doing
sudo ifdown --force eth0 && sudo ip addr flush dev eth0 && sudo ifup --force eth0 (eth0 replaced with actual card)
I'm happy at this stage to get internet access on the server computer. But for reference, i have it port forwarded from the router to give ssh access to the server from outside. That rule hasn't changed.
the information in /etc/network/interfaces
auto card
allow-hotplug card
iface card inet dhcp
or
auto card
allow-hotplug card
iface card inet static
address ip
netmask 255.255.255.0
gateway ip
dns-search domain
dns-nameservers dns1 dns2 8.8.8.8
however neither let me ssh into the server.
i have to comment out the lines to get ssh to work again.
In the future I'll also need to set up the a fire wall for the domain since i dont want other access to the domain other than me and my team mate. This is my first project doing something like this, so any guides or advice for doing so will be appreciated!
The actual network in the future will have a website, current server, and android access to it (with the domain for server)
I recently picked up Virtual Box for setting up a server that will need NAPTR records for talking to the server. I am using BIND on my dns servers (set up two)
and want them to be in a private network.
I currently have it set up like this:
Server:
Adapter1: Bridged
Adapter2: NatNetwork
DNS1:
Adapter 1: NatNetwork
DNS2:
Adapter 1: NatNetwork.
However, the current set up doesn't work. I am needing to have access to the server from outside since there are members on the team that are not in the same physical building as I am. My understanding of NatNetwork adapter is that it acts as a virtual group that the computers part of the network can connect to. Not sure the difference between NatNetwork and NAT.
Currently, if I set up the second adapter on the server, i can't access the computer over the internet, and it comes up with an error when doing
sudo ifdown --force eth0 && sudo ip addr flush dev eth0 && sudo ifup --force eth0 (eth0 replaced with actual card)
I'm happy at this stage to get internet access on the server computer. But for reference, i have it port forwarded from the router to give ssh access to the server from outside. That rule hasn't changed.
the information in /etc/network/interfaces
auto card
allow-hotplug card
iface card inet dhcp
or
auto card
allow-hotplug card
iface card inet static
address ip
netmask 255.255.255.0
gateway ip
dns-search domain
dns-nameservers dns1 dns2 8.8.8.8
however neither let me ssh into the server.
i have to comment out the lines to get ssh to work again.
In the future I'll also need to set up the a fire wall for the domain since i dont want other access to the domain other than me and my team mate. This is my first project doing something like this, so any guides or advice for doing so will be appreciated!
The actual network in the future will have a website, current server, and android access to it (with the domain for server)