pht - zmiana publicznego ip wychodzącego do shell.k4be.pl na _WAN2.

master
Robert Gerus 2013-07-09 23:36:34 +02:00
parent a94ab7d8d0
commit 22a6f49781
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
rules() {
if ${HAVE_WAN2}; then
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN2} -p tcp --dport 666 -j DNAT --to-destination 10.24.0.29:22
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.0.29:22
}