Tutorials Turn Linux Server into a router (UBUNTU).

Tutorials - Turn Linux Server into a router (UBUNTU). - TheJavaSea Forum, Gaming Laptops & PCs Reviews, Linux Tutorials, Network Hacks, Hacking, Leaks, Proxies, Domains & Webhosting, Coding Tutorials, SEO Tips & Hacks, Security TIPS and much more.


Joined: Mar 15, 2021
Messages: 1,050
Resources: 405
Points: 113
Reaction score: 1,320
This tutorial will show you how to turn your old laptop into a router.
Install Linux (Debian or Ubuntu)

Install a Network Switch to extend ethernet ports in order to hookup multiple devices.


Before editing Network Interfaces file, you must know your gateway IP of the main CPE or AP that connects you with your ISP.

In my case I am connected with my ISP by wireless connection(DHCP).


To know your gateway connect directly to your laptop ethernet port

open terminal and type following command:
Please Login or Register to view content

Find default route :
In my case

Please Login or Register to view content

Try to use same subnet if you don't want to do complex routing.

So gateway is, I will choose my server IP to be

br-lan adapter will be configured on subnet

Open and edit Network INTERFACES

Please Login or Register to view content

Please Login or Register to view content

after saving and closing file execute the following command.

Please Login or Register to view content

How to create a Wi-Fi hotspot in Ubuntu 18.04 using Gnome desktop​

1. To create a Wi-Fi hotspot, the first thing you'll need to do is to turn on your Wi-Fi (if not already enabled):

Ubuntu turn on WiFi

This is done by going to the System menu and selecting Wi-Fi Off > Turn On.

2. Next, select Wi-Fi Settings from the system Wi-Fi menu:

Ubuntu Wi-Fi settings

3. In the Wi-Fi Settings window, click on the Gnome menu icon from the window upper right-hand side corner, and select Turn On Wi-Fi Hotspot:

Turn on Wi-FI Hotspot Ubuntu Gnome

Your new Wi-Fi hotspot uses AP (infrastructure) mode by default in Ubuntu 18.04, and the network SSID and password, as well as the security type (WPA/WPA2 is used by default in Ubuntu 18.04) are presented on the next screen - which is displayed immediately after your enable the Wi-Fi hotspot:

Ubuntu Hotspot details

If you are ok with the defaults and don't want to change anything, that's all you have to do to create a Wi-Fi hotspot in Ubuntu 18.04.
Last edited:
  • Tags
    debian into laptop linux networking networking guide old redhat server turn ubuntu
  • Top