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.

Marks-Man

Administrator
Joined: Mar 15, 2021
Messages: 1,050
Resources: 405
Points: 113
Reaction score: 1,328
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.

images

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).

268672-7k739.png


To know your gateway connect directly to your laptop ethernet port

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

Find default route :
In my case

Code:
Please Login or Register to view content

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

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

br-lan adapter will be configured on 10.168.1.0/24 subnet
IP 10.168.1.254

Open and edit Network INTERFACES


#
Code:
Please Login or Register to view content

Code:
Please Login or Register to view content

after saving and closing file execute the following command.

Code:
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