Open ipfs port on mesh
This commit is contained in:
parent
1e11d1f157
commit
5dd057635b
|
@ -2250,6 +2250,7 @@ function mesh_batman_bridge {
|
|||
echo ' iptables -A INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo " iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
|
@ -2285,6 +2286,7 @@ function mesh_batman_bridge {
|
|||
echo ' iptables -D INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo " iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' systemctl restart network-manager' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
|
|
|
@ -48,6 +48,7 @@ SSH_KEX="curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256"
|
|||
SSH_HOST_KEY_ALGORITHMS="ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-ed25519,ssh-rsa"
|
||||
|
||||
ZERONET_PORT=15441
|
||||
IPFS_PORT=4001
|
||||
TRACKER_PORT=6969
|
||||
|
||||
# see https://stribika.github.io/2015/01/04/secure-secure-shell.html
|
||||
|
@ -343,6 +344,7 @@ function mesh_batman {
|
|||
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
||||
echo " iptables -A INPUT -p udp -m udp -j ACCEPT" >> $batman_script
|
||||
|
@ -388,6 +390,7 @@ function mesh_batman {
|
|||
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
||||
echo " iptables -D INPUT -p udp -m udp -j ACCEPT" >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue