Pass Private Key Password to Openvpn Command Directly in Ubuntu 10.10

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



Leave a reply



Submit