Computing.Net > Forums > Networking > Giving Internet Access To Windows From Linux?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Giving Internet Access To Windows From Linux?

Reply to Message Icon

Name: Firerouge
Date: November 1, 2009 at 19:21:23 Pacific
OS: Linux i686 Ubuntu 9.10
Subcategory: Routers and Hubs
Tags: linux, Networking, sharring, internet, connection
Comment:

The Situation:
I have a Linux box, running Ubuntu 9.10 that is connected to a wireless network for Internet access. It also has 1 free Ethernet port on it. I also have a windows box that has no wireless connection but has 1 free Ethernet port on it.

The Problem:
How do you give Internet access to the windows box from the Linux box.



Sponsored Link
Ads by Google

Response Number 1
Name: Fist (by fmwap)
Date: November 1, 2009 at 22:22:12 Pacific
Reply:

-Connect the boxes back to back w/ a crossover cable

-Give them IP's in their own subnet; 10.10.1.1 / 255.255.255.252 (ubuntu) and 10.10.1.2 255.255.255.252 (windows)

-Enable IP forwarding on the Ubuntu box (sysctl -w net.ipv4.ip_forward=1)

-On the Windows box, set the default gateway to the Ubuntu machine (10.10.1.1)

-On your wireless router, set a static route: 10.10.1.0 / 255.255.255.252 -> nexthop:[ip for ubuntu on your local net]


1
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Giving Internet Access To Windows From Linux?

accessing windows from linux www.computing.net/answers/networking/accessing-windows-from-linux-/27316.html

Internet Connection Sharing Ques. www.computing.net/answers/networking/internet-connection-sharing-ques/19130.html

Internet access to TS over a firewall www.computing.net/answers/networking/internet-access-to-ts-over-a-firewall/2100.html