Sorry for posting on this forum, but in the description is "firewalls" and iptables *is* a firewall
, OK, OK I know my problem is not a security problem.
Thanks for the answer, but I can't figure it out anyway
I have things like that (parts from my firewall script):
iptables -t nat -F
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P INPUT ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to $PUBLIC_IP
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT -i eth0 --to-destination $LOCAL_IP_OF_WEB_SERVER:80
works from outside, doesn't work from inside... What important
thing is missing ?
thanks and regards,