:666 → 10.24.0.29:22

master
Robert Gerus 2013-07-08 23:51:01 +02:00
parent 4d48646fb7
commit c90ee51978
2 changed files with 6 additions and 10 deletions

6
rules/11-pht-forwards Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
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
fi
}

View File

@ -1,10 +0,0 @@
#!/bin/bash
rules() {
# xpsp3 rdp
# 16283 -> 10.24.17.1:3389
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 16283 -j DNAT --to-destination 10.24.17.1:3389
iptables -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.17.1 -p tcp --dport 3389 -j ACCEPT
iptables -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.16.1 -p tcp --dport 22 -j ACCEPT
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 16284 -j DNAT --to-destination 10.24.16.1:22
}