Linux as gateway for Windows clients

Linux as gateway for Windows clients

Post by Andre » Tue, 13 Oct 1998 04:00:00



I am using Redhat 5.1 and can't get the connection to work properly.
If I down eth0 I can connect to the net and browse and ping etc.
If the network interface is up and running I can still connect but no
response form ping or any other tcp/ip operations.
The local network works perfectly with and without ppp running.
I have tried to setup ip_masq but with no success.
The Linux box is using ip:200.200.200.1 (doxol)
The Win95 box is : 200.200.200.100 (calvin)

Please help.

 
 
 

Linux as gateway for Windows clients

Post by Dirk Huesk » Wed, 14 Oct 1998 04:00:00



>I am using Redhat 5.1 and can't get the connection to work properly.
>If I down eth0 I can connect to the net and browse and ping etc.
>If the network interface is up and running I can still connect but no
>response form ping or any other tcp/ip operations.
>The local network works perfectly with and without ppp running.
>I have tried to setup ip_masq but with no success.
>The Linux box is using ip:200.200.200.1 (doxol)
>The Win95 box is : 200.200.200.100 (calvin)

You need to use IP addresses from the "private" range. That is, 192.168.x.y
for class C subnets. There are others, like 10.x.y.z and 172.???? (I don't
remember) that are safe for use in local networks.

--



PGP Public Key: http://www.muenster.de/~huesken/pgp_public_key

 
 
 

Linux as gateway for Windows clients

Post by Stephane Vi » Wed, 14 Oct 1998 04:00:00



>I am using Redhat 5.1 and can't get the connection to work properly.
>If I down eth0 I can connect to the net and browse and ping etc.
>If the network interface is up and running I can still connect but no
>response form ping or any other tcp/ip operations.
>The local network works perfectly with and without ppp running.
>I have tried to setup ip_masq but with no success.
>The Linux box is using ip:200.200.200.1 (doxol)
>The Win95 box is : 200.200.200.100 (calvin)

        Are those Internet IPs or LAN IPs? If 200.200.200.1 and
200.200.200.100 are local IPs used by your LAN, then no wonder it messes
up once you connect to the Internet. The valid IPs for a LAN connected
to the Internet are :

10.x.x.x
172.168.x.x
192.168.x.x

        If you use something else than that, it'll conflict with other
IPs once your machines connect to the Internet. I'd suggest changing
200.200.200.1 to 192.168.1.1 and 200.200.200.100 to 192.168.1.100. Your
subnet mask should already be 255.255.255.0, so leave it this way if
you're going to use the 192.168.x.x IP range.

        Good luck,

                                        Stephane Viau

--
Visit the Catacombs!
#catacombs, Undernet IRC.

 
 
 

Linux as gateway for Windows clients

Post by Danyel » Thu, 15 Oct 1998 04:00:00


172.16.x.y is the other private range. 2 ethernet cards on the linux box
will make your life easier.
eth0 - real IP address 207.82.16.211
eht1 - private address 172.16.1.1

Set up your routes and have ip_masq forward to eth0 and you should be set.

With just one card you will need to set up

eth0 - real IP address
eth0:0 - private address

Danyell



>>I am using Redhat 5.1 and can't get the connection to work properly.
>>If I down eth0 I can connect to the net and browse and ping etc.
>>If the network interface is up and running I can still connect but no
>>response form ping or any other tcp/ip operations.
>>The local network works perfectly with and without ppp running.
>>I have tried to setup ip_masq but with no success.
>>The Linux box is using ip:200.200.200.1 (doxol)
>>The Win95 box is : 200.200.200.100 (calvin)

>You need to use IP addresses from the "private" range. That is, 192.168.x.y
>for class C subnets. There are others, like 10.x.y.z and 172.???? (I don't
>remember) that are safe for use in local networks.

>--



>PGP Public Key: http://www.muenster.de/~huesken/pgp_public_key

 
 
 

Linux as gateway for Windows clients

Post by Rudhuwan Abu Bak » Fri, 16 Oct 1998 04:00:00


