This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
unix:stora [2011/02/02 07:09] ben created |
unix:stora [2011/02/02 07:16] ben |
||
---|---|---|---|
Line 2: | Line 2: | ||
<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> |