RE: [expert] Network fun!

2002-07-17 Thread Belkie, Dan

Ok perfect!
So then all the servers on the inside should be on 255.255.0.0 right?
(webservers and all?)

Thanks
d.

-Original Message-
From: Patrick Putteman [mailto:[EMAIL PROTECTED]]
Sent: July 17, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] Network fun!



- Original Message -
From: "Belkie, Dan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 5:49 PM
Subject: [expert] Network fun!


> Hey Guys!
> a little background on my problem.
>
> I have a Mandrake box 8.0 acting as a kinda DSL router.
> It has 2 NIC cards. One with a Real IP and one with a non-routable
> (192.168.1.1)
>
> I have a web server on the inside on the following IP: 192.168.0.110
>
> I have forwarding set up to send any request coming in on port 80 to
> 192.168.0.110.
>
> It does not work :( but the Linux box CAN ping the web server?

What's the netmask of the nic on the LAN side? If its 255.255.255.0 it will
not work. Change it to 255.255.0.0 and you should be set.

Regards

Patrick






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Network fun!

2002-07-17 Thread Patrick Putteman


- Original Message -
From: "Belkie, Dan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 5:49 PM
Subject: [expert] Network fun!


> Hey Guys!
> a little background on my problem.
>
> I have a Mandrake box 8.0 acting as a kinda DSL router.
> It has 2 NIC cards. One with a Real IP and one with a non-routable
> (192.168.1.1)
>
> I have a web server on the inside on the following IP: 192.168.0.110
>
> I have forwarding set up to send any request coming in on port 80 to
> 192.168.0.110.
>
> It does not work :( but the Linux box CAN ping the web server?

What's the netmask of the nic on the LAN side? If its 255.255.255.0 it will
not work. Change it to 255.255.0.0 and you should be set.

Regards

Patrick





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] Network fun!

2002-07-17 Thread Belkie, Dan

Hey Guys!
a little background on my problem.

I have a Mandrake box 8.0 acting as a kinda DSL router.
It has 2 NIC cards. One with a Real IP and one with a non-routable
(192.168.1.1)

I have a web server on the inside on the following IP: 192.168.0.110

I have forwarding set up to send any request coming in on port 80 to
192.168.0.110.

It does not work :( but the Linux box CAN ping the web server?

If the web server is on 192.168.0.110 I assume it will work. (because I have
used the iptables script on another box, and it works fine.

The box is working as a gateway for the 3 or so computers behind it grabbing
a DHCP assigned address. ;)

Sooo I assume I need to do something n the Linux box for routing? Ideas?
Here is a quick snip of the iptables script:

#!/bin/sh
modprobe ip_tables
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F -t filter
iptables -Z -t filter
iptables -X -t filter
iptables -F -t nat
iptables -Z -t nat
iptables -X -t nat
#Setup your table policies;
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
#connexion share
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

iptables -t nat -A PREROUTING -d 142.179.182.112 -p tcp \
--dport 80 -j DNAT --to 192.168.1.110

Thanks!
Dan




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com