Create a Linux Router with DHCP services Rumi, August 5, 2018August 5, 2018 It’s pretty easy to build a Linux router even on a virutal machine. I’ve used virtualbox to create a LAN NAT router with DHCP services using webmin. However, I’m not going to cover on how to use a virtualbox VM 🙂 Let’s create the NAT Router first. On Webmin go to Networking > Network Configuration > Routing and Gateways Fig-1 Select right ethernet interface on Default Route Fillup the correct gateway Enable “Act as a Router” On Networking > Linux Firewall > Select “Reset Firewall” Do network address translation on external interface: <select your WAN interface> Click Setup Firewall Finally “Apply Configuration” Your Linux NAT router is now ready 🙂 Now Setting up simple DHCP Server using Webmin Install DHCP server Option A): Centos 5.8 # yum install dhcp Set the DHCP service to start on boot # chkconfig dhcpd on Start DHCP service # service dhcpd start Option B): Ubuntu 10.04 sudo apt-get install dhcp3-server 2.- Setting up My network design is the following: Network name: Intranet Network adsress: 192.168.0.0 Netmask: 255.255.255.0 Address range: 192.168.0.75 – 192.168.0.150 (DHCP server can give 75 IPs) Domain: mydomain.intranet Default routers: 192.168.0.1 Broadcast address: 192.168.0.255 DNS servers: 192.168.0.21 80.58.61.250 192.168.0.21 -> DNS Server Local (our own DNS Server, within our network) 80.58.61.250 -> DNS Server External (ISP company) Now do the following: Access webmin from any browser (use your own IP number): https://your_IP:10000 First refresh modules: Webmin -> Webmin Configuration -> Refresh Modules Servers -> DHCP Server – > Add a new subnet. Fill boxes and click create Servers -> DHCP Server -> Edit Client Options Fill boxes (Antención with dot at the end of intranet!!!!!!!!) on the same screen mark Interim in “DNS update style” and click save Finally start DHCP server Related Administrations Configurations (Linux) DHCPWebmin
Add a User To Group www-data ( Apache Group ) October 10, 2019 The procedure is as follows: Open the terminal application. Login to Ubuntu server using ssh. Add a new user named foo to www-data group by running useradd -g www-data foo command. Add an existing user bar to Apache’s www-data group on Ubuntu using usermod -a -G www-data bar command. Verify new modification on Linux… Read More
Convert Xen XVA to KVM August 23, 2023 Citrix Xen uses a custom virtual appliance format for import/export called “XVA”. it’s basically a strangely crafted tar-file. You don’t need this program to unpack this tar-file, just use your favourite tar unpacker (tar, gtar, bsdtar). Once unpacked you will end up with a lot of different files, ova.xml (which… Read More
Install VirtualBox on Centos 6 / 7 September 6, 2019 Step 1 – Add Required Yum Repositories Firstly you are required to add VirtualBox yum repository in your system. Download repository file from its official site and place it under at /etc/yum.repos.d/virtualbox.repo .First navigate to /etc/yum.repos.d/ directory and use one of below commands as per your operating system. cd /etc/yum.repos.d/ wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo… Read More