ssh for q3k
parent
dde74465ae
commit
9ff1b8120e
|
@ -4,5 +4,7 @@ rules() {
|
|||
# 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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue