Tips

How to configure DHCP for Ubuntu Server

The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers to be automatically assigned settings from a server as opposed to manually configuring each network host. Ubuntu is shipped with both DHCP server and client. The server is dhcpd (dynamic host configuration protocol daemon). The client provided with Ubuntu is dhclient and should be installed on…

Continue Reading
Tips

Configure IP Masquerading for Ubuntu Server

The rules are split into two different files, rules that should be executed before ufw command line rules, and rules that are executed after ufw command line rules. ufw Masquerading First, packet forwarding needs to be enabled in ufw. Two configuration files will need to be adjusted, in /etc/default/ufw change the DEFAULT_FORWARD_POLICY to “ACCEPT”: DEFAULT_FORWARD_POLICY=”ACCEPT” Then edit /etc/ufw/sysctl.conf and uncomment:…

Continue Reading
Tips

Configure Firewall for Ubuntu

The default firewall configuration tool for Ubuntu is “ufw”:   The following are some examples of how to use ufw:     First, ufw needs to be enabled. From a terminal prompt enter:     sudo ufw enable     To open a port (ssh in this example):     sudo ufw allow 22     Similarly, to close an opened port:     sudo ufw…

Continue Reading
Tips

Configure Network Card for Ubuntu:

Configure Network Card for Ubuntu: Open the file “/etc/network/interfaces” and edit auto eth0 eth1 # physical network connected to ISP router iface eth0 inet static address 192.168.1.50 network 192.168.1.0 netmask 255.255.255.0 gateway 192.168.1.254 # physical network interface for LAN iface eth1 inet static address 10.1.0.1 network 10.1.0.0 netmask 255.255.0.0 Open the file “/etc/resolv.conf” and add the DNS information search domain.com…

Continue Reading
Tips

Shrink the sparse disk image of a Mac OS X guest OS in VMWare Workstation

Before start the process please make sure, The file is a sparse disk image, and not pre-allocated. The VM does not have snapshots. Erase free space on the guest OS’s disk from within the guest OS using Disk Utility, then shrink the guest OS’s disk from the host OS using vmware-vdiskmanager at the command line. In the guest OS: Open Disk Utility. Select the guest OS’s…

Continue Reading