• Report Links
    We do not store any files or images on our server. XenPaste only index and link to content provided by other non-affiliated sites. If your copyrighted material has been posted on XenPaste or if hyperlinks to your copyrighted material are returned through our search engine and you want this material removed, you must contact the owners of such sites where the files and images are stored.
  • Home
  • -
  • New Pastes

Turn Linux Server into a router (UBUNTU).

  • Thread starter XMAN
  • Start date Jul 15, 2021
X

XMAN

Well-known member
Joined
Jul 12, 2021
Messages
33,395
Reaction score
248
Points
63
  • Jul 15, 2021
  • #1
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:
Code:

ip route

Find default route :
In my case

Code:

default via 192.168.15.1 dev eth0.2 proto dhcp onlink

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:

nano /etc/network/interfaces

Code:

Code:
source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback


auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.15.250
gateway 192.168.15.1
netmask 255.255.255.0


auto br-lan
iface br-lan inet static
        address 10.168.1.254
       netmask 255.255.255.0

after saving and closing file execute the following command.

Code:

systemctl restart networking

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

Read more

Continue reading...
 
Upvote 0 Downvote
You must log in or register to reply here.
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email
  • Home
  • -
  • New Pastes
  • Terms and rules
  • Privacy policy
  • Help
  • Home
AMP generated by AMPXF.com
Menu
Log in

Register

  • Home
    • Go Premium
  • Go Premium / Advertise
  • New Ad Listings
  • What's new
    • New posts
    • New Ad Listings
    • Latest activity
  • Members
    • Registered members
    • Current visitors
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?