Message-ID: <3A2F8E56.D784FC6@wanadoo.nl>
Date: Thu, 07 Dec 2000 14:19:18 +0100
From: jayhen
Message-ID: <3A2F9A66.A6C0B107@iname.com>
Date: Thu, 07 Dec 2000 14:10:46 +0000
From: Chris Reeves
I would like to know how to setup my linux computer to accept internet requests from my windows computer. I have tried the IPCHAINS and IPMASQ with no results. The linux computer has a IP address of 192.168.0.1 and the windows computer 192.168.33.2 What do I need to do to make everything work? Also do I have to add in the windows Internet explorer 192.168.33.1 as the gateway or not. Anyones help would be much appreciated.
I am assuming that your Linux box is the point where your network connects to the Internel. I'm also going to assume that you are in control of your network... First of all, I would recommend changing the IP address on one of the computers so that they are both in the same subnet, i.e. the first three parts of the IP address are the same for both computers. I'm now going to make yet another assumption... that you've changed the Windows IP address to 192.168.0.2. You'll need to change the routing on the Linux box, so do: route del -net 192.168.33.0/24 dev eth0 route add -net 192.168.0.0/24 dev eth0 First of all you need to enable IP forwarding, so execute the following command: echo "1" > /proc/sys/net/ipv4/ip_forward Next you'll need to enable IP masquerading, so clear all of your ipchains rules with 'ipchains -F' and then enable masquerading with the following commands: ipchains -P input ACCEPT ipchains -P forward MASQ ipchains -P output ACCEPT That is the Linux box set up... Please note that this is a *very* insecure setup, and should be used only while verifying that you can get everything working. Once this is verified, you will need to change your ipchains rules for added security. Now all you have to do is set the Windows box to have its gateway as your Linux box (192.168.0.1). Do this in 'Control Panel->Network' and find the option in there. You do not need to alter the configuration for any of your browsers at all.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface 195.96.100.62 * 255.255.255.255 UH 0 0 0 ppp0 192.168.33.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 195.96.100.62 0.0.0.0 UG 0 0 0 ppp0
Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
From: "Stuart Powell"
From the look of your routing table, changing the Linux IP to 192.168.33.1 would probably be the quickest fix. Oh, and make sure the subnet mask is 255.255.255.0 on both machines.
Bye for now, Stuart. <p>-----Original Message----- From: root@suse.com [mailto:root@suse.com]On Behalf Of jayhen Sent: Thursday, December 07, 2000 7:19 AM To: suse-linux-e@suse.com Subject: [SLE] Internet Access via linux from Windows <p>I would like to know how to setup my linux computer to accept internet requests from my windows computer. I have tried the IPCHAINS and IPMASQ with no results. The linux computer has a IP address of 192.168.0.1 and the windows computer 192.168.33.2 What do I need to do to make everything work? Also do I have to add in the windows Internet explorer 192.168.33.1 as the gateway or not. Anyones help would be much appreciated. Here is the route table: <p>Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 195.96.100.62 * 255.255.255.255 UH 0 0 0 ppp0 192.168.33.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 195.96.100.62 0.0.0.0 UG 0 0 0 ppp0 <p>Regards, Jay -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (3)
-
chris.reeves@iname.com
-
jayhen@wanadoo.nl
-
stuart@yorkshirepudding.com