N
N
nsn00b2021-08-19 20:02:54
Computer networks
nsn00b, 2021-08-19 20:02:54

Hello. How to set up a home server to distribute the Internet over a wire to a router?

Welcome all!
There is a home server that runs torrent, samba, long, ftp within the home network. It has a gigabit eth port. The server itself is connected to the router, while the router has all lan / van ports with 100mbs. InProvider allows you to use gigabit. The server is running debian without a graphical environment.
Is it possible to connect the Internet directly to the server, from it the wire to the router for distributing the Internet to home inhabitants? And will all server services be visible to Wi-Fi users?
Poke please in understandable articles, if any. The bigger, the better.

PS There were thoughts to equip the server with antennas and turn the Wi-Fi on it, but I met opinions that the connection would not be very stable. And the absence of a web muzzle in this scenario was recorded as a minus. But if there is any sensible alternative, I would be glad to her

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Drno, 2021-08-19
@Drno

Can. Set up nat and dhcp + dns on the server.
For example, you can use the dnsmasq package, it is a simple
router - disable dhcp on it, set the LAN address from the server subnet. All
The server must have 2 set cards of course

A
Alexey Dmitriev, 2021-08-19
@SignFinder

A sensible alternative is a router with gigabit ports. If you came here with questions, how do you plan to protect the server if it watches the Internet

C
CityCat4, 2021-08-20
@CityCat4

Is it possible to connect the Internet directly to the server

It is possible, but why? The scheme "the router receives the wire from the provider + firewall / NAT and behind it the server on which the services" - it works more reliably, because the router (hardware) is harder to kill than the server.
In addition, exposing the server to tyrnet, you will have to raise iptables there with normal protection. This of course makes sense if the router is barn and you don’t want to buy a new one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question