Giving Internet Access To Windows From Linux?

November 1, 2009 at 19:21:23
Specs: Linux i686 Ubuntu 9.10
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.


See More: Giving Internet Access To Windows From Linux?

Report •


#1
November 1, 2009 at 22:22:12
-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]


Report •
Related Solutions


Ask Question