Dear Sanjeev,

I'm sorry but I wish to say the same thing ..

*First of all, please do not piggyback old threads. Always start a new
discussion if the topic is different. The reason is that people do not
necessarily follow each post and only follow according to the subject line.
*

*very true because top posting is not preferred.*

So I have started a thread for you. *
*

The reply of nepbabu is quite explanatory and you may consider using it.
However I wished you might want to give a try downloading and running this
one. Just a choice.

====================================================================

*Box A* (external ip(*wire from ISP*, setting as provided by ISP) --> *Eth0*,


*eth1* internal ip) -->* to switch /Hub* -> *Box B.*

*====================================================================*

*3 steps *

*1. download tryMasquerade_sanjeeb.sh*

Attached is a sample shell file. just chmod 777 and try running it in Box
A.

*2*. [EMAIL PROTECTED] me] *sudo chmod 777 tryMasquerade_sanjeeb.sh*
*3*. [EMAIL PROTECTED] me] *sudo ./tryMasquerade_sanjeeb.sh*

I hope this works.

(if ip is not set  : [EMAIL PROTECTED] me] *sudo ifconfig eth1 192.168.1.1*

================================

*Box B *

You will need to put manual ip, if you don't have a dhcp installed in box A
:

ip will be 192.168.1.2

(any ip but 192.168.1.1,  cuzz it is for box A)

*default gateway* will be 192.168.1.1 ,

*dns servers* - as provided by isp.

On 6/26/08, sanjeev shrestha <[EMAIL PROTECTED]> wrote:
>
> Can any one help me?
>
> I have 2 PCs here at home, I use Ubuntu and my sister uses windows, I want
> to share the internet connection from ubuntu to the PC running windows.
>
> Though I found a tutorial that taught to share the internet connection, I
> could not fix the problem
>
> Here is what I tried on terminal
>
> # sudo ifconfig eth1 192.168.1.1
>
> # sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> # sudo apt-get install dnsmasq ipmasq
>
> # sudo /etc/init.d/dnsmasq restart
>
> # sudo dpkg-reconfigure ipmasq
>
> and then again
>
> # sudo ifconfig eth1 192.168.1.1
>
> # sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> Added the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf
>
> And rebooted.
>
> Still I could not share the internet.
>
>
> Thanks
> sanjeev
>
>

--~--~---------~--~----~------------~-------~--~----~
FOSS Nepal mailing list: [email protected]
http://groups.google.com/group/foss-nepal
To unsubscribe, e-mail: [EMAIL PROTECTED]

Community website: http://www.fossnepal.org/
-~----------~----~----~----~------~----~------~--~---

Attachment: tryMasquerade_sanjeeb.sh
Description: Bourne shell script

Reply via email to