Redirect for http

master
Robert Gerus 2013-07-31 00:35:40 +02:00
parent 58ef71e996
commit dec1f86d32
1 changed files with 1 additions and 0 deletions

View File

@ -5,4 +5,5 @@ rules() {
iptables -t nat $flag POSTROUTING -o ${IF_WAN} -d 178.217.184.63 -j SNAT --to-source ${HOST_KASHA_WAN2}
fi
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 666 -j DNAT --to-destination 10.24.40.1:22
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 777 -j DNAT --to-destination 10.24.40.1:80
}