mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-10 01:16:17 +00:00
Open port 9735 for Lighting by default
This commit is contained in:
parent
6962fc5439
commit
6615cef6a2
@ -131,6 +131,7 @@ $ cat > /etc/iptables.firewall.rules <<EOF
|
|||||||
-A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
|
-A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 8333 -j ACCEPT
|
-A INPUT -p tcp --dport 8333 -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 18333 -j ACCEPT
|
-A INPUT -p tcp --dport 18333 -j ACCEPT
|
||||||
|
-A INPUT -p tcp --dport 9735 -j ACCEPT
|
||||||
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
||||||
|
|
||||||
# Log iptables denied calls
|
# Log iptables denied calls
|
||||||
@ -144,7 +145,7 @@ COMMIT
|
|||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
> **TESTNET vs MAINNET:** Note that 8333 is the Bitcoin Mainnet Port and 18333 is the Bitcoin Testnet port. If you want to be adventurous, you can delete the one you're not using.
|
> **TESTNET vs MAINNET:** Note that 8333 is the Bitcoin Mainnet Port, 18333 is the Bitcoin Testnet port, and 9735 is the Lightning port. If you want to be adventurous, you can delete the one you're not using.
|
||||||
|
|
||||||
Most work is still done on IPv4 networks, but the following will establish the same rules for IPv6:
|
Most work is still done on IPv4 networks, but the following will establish the same rules for IPv6:
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ cat > /etc/iptables.firewall.rules <<EOF
|
|||||||
-A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
|
-A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 8333 -j ACCEPT
|
-A INPUT -p tcp --dport 8333 -j ACCEPT
|
||||||
-A INPUT -p tcp --dport 18333 -j ACCEPT
|
-A INPUT -p tcp --dport 18333 -j ACCEPT
|
||||||
|
-A INPUT -p tcp --dport 9735 -j ACCEPT
|
||||||
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
||||||
|
|
||||||
# Log iptables denied calls
|
# Log iptables denied calls
|
||||||
|
Loading…
x
Reference in New Issue
Block a user