User Tools

Site Tools


unix:stora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
unix:stora [2011/02/02 07:09]
ben created
unix:stora [2011/02/02 07:39]
ben
Line 1: Line 1:
-To open arbitrary ports on a NetGear Stora, edit /​etc/​init.d/​iptables and add a variable near the top of the file called TCP_OPEN_PORTS_EXT.+To open arbitrary ports on a NetGear Stora (if you don't like UPnP), edit /​etc/​init.d/​iptables and add a variable near the top of the file called TCP_OPEN_PORTS_EXT.
  
 <​code>​ <​code>​
-export DEF_PROFILE=`grep '​^defaultProfile'​ $OEADMIN_CONFIG | awk '​{print $2;}'` 
 export TCP_OPEN_PORTS_EXT=29101 export TCP_OPEN_PORTS_EXT=29101
 </​code>​ </​code>​
Line 9: Line 8:
  
 This is necessary if you want to setup an arbitrary daemon on the system, like transmission,​ maybe. This is necessary if you want to setup an arbitrary daemon on the system, like transmission,​ maybe.
 +
 +This works because the iptables script includes a section that uses the variable:
 +<​code>​
 +# Accept the 3rd party ports that are set to be opened:
 +    if [ ! -z "​${TCP_OPEN_PORTS_EXT}"​ ]; then
 +        for port in $TCP_OPEN_PORTS_EXT;​ do
 +                iptables -A INPUT -p tcp --dport $port -j ACCEPT || die
 +        done
 +    fi
 +</​code>​
unix/stora.txt ยท Last modified: 2014/02/19 11:53 by ben