I would like your help for the problems as follows :

- I have a LInux server with two network  boards  A board has a validy
address for internet and another one with local adress. How can I configure
the validy adress to the linux route for a internal adress at my network
whch is installed my web server, when someone access from any browser?.
When I configure the validy adress at browse, appears the initial page from
my Linux/Apache server. On this machine is installed Apache and Squid.

Follows, my tentantive with iptabless without sucess :

File rc.local :

#Masquerade
Echo 1 >/proc/sys/net/ipv4/ip_forward
Modprobe iptable_nat
Iptables-t nat - A POSTROUTING -o eth1 -j MASQUERADE

#DNAT
Iptables -t nat - A PREROUTING-p tcp - eth1 -dport 80 -j DNAT - to
192.XXX.XXX.XXX

My kernel is 2.4.18-2cl

When I execute the iptables -L command appear the following :

Chain INPUT (policy ACCEPT)
Target prot opt source                destination

Chain FORWARD (policy accept)
Target prot opt source                  destination

Chain OUTPUT (policy ACCEPT)   destination
Target prot opt source


Dou you have any resolution for me ?


Thank you in advance


Reply via email to