ipfs port

This commit is contained in:
Bob Mottram 2015-09-30 10:20:47 +01:00
parent 67aefea065
commit d49f6e7d60
1 changed files with 15 additions and 0 deletions

View File

@ -414,6 +414,8 @@ TRACKER_PORT=6969
ZERONET_DEFAULT_BLOG_TAGLINE="Blogging on the Mesh" ZERONET_DEFAULT_BLOG_TAGLINE="Blogging on the Mesh"
ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group" ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group"
IPFS_PORT=4001
# Default diffie-hellman key length in bits # Default diffie-hellman key length in bits
DH_KEYLENGTH=1024 DH_KEYLENGTH=1024
@ -5869,6 +5871,18 @@ function configure_firewall_for_voip {
echo 'configure_firewall_for_voip' >> $COMPLETION_FILE echo 'configure_firewall_for_voip' >> $COMPLETION_FILE
} }
function configure_firewall_for_ipfs {
if [[ $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" ]]; then
return
fi
if grep -Fxq "configure_firewall_for_ipfs" $COMPLETION_FILE; then
return
fi
iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
save_firewall_settings
echo 'configure_firewall_for_ipfs' >> $COMPLETION_FILE
}
function configure_firewall_for_avahi { function configure_firewall_for_avahi {
if grep -Fxq "configure_firewall_for_avahi" $COMPLETION_FILE; then if grep -Fxq "configure_firewall_for_avahi" $COMPLETION_FILE; then
return return
@ -10522,6 +10536,7 @@ configure_firewall_for_web_access
configure_firewall_for_voip configure_firewall_for_voip
configure_firewall_for_avahi configure_firewall_for_avahi
configure_firewall_for_zeronet configure_firewall_for_zeronet
configure_firewall_for_ipfs
remove_proprietary_repos remove_proprietary_repos
change_debian_repos change_debian_repos
enable_backports enable_backports