WAN not LAN
parent
9799bf2786
commit
3119e275d5
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue