Click on "Launch Instance" and choose the desired Ubuntu instance.
Follow the prompts to configure the instance and launch it.
Step 2: Connect to your AWS Ubuntu instance
Once the instance is running, select it and click on "Connect".
Follow the instructions to connect to your instance via SSH.
Step 3: Update your system
Run the following command to update your Ubuntu system:
sudo apt update && sudo apt upgrade
Step 4: Install the SOCKS5 server software (Dante)
Run the following command to install the Dante server:
sudo apt install dante-server
Step 5: Configure the Dante server
Open the configuration file using your preferred text editor:
sudo nano /etc/danted.conf
Edit the configuration file as follows:
Uncomment the "internal" line and provide your instance's IP address.
Uncomment the "external" line and provide your instance's public IP address.
Specify the port on which you want the SOCKS5 server to listen.
Customize other options as needed.
Save and exit the file (Ctrl+X, Y, Enter).
Step 6: Allow access to the SOCKS5 server
Open the following file for editing:
sudo nano /etc/sockd.conf
Find the # Allow access to the server section and update it as follows:
Add the IP range you want to allow access from (e.g., client pass { from: 0.0.0.0/0 to: 0.0.0.0/0 }).
Save and exit the file (Ctrl+X, Y, Enter).
Step 7: Start the Dante server
Run the following command to start the Dante server:
sudo systemctl start danted
Enable the server to start on system boot:
sudo systemctl enable danted
Step 8: Verify the SOCKS5 server is running
Run the following command to check the status of the Dante server:
sudo systemctl status danted
If the server is running, you should see a "Active (running)" status.
Step 9: Testing the SOCKS5 server
Configure your web browser or any application to use the SOCKS5 server with the IP address and port you specified.
That's it! You have successfully set up a SOCKS5 server on AWS Ubuntu. Remember to secure your server by implementing appropriate security measures, such as using strong passwords and restricting access as needed.