http service die, after I tried some iptable rule, please help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



after I follow the instruction of

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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux