F
F
farafontov2012-08-20 19:45:36
Computer networks
farafontov, 2012-08-20 19:45:36

Ubuntu 12.04 ICS how to properly share internet?

I have a pc with freshly installed ubuntu 12.04. I want to make a gateway out of it.
After installation I put all updates.
Further, everything is strictly according to the manual (Ubuntu Internet Gateway Method (iptables) section)
I do not set dnsmasq, I prescribe ip, gateway, mask and dns with my hands.
The maximum that works is ping to the gateway, everything else does not work.
Can someone tell me something or give a link to a step-by-step man?
PS. Forgot about
eth0 interfaces looks to the
eth1 provider in the ppp0
locale the Internet itself

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sicness, 2012-08-20
@farafontov

If you are doing it for the first time and it is not clear where the error is, then I would advise you to go incrementally. 2 commands are enough to fulfill your goals for now:
$ echo 1 > /proc/sys/net/ipv4/ip_forward
and
$ iptables -A FORWARD -j ACCEPT
Yes, I forgot about iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

V
Vladimir Chernyshev, 2012-08-20
@VolCh

In NetworkManager, select your eth1, "Change", "IPv4 Settings" and in "Configuration Method" select "Share the network with other computers". Everything.

A
Anatoly, 2012-08-20
@taliban

Who taught you to write such headings for questions? Just so that people come in for the sake of interest to find out what you want to ask?

B
Busla, 2012-08-21
@Busla

If this is not a home server, it is better to look towards web-proxy (squid).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question