Enter openvpn private key password in a bash script
If you mean the sudo password you can try
sudo sh -c 'ip netns exec frootvpn openvpn --config /etc/openvpn/frootvpn.conf &'
For the openvpn password you could try asking it to read it from a fifo.
You would then echo your password into the fifo. I havent tried this.
mkfifo ~/myfifo
sudo sh -c 'ip ... openvpn --askpass ~/myfifo ... &'
Then interactively, if you dont want your password echoed:
$ stty -echo; cat >~/myfifo; stty echo
type your password
type control-D for eof
SOLVED Forbidden 403: access private web site from and to openvpn network (client use public ip instead openvpn ip)
Solved!
https://serverfault.com/questions/858657/openvpn-and-website-on-the-same-server-ip
This is a routing problem.
In order to establish and maintain a connection to your VPN, your VPN client must have a route route to the address you are using on the server for incoming VPN connections. Assuming standard routing, this means anything destined for the same IP used VPN server will directly cross the Internet.
Options.
The short basic answer is get and use separate IP address for your VPN server. Don't use the same IP you use for your VPN for anything else.
Setup some a DNS server on your VPN host and and deliver records for the hosted sites map to internal IP addresses when you are connected.
If you are running Linux as your client then you could mess around with policy routing and multiple tables, and send only 1194 traffic through the standard table, and port http/https traffic over the VPN.
Can't ssh to tryhackme server
You need to use the ip given when you deploy the machine.then ssh to the server and be sure to connect to tryhackme openvpn.and i suggest this rrom if you are a beginner :https://tryhackme.com/room/linux2
Related Topics
200,000 Images in Single Folder in Linux, Performance Issue or Not
Creating a Raw Printer Queue in Cups (Host) and Adding Them Through Cups (Client)
Arm Linux Atags VS Device Tree
Copy a Directory Structure with File Names Without Content
Compressing the Core Files During Core Generation
How to Use Watir to Scrape Data from a Website on a Linux Server Without Monitor
Configuring Selinux Permissions on (Svs-V) Ipc Semaphores
Apache Pig: Load a File That Shows Fine Using Hadoop Fs -Text
How to Speed Up Compilation Time in Linux
Redirecting Man Page Output to File Results in Double Letters in Words
How to Programmatically Set a Permanent Environment Variable in Linux
Change System Date Time in Docker Containers Without Impacting Host
How to Get Ec2 Load Balancing Properly Set Up to Allow for Real Time File Syncing
What Happens When a Signal Is Received While Already in a Signal Handler
Linux Assembly: How to Call Syscall
What Do the Characters in the Bash Environment Variable $- Mean