Port redirection for NAS box.
parent
45b1c828ff
commit
f04a73ef01
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue