D
D
Dim Boy2016-05-03 23:35:24
ubuntu
Dim Boy, 2016-05-03 23:35:24

How to distribute the Internet to a second network card?

How to distribute the Internet on eth0 "in two clicks"?
Internet is connected to eth1.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mark1yan, 2016-05-03
@mark1yan

I think you will find here what is
needed forum.ubuntu.ru/index.php?topic=262708.0

1
1001001, 2016-05-03
@1001001

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
in /etc/sysctl.conf uncomment net.ipv4.ip_forward = 1

I
Ivan Bogachev, 2016-05-04
@sfi0zy

Look in the official documentation for Ubuntu Server. There, in addition to just "distributing to a second network card", there is also a couple of commands about setting up a DHCP server based on dnsmasq - when distributing the Internet to a local network, it can be very useful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question