-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from EpicsDAO/solv
Update Logrotate, RPC NODE firewall
- Loading branch information
Showing
10 changed files
with
731 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
'@epics-dao/solv': patch | ||
--- | ||
|
||
Update Logrotate, RPC NODE firewall | ||
|
||
## Update Logrotation | ||
|
||
Recently, we have updated the logrotate configuration for Solana Validator. | ||
To apply the changes, you need to run the following command. | ||
(We recommend running this command if you are attending to TDS with Edgevana Server.) | ||
|
||
```bash | ||
$ solv update --logrotate | ||
``` | ||
|
||
## Update RPC NODE Firewall | ||
|
||
We have noticed that some users are facing issues with the RPC Node's performance. | ||
We have updated the firewall configuration to improve the RPC Node's to prevent the DDoS attack. | ||
Thank you @cryptoo_bear San for reporting the issue to us. | ||
New solv setup command will ask you to enter your IP address to allow access to RPC NODE. | ||
But you can also run the following command to update the firewall configuration. | ||
|
||
```bash | ||
$ solv update --firewall | ||
? Enter your IP address to allow access to RPC NODE: (0.0.0.0) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { execAsync } from '@skeet-framework/utils' | ||
import chalk from 'chalk' | ||
import inquirer from 'inquirer' | ||
|
||
export const updateFirewall = async () => { | ||
const answer = await inquirer.prompt<{ ip: string }>([ | ||
{ | ||
name: 'ip', | ||
type: 'input', | ||
message: 'Enter your IP address to allow access to RPC NODE:', | ||
default: '0.0.0.0', | ||
}, | ||
]) | ||
await execAsync(`sudo ufw delete allow 8899/udp`) | ||
await execAsync(`sudo ufw delete allow 8899/tcp`) | ||
await execAsync(`sudo ufw allow from ${answer.ip} to any port 8899 proto tcp`) | ||
await execAsync(`sudo ufw allow from ${answer.ip} to any port 8899 proto udp`) | ||
await execAsync(`sudo ufw reload`) | ||
console.log(chalk.white('✔️ Firewall updated!')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.