Hello
i cannot redirect port 80 to the internal computer
eth0 real-external IP
eth2 with ip 192.168.1.2 hosts webserver on 80
unfortunately i can see the apache test page locally not externally
this is my testing script - not a real one
Code:
INET_IP="84.x.x.x"
INET_IFACE="eth0"
LAN_IP="192.168.1.1"
LAN_IFACE="eth2"
DMZ_HTTP_IP="192.168.1.2"
O_IFACE="lo"
LO_IP="127.0.0.1"
IPTABLES="/usr/sbin/iptables"
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_limit
/sbin/modprobe ipt_state
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -t nat -A PREROUTING -p TCP -i $INET_IFACE -d $INET_IP --dport 80 \
-j DNAT --to-destination $DMZ_HTTP_IP:80
$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to-source $INET_IP
any hell would be very apreaciated