hi sanjeev, assuming that ur internet comes at eth0 and u share it via eth1, the steps looks pretty okay to me. what ip have u assigned to the windows computer?? or is it through dhcp??
if the shell way gets confusing to u, u can also use Firestarter ( http://www.fs-security.com/). it's also available in the repos of ubuntu and internet connection sharing is a piece of cake using this software.. regards, jwalanta On Thu, Jun 26, 2008 at 12:59 PM, 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 > > > On Thu, Jun 26, 2008 at 12:49 PM, sanjeev shrestha < > [EMAIL PROTECTED]> wrote: > >> Hi, >> >> I too faced that problem and my migration completely to linux seemed >> impossible. I tried to migrate to linux since the release of Red Hat 9 but >> the migration did not prove to be fruitful. I installed different distros >> (all in hope to leave the windows completely) but lack of programs that are >> used frequently, I had to stick to windows. >> >> I don't use linux as desktop operating system that much, but all changed >> when I opted for Ubnutu Hardy Heron (8). I installed the hardy heron a week >> ago and now I don't use windows much. (Near to zero utility). I am still >> searching for more good programs /packages to make my migration easy and >> productive. >> >> I always faced problem connecting to internet earlier, though I was helped >> by FOSS teams, I could not connect to internet. Now with ubuntu, I have >> connected to internet, Updated all the packages (Still downloading...), >> Found some good programs on net like Skype (Which I use most), XAMPP (for >> development). >> >> I am using Quanta Plus as a replacement for dreamweaver. I am downloading >> Kompozer to replace quanta, but I am feeling at home with Quanta. Gimp for >> Photo editing (Not much productive with Gimp) and downloading GimpShop >> (Heard that it is easy to migrate from photoshop). Downloading Inkscape as a >> replacement for illustrator, Downloading f4L for Flash and the list >> continues. >> >> Downloaded Eclipse for other programming stuffs. Still need to download >> different plugins. >> >> I think I will get everything here on ubuntu. >> >> This is my view on my migration. Hope everyone enjoys the migration as >> much as I am. >> >> - Sanjeev >> >> >> On Wed, Jun 25, 2008 at 5:06 PM, suraj <[EMAIL PROTECTED]> wrote: >> >>> You can find a list of alternatives at >>> The Linux Alternative Project: http://www.linuxalt.com >>> and >>> Free and Open Source Software Directory: >>> http://www.webi.org/osalternative.html >>> >>> On Wed, Jun 25, 2008 at 4:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> >>> wrote: >>> >>>> >>>> I will switch to linux if i have at least one alternate software of >>>> the folowings. >>>> >>>> Adobe photoshop CS3 >>>> Adobe Dreamweaver >>>> Adobe Illustrator >>>> Macromedia Flash >>>> Macromedia Freehand MX >>>> >>>> I have some other small but 'i cant live without' softwares which only >>>> run on windows too. >>>> >>>> Cheers >>>> Safar >>>> >>>> >>>> >>> >>> >>> -- >>> Regards, >>> Suraj Sapkota >>> सुरज सापकोटा >>> ----- >>> This space intentionally has nothing but text explaining why this >>> space has nothing but text explaining that this space would otherwise >>> have been left blank, and would otherwise have been left blank. >>> -Kernel.org >>> ----- >>> >>> >>> >> >> >> -- >> the DEVIL > > > > > -- > the DEVIL > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
