ISP setup ubuntu
If you have any question message me on Slack or Email
Slack : nanjuan
Email : nestor@nntorres.com
If you have not setup your network adapter look here https://goo.gl/vs4cHC
VirtualBox setup for the ISP Server
- Go to https://www.ubuntu.com/download/server and download the LTS server version.
- Install Ubuntu Server in Virtual Machine
- On Virtual Box go to top left corner to New to create the virtual box.

- Create the name of this Box recommended name (ISP Ubuntu)
- In Type choose Linux if is not auto setected
- In Version choose Ubuntu (64-bit)

- On the memory section depending to your machine RAM capacity the minimun should be (254MB) but if you have enough memory use (1024MB)

- Leave the Hard drive section as default which is (Create a virutal hard disk now)

- Leave the Hard disk file type to (VDI)

- Leave storage on physical hard disk to (Dynamically allocated)

- For this machine the minimun for Ubuntu so it does not give you problem set the File location and size to (20.00GB)

- After the Virtual Machine is created now you have to add the ISO that you download at the beginning
- Go to Storage section and click on top that it say ([Optical Drive]Empty)

- Then press (Choose disk image…)

- Find the location where you download your ISO for Ubuntu Server.

- On this step make sure you add the network adapters to the server
- Right click the ISP Ubuntu and click settings

- On network adapter one leave it to Nat
- Then go to Network Adapter 2 and change the network adapter to (Host-only Adapter) like the picture bellow.

- On this part start the ISP ubuntu virtual box to start the setup.
- Click on the ISP Ubuntu then press start

- The setup of the ISP Ubuntu on the photos bellow
- select you language

- Press enter on Install Ubuntu Server

- Select the language again

- Select your location

- Press no on the Configure the Keyboard

- Select Keyboard language


- Select enp0s3 which is the NAT this might vary on your PC

- Set the Hostname of you VM machine to whatever you want

- Set the full name for new user


- Then set your Username for your account

- Set the new user password

- verify password again

- Select if you want to encrypt your home directory I advice to select no for this test lab

- Select your Time zone if the one shown is correct press yes otherwise press no

- Select Partition disks select the default the one on the picture.

- Select disk partition the default

- On the next step select YES on configure LVM

- Select the partition size you need to leave it as default

- Press yes on write the changes to disks

- Do not set a proxy leave black and press continue

- The update question is all up to you. Can be setup to no auto updates or install security updates automatically

- On the sofware selection for this lab leave default

- on the install the grub boot loader question select YES

- On the last question select continue

- After Reboot log in into computer with the username you setup early and enter password to log in

- Enable ipv4 routing on command line run
- (sudo nano /etc/sysctl.conf)
- Enter your password
- The the conft file will open

- Go to the line that say (Uncomment the next line to enable packet forwarding for IPv4) and the remove the symbol (#)

- Then press control+X to save the config file on ubuntu and enter Y to safe the file

- Then press Enter to make sure the file name stay the same

- Next step run command (ip link show) to see the network interfaces like bellow

- You will need to add another interface to the server
- Run command on the terminal (sudo nano /etc/network/interfaces) and enter your admin password

- Then you will see a text file like bellow

- Then add the new network adapter like bellow

- Then press (control X) to exit and (Y) to save file then enter to leave the file with the same name do not change the file name

- run (sudo reboot) on the terminal for the interfaces to take effect
- Then run router on the terminal shout look like bellow

- Then run the next line on terminal (sudo route add –net 172.0.0.0 netmask 255.0.0.0 gw 172.31.1.3 dev enp0s8)

- Then run route again it should look like bellow

- Then run (sudo services networking restart) to restard the network services again nothing will display after this command and password is enter

- Then to verify everything is working fine run (ifconfig) it should look like bellow

- Then run this tree line on terminal like the picture bellow
- sudo apt-get install -y iptables-persistent

- Then on the next two question select yes like bellow

- Run next line bellow and password if ask it will not display anything after you run the line
- sudo iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE

- Run next line bellow and password if as and it will look like the picture bellows
- sudo netfilter-persistent save

- Run next line bellow and password if as and it will look like the picture bellows
- sudo netfilter-persistent reload

- After all this reboot Virtual Machine and move to next step pfsense setup link (comming soon)