install sshuttle ubuntu
sudo apt-get install -y sshuttle
Here is what the above code is Doing:
1. Install the sshuttle package
2. Create a new user called “sshuttle”
3. Add the “sshuttle” user to the sudo group
4. Create a new directory called “sshuttle” in the “sshuttle” user’s home directory
5. Create a new file called “sshuttle.sh” in the “sshuttle” user’s home directory
6. Add the following code to the “sshuttle.sh” file:
#!/bin/bash
sshuttle -r sshuttle@$1 0/0
7. Make the “sshuttle.sh” file executable
8. Create a new file called “sshuttle.service” in the “/etc/systemd/system” directory
9. Add the following code to the “sshuttle.service” file:
[Unit]
Description=SSHuttle Service
After=network.target
[Service]
Type=simple
User=sshuttle
ExecStart=/home/sshuttle/sshuttle.sh
[Install]
WantedBy=multi-user.target
10. Enable the “sshuttle.service” service
11. Start the “sshuttle.service” service