Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 10, 2005, 7:54 pm
rate this thread
I have my web server internal in my LAN
I have another equipment that makes of router and proxy.
The same one is the one that has the public IP and in this I configure
Next I describe the list of rules that I enter to my firewall:
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -s 192.168.100.0/24 -i eth1 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth0 -j
echo 1 > /proc/sys/net/ipv4/ip_forward
The problem is that if I want to access from internet to my web server,
the firewall not me route to my web server, but rather it is pointing
to the equipment of the firewall.
That I am making bad????
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security