How about if I have one modem and one NIC.Can i set up an IP masquerading
LAN?Some sort like a * cafe with a dialup connection.

regards
duan

Quote:>172.16.x.y is the other private range. 2 ethernet cards on the linux box
>will make your life easier.
>eth0 - real IP address 207.82.16.211
>eht1 - private address 172.16.1.1

>Set up your routes and have ip_masq forward to eth0 and you should be set.

>With just one card you will need to set up

>eth0 - real IP address
>eth0:0 - private address

>Danyell

 
 
 

Linux as gateway for Windows clients

Post by Tobias Reckhard (jest » Fri, 16 Oct 1998 04:00:00


On Mon, 12 Oct 1998 13:57:43 +0200, "Andrew"


>I am using Redhat 5.1 and can't get the connection to work properly.
>If I down eth0 I can connect to the net and browse and ping etc.
>If the network interface is up and running I can still connect but no
>response form ping or any other tcp/ip operations.
>The local network works perfectly with and without ppp running.
>I have tried to setup ip_masq but with no success.
>The Linux box is using ip:200.200.200.1 (doxol)
>The Win95 box is : 200.200.200.100 (calvin)

>Please help.

Sounds like there could be a routing problem, with your gateway not
sending to the Internet, but to your LAN. It could also be that you
haven't enabled IP forwarding, but then you should be able to access
the Internet at least from the Linux gateway.

Could you supply your 'ifconfig' and 'route -n' outputs, please? Oh,
and the outputs of 'ipfwadm -Ilne', 'ipfwadm -Olne' and 'ipfwadm
-Flne'.

regards
Tobias

 
 
 

Linux as gateway for Windows clients

Post by Luc Lalond » Fri, 16 Oct 1998 04:00:00


This is a know issue in RedHat...you have to make this change:

In your file /etc/sysconfig/network, there's a line that looks like
this:

FORWARD_IPV4=false

Change it to:

FORWARD_IPV4=true

Also, I'm using a PPP connection for my local LAN.  I've created a small
script in /etc/rc.d/init.d called "masquerading".  I made it executable
and put an entry in my main runlevel (5) because I run XDM:

###############################################

case "$1" in
  start)
        echo "Starting IPMasquerading "
        /sbin/depmod -a
        /sbin/modprobe ip_masq_ftp
        /sbin/modprobe ip_masq_raudio
        /sbin/modprobe ip_masq_irc
        /sbin/modprobe ip_masq_cuseeme
        /sbin/modprobe ip_masq_vdolive

        /sbin/ipfwadm -F -p deny
        /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
        ;;
  stop)
        echo "Stoping IPMasquerading "
        killall ipfwadm
        ;;
  *)
        echo "Usage: sound {start|stop}"
        exit 1
esac

exit 0    

#####################################################

Once you have this properly entered in the file
/etc/rc.d/init.d/masquerading, it should appear in your runlevel editor
through control-panel.  I would make your gateway PC 192.168.1.1, and
your other machine 192.168.1.2 and so on.

Hope this helps...it works like a charm here ;-)

Cheers, Luc.

 
 
 

Linux as gateway for Windows clients

Post by Carles Arjon » Mon, 26 Oct 1998 03:00:00



> Change it to:

> FORWARD_IPV4=true

Many thanks! I had this problem the last days (since I changed from
Slackware to RedHat).

Quote:>         echo "Stoping IPMasquerading "
>         killall ipfwadm

But ipfwadm is not a daemon, so it can't be killed. You might use
instead:

   /sbin/ipfwadm -F -d m -S 192.168.1.0/24 -D 0.0.0.0/0
   # or even /sbin/ipfwadm -F -f

   for a in /lib/modules/`uname -r`/ipv4/ip_masq_*
   do
      modprobe -r `basename $a`
   done

Regards.
--

-
Please, just remove the second NOSPAM for replies from newsgroups.
(Yes, NOSPAM is my real username)
[Don't send me e-mail copies of usenet postings, please]

 
 
 

Linux as gateway for Windows clients

Post by K.K. » Sun, 01 Nov 1998 04:00:00



>   /sbin/ipfwadm -F -d m -S 192.168.1.0/24 -D 0.0.0.0/0
>   # or even /sbin/ipfwadm -F -f

Hi, please enlighten me on this "192.168.1.0/24", is this trying to specify
1 thru 24?  Forgive me that I am kind of new...  Thank you.

K.K.

 
 
 

Linux as gateway for Windows clients

Post by Ville Nummel » Sun, 01 Nov 1998 04:00:00



> >   /sbin/ipfwadm -F -d m -S 192.168.1.0/24 -D 0.0.0.0/0
> >   # or even /sbin/ipfwadm -F -f
> Hi, please enlighten me on this "192.168.1.0/24", is this trying to specify
> 1 thru 24?  Forgive me that I am kind of new...  Thank you.

It means 192.168.1.0 with 24 bit mask. So the result is 192.168.1.*

--

 |     IRC natura alienum est! Periculosum est! Delendum est!       |

 
 
 

Linux as gateway for Windows clients

Post by Han » Sun, 01 Nov 1998 04:00:00





>> >   /sbin/ipfwadm -F -d m -S 192.168.1.0/24 -D 0.0.0.0/0
>> >   # or even /sbin/ipfwadm -F -f
>> Hi, please enlighten me on this "192.168.1.0/24", is this trying to specify
>> 1 thru 24?  Forgive me that I am kind of new...  Thank you.

>It means 192.168.1.0 with 24 bit mask. So the result is 192.168.1.*

Addition:

It can also be written as 192.168.1.0/255.255.255.0

Read the NET-3-HOWTO or the Network Administration Guide
(nag-1.0.html.tar.gz) if you want to know more...

Hans

 
 
 

Linux as gateway for Windows clients

Post by Tobias Reckhard (jest » Tue, 03 Nov 1998 04:00:00


On Sat, 31 Oct 1998 17:08:24 +0800, "K.K."



>>   /sbin/ipfwadm -F -d m -S 192.168.1.0/24 -D 0.0.0.0/0
>>   # or even /sbin/ipfwadm -F -f

>Hi, please enlighten me on this "192.168.1.0/24", is this trying to specify
>1 thru 24?  Forgive me that I am kind of new...  Thank you.

The /24 specifies the subnet mask to use, 24 bits in this case. It corresponds
to the standard class C mask of 255.255.255.0 (24 bits ones and eight zeroes).
By using this mask, the source address can be in the range of 192.168.1.0 to
192.168.1.255 and the rule will match.

regards
Tobias

 
 
 

1. Windows 2000 clients can't obtain gateway from Linux server

Hi,

I have a Red Hat 6.2 server, with Windows clients.  The problem I am
having is that my Windows 2000 clients can't obtain the default
gateway from the server, as it is expecting to use DHCP to get this
information.  (MS have kindly decided to take out the option to enter
in your gateway for Dial-up connections).

My Windows 95/98 (and of course Linux) clients have manually entered
in IP addresses and gateway, and successfully connect.

My Windows 2000 clients can connect but the gateway is incorrect.
Here is a copy of my ppp files:

/etc/ppp/options
lock
nolog
debug

/etc/ppp/options.ttyS0
auth
-chap
+pap
login
proxyarp
111.222.333.11:111.222.333.12

When the Windows 2000 client connects, the IP address becomes
111.222.333.11, however, then it accepts the 111.222.333.12 as the
gateway.  And hence it won't work, because this is not the gateway!

My W2K clients are set up to obtain IP from server.

2. source code

3. Setting up shared Internet connection with a Linux client with a Windows 2000 server (gateway)

4. Hardware: Thin Client || X Terminal

5. Hopeless Windows VPN client as gateway in a Linux Network?

6. LT Win Modem

7. Windows gateway, Linux client?

8. rpm problem

9. Windows client to Linux gateway

10. Control Linux gateway dial-up from Windows clients

11. Samba file timestamp policy with Linux client .vs. Windows client

12. dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients

13. Communication needed between linux server/client to windows client/server