echo 1 > /proc/sys/net/ipv4/ip_forward # This enable ip forwarding by the kernel
iptables -t nat -A POSTROUTING -o eth1 -s <internal ip> -j SNAT --to <external ip>
iptables -t nat -A PREROUTING -d <external ip> -j DNAT --to <internal ip>
#This is the nat in both directions when using static ip
#Replace <internal ip> with your 192 webserver address and
#<external ip> with the assigned public ip address from the ISP.
------------------------------------------------------------------------------------
I almost have no way to make my http service work again(can not visite outside website)
please help
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html