OK, the problem is twofolds, let's clarify each one separately.
If we look carefully, we see that ElfoReal want simultaneously two things :
- interconnect his two computers using wifi.
- surf on the internet on the the second computer which has no direct link to the external network.
So, let's first look a the interconnect thing, it's the easiest one.
The internet-capable computer has a not-used wifi adapter, let's use it. Configure this adapter as Ad-hoc (meaning not slave from an accesspoint), and give it a fixed-ip address.
Give the IP address the following value : 12.3.4.5.
This means that your PC has now two networks : the "external" network, which can reach Internet, and your "very private" network, where it has the address 12.3.4.5.
Now, configure your second PC's Wifi adapter as Ad-Hoc, it should be able to see the other adapter. Give this adapter the following address : 12.3.4.6.
This means that the second PC has a single Ethernet adapter, it is on the "12.3.4" network and it has the address 6 on this network. And it can ping the other PC which has the addess 5 on the same network.
In order to verify that, open a Windows command-line window, and type :
ping -n 3 12.3.4.5
Now, the first step is finished, the two computers are interconnected, they can share files using the Microsoft sharing system (for instance in a command-line window on the second system you type "net use * \\12.3.4.5\myfolder" and the shared folder named "myfolder" from the 12.3.4.5 will be usable on the 12.3.4.6 computer.
Now comes the second very interesting point.
On the first computer, which is able to access the internet, the one which has the very private address 12.3.4.5, you can install a proxy. The easyiest to use is privoxy, it's free and powerful, you can download it from here :
http://sourceforge.net/project/showfiles.php?group_id=11118 You insall it very easily, you will see it working imediately. Simply it will serve only the local computer. But you can ask it to serve the very private network.
Use the privoxy configuration tool, click Edit configuration file, look at the line saying "listen" something, and add the following line :
listen-address 12.3.4.5:8080
Do not forget to save the configuration and restart privoxy.
Now, on your very private network, you have a proxy server.
Then, this proxy server can be used for your second PC, the one which does not have access to internet and have the 12.3.4.6 IP address.
On this PC, open Microsoft Internet explorer and go to "tools", "Internet Options", Connexions, network Parameters, choose "use a proxy" and give as proxy address 12.3.4.5 and proxy port 8080.
You see that your first PC has a proxy serving listening for queries queries on the 8080 port of the 12.3.4.5 address, and that the second PC will send it's queries to the server at the IP address 12.3.4.5, port 8080.
Now, you are able to surf on the Internet on the second PC ! type www.google.com on the second PC.
Then, rush to the first one, go to the privoxy console, and you will se "request for www.google.com", accepted.
Of course, this will work for the "normal" sites, the ones your grandma would see you surfing on.
If you happen to go to www.f****ckand******.com, you will see at the Privoxy console "request ****.com : crunch", and at the client PC you will see "proxy error, could not reach this site".
Hope this helped, I like this way of doing this because you have two different operations on two different problems : you first interconnect the two PC's, which is a very basic thing which should have no problem. Then you install privoxy, which console will explain the problems related to safe-surfing rules.
Of course, you should also have a look at the firewall settings, generally what I do is disabling the firewalls while testing my things, and then re-enable the firewalls and see which system or which processes cannot cross the firewall (like"ping") and allow the concerned systems or processes to work correctly using the firewall.
Hope this helped.
Yordan
Comment/Reply (w/o sign-up)