Port redirection for NAS box.

master
Robert "ar" Gerus 2013-03-11 12:25:55 +01:00
parent 45b1c828ff
commit f04a73ef01
1 changed files with 5 additions and 0 deletions

5
rules/10-ar-amanojaku Normal file
View File

@ -0,0 +1,5 @@
rules() {
iptables -t nat $flag PREROUTING -i ${IF_WAN} -p tcp --dport 22 -j DNAT --to-destination ${HOST_AMANOJAKU}:22
iptables -t nat $flag PREROUTING -i ${IF_WAN} -p tcp --dport 80 -j DNAT --to-destination ${HOST_AMANOJAKU}:80
iptables -t nat $flag PREROUTING -i ${IF_WAN} -p tcp --dport 443 -j DNAT --to-destination ${HOST_AMANOJAKU}:443
}