WAN not LAN

master
Robert "ar" Gerus 2013-03-11 21:14:11 +01:00
parent 9799bf2786
commit 3119e275d5
1 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,8 @@
rules() {
# external port redirects
iptables -t filter $flag INPUT -i ${IF_WAN} -d ${HOST_KASHA} -p tcp --dport 22 -j ACCEPT
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA} -p tcp --dport 22 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA} -p tcp --dport 80 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA} -p tcp --dport 443 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 22 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 80 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 443 -j DNAT --to-destination ${HOST_AMANOJAKU}
# rtorrent
iptables -t nat $flag PREROUTING -i ${IF_WAN} -p tcp --dport 14528:14530 -j DNAT --to-destination ${HOST_AMANOJAKU}
}