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. ;)

Sooooooo 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

Reply via email to