Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Ubuntu 11.10

I have internet in mobile then create hotspot for access internet in laptop.

Now main thing is that how can I share that to LAN(eth0).

Path of internet

Mobile WIFI --> Laptop WIFI --> Laptop Lan --> Smart TV Lan

share|improve this question
Check this Question: Share Wireless connection with Wired Ethernet Port – Dan Jul 24 '12 at 15:20
flagged as a possible duplicate?… – fossfreedom Jul 26 '12 at 20:06
I have asked this question before you linked question @EricCarvalho – Ankur Loriya Aug 17 '15 at 8:50
up vote 2 down vote accepted

You can run a NAT/Firewall software like Firestarter on the LAPTOP (install from the software center).

Another solution without running anything is to do the NAT manually with iptables on NAT Table postrouting using Masquerade on your wi-fi interface. See rule below:


and you will need to enable ip forwarding with:

/bin/echo 1 > /proc/sys/net/ipv4/ip_forward

or make it permanent with:

sudo nano /etc/sysctl.conf

Modify the line: net.ipv4.ip_forward=1

Apply: sudo sysctl -p /etc/sysctl.conf

Verify: cat /proc/sys/net/ipv4/ip_forward

Should show 1

share|improve this answer
thanks i will checkout.... – Ankur Loriya Jul 24 '12 at 16:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.