Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i have installed 11.10 Ubuntu

i have internet in mobile then create hospot 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? askubuntu.com/questions/3063/… –  fossfreedom Jul 26 '12 at 20:06
add comment

1 Answer

up vote 1 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:

-A POSTROUTING -o wlan0 -j MASQUERADE

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 Patel Jul 24 '12 at 16:18
add comment

Your Answer

 
discard

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.