Wednesday, July 11, 2007

Web server di belakang Firewall ( iptables )?

iptables -t nat -A PREROUTING -i $WAN_DEV -p tcp -d $WAN_IP --dport 80 -j DNAT --to-destination $INT_SERVER
iptables -t nat -A POSTROUTING -s $INT_SERVER -p tcp --sport 80 -o $WAN_DEV -j SNAT --to-source $WAN_IP
iptables -t nat -A POSTROUTING -s $LAN/$LAN_NMASK -o $WAN_DEV -j SNAT --to-source $WAN_IP


selesai masalah

No comments:

 Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...