Answer the question
In order to leave comments, you need to log in
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
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
In NetworkManager, select your eth1, "Change", "IPv4 Settings" and in "Configuration Method" select "Share the network with other computers". Everything.
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?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question