Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

-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]

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |