LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux Bricktop-->XP box-->LAN-->Proxy-->The World - but how? (https://www.linuxquestions.org/questions/linux-networking-3/linux-bricktop-xp-box-lan-proxy-the-world-but-how-371197/)

MooUK 10-09-2005 08:27 AM

Linux Bricktop-->XP box-->LAN-->Proxy-->The World - but how?
 
I've spent quite a while trying to find how to get this situation working (and a similar one when booting into windows on the laptop) with no luck for the past few weeks, so I'm admitting defeat and asking...

Here's the situation.

My laptop (an ancient IBM; hence "Bricktop") is connected via ethernet (a PCMCIA card, if it makes any difference) to one NIC in my main box (a desktop running XP Pro). The other NIC in the desktop connects to my uni's network, and reaches the outside world through a web proxy.

It's only possible to have one machine connected to the uni's network, so bridging the two connections on the desktop is not possible. I'm currently trying to get window's built-in connection sharing to work, with no luck in getting the other machine to have access to the outside world. I had as much luck with win2k running on the laptop whilst at home, without the proxy in the way, so I doubt it can be purely a proxy issue anyway.

From the error messages the laptop (running Debian currently) is throwing at me (whilst trying to set up apt), it seems to not be resolving the proxy address. So presumably DNS gets lost somewhere between the laptop and the network DNS.

There's definitely a connection between the laptop and desktop, since the laptop was getting DHCP info from the desktop - or so it claimed, anyway. The fact that I've made this post would prove that I've got an external connection from the desktop.

As far as the desktop's concerned, ICS configured the desktop-laptop connection in it's default way. The desktop-LAN connection is DHCP.

I'm certain it should work in theory, since I was messing around with a coLinux install on this desktop before the summer and had that working fine through ICS on the desktop. (For those who don't know, coLinux acts as a virtual machine on another computer, using a tap connection.) However, the coLinux instructions I used then don't seem to be any use in this situation.

Can anyone point me in the right direction to find help with this? I've found plenty of "XP-->Linux-->WWW" hints and guides and so forth, but none the other way round.

TigerOC 10-09-2005 12:36 PM

You need to get the XP box to forward requests (i.e. internet share) and then configure the /etc/network/interfaces on the Debian box to use the IP address of the card in the XP box, to which it is attached as the gateway. The easiest way is to use static addressing . e.g. assign an address of 192.168.0.2 to XP and then setup the interfaces file (above) like;

auto eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.2

MooUK 10-09-2005 03:51 PM

Aha! Thanks, that seems to have worked.

I think I was partly thinking about things backwards. And partly just not knowing where to config things. Ah well, the latter was the entire point of this in the first place - what better way to learn?

Anyway. Thanks again.


All times are GMT -5. The time now is 05:33 AM.