Forward some of my crap.

master
q3k 2013-04-02 11:40:56 +02:00
parent 669472f4b3
commit e4f106b15a
1 changed files with 8 additions and 0 deletions

8
rules/11-q3k-forwards Normal file
View File

@ -0,0 +1,8 @@
#!/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 --to-port 3389
iptanles -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.17.1 -p tcp --dport 3389 -j ACCEPT
}