Hello everyone,
I am posting here in the Ubuntu forums, because I believe the community here would be best able to help.
I am trying to run a small lab, with various components thrown in.
I believe the combination of components is what is making this difficult.
Yet, in short, I would like to accomplish three things:
- I would like to run FreeIPA on a Fedora server, to manage Xubuntu clients.
- I also want to do this "inside" VirtualBox, while all the virtual machines (VMs) are running on a Xubuntu host.
- I would like to use an Ubuntu 16.04 server to act as a gateway/firewall and DHCP server to this internal network
I attach a basic diagram to this post showing the "layout".
There are two problems that are "hanging me up" at the moment.
First, the Fedora server (freeIPA manager) is unable to "ping 8.8.8.8" UNLESS I first ping that Fedora VM from the Ubuntu gateway/DHCP server.
So if I go into the Fedora VM, and:
ping 8.8.8.8 ---- fail
If I go into the Ubuntu server (gateway/DHCP server), and ping the Fedora VM
ping 192.168.89.10 ---- success and it works
Then, on the Fedora VM:
ping 8.8.8.8 ---- success and it works
The second problem is that the Fedora VM cannot "ping google.com"
To setup DNS, do I set them up in the Ubuntu (via bind9)?
Or can I use 8.8.8.8 as DNS?
So, first problem to solve:
How can the Fedora VM ping 8.8.8.8 "from zero" (without needed the gateway to ping it first)?
Second problem:
What should I do about DNS?
![]()
Everything inside the Ubuntu server gateway (fw-ubuntu-01 in the network diagram):
Here are the "iptables rules" I have placed inside...
This is inside /etc/rc.local
Also, inside /etc/sysctl.conf, I have un-commented the line:
I have also installed isc-dhcp-server
I am posting here in the Ubuntu forums, because I believe the community here would be best able to help.
I am trying to run a small lab, with various components thrown in.
I believe the combination of components is what is making this difficult.
Yet, in short, I would like to accomplish three things:
- I would like to run FreeIPA on a Fedora server, to manage Xubuntu clients.
- I also want to do this "inside" VirtualBox, while all the virtual machines (VMs) are running on a Xubuntu host.
- I would like to use an Ubuntu 16.04 server to act as a gateway/firewall and DHCP server to this internal network
I attach a basic diagram to this post showing the "layout".
There are two problems that are "hanging me up" at the moment.
First, the Fedora server (freeIPA manager) is unable to "ping 8.8.8.8" UNLESS I first ping that Fedora VM from the Ubuntu gateway/DHCP server.
So if I go into the Fedora VM, and:
ping 8.8.8.8 ---- fail
If I go into the Ubuntu server (gateway/DHCP server), and ping the Fedora VM
ping 192.168.89.10 ---- success and it works
Then, on the Fedora VM:
ping 8.8.8.8 ---- success and it works
The second problem is that the Fedora VM cannot "ping google.com"
To setup DNS, do I set them up in the Ubuntu (via bind9)?
Or can I use 8.8.8.8 as DNS?
So, first problem to solve:
How can the Fedora VM ping 8.8.8.8 "from zero" (without needed the gateway to ping it first)?
Second problem:
What should I do about DNS?
Everything inside the Ubuntu server gateway (fw-ubuntu-01 in the network diagram):
Here are the "iptables rules" I have placed inside...
This is inside /etc/rc.local
Code:
/sbin/iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
/sbin/iptables -A INPUT -i enp0s8 -j ACCEPT
/sbin/iptables -A INPUT -i enp0s3 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A OUTPUT -j ACCEPT
Code:
net.ipv4.ip_forward=1
I have also installed isc-dhcp-server