Browsed by
Category: Linux

OpenVPN in 5 minutes! (Linux)

OpenVPN in 5 minutes! (Linux)

PROBLEM: I have Ubuntu machine and I would like to use it as a VPN server. SOLUTION: Easy 5 minutes setup! [?] What is VPN? https://thebestvpn.com/what-is-vpn-beginners-guide/ 1.0 Find your IP (it has to be public), in my case it is (example) 1.2.3.4.

Output:

2.0 Download openvpn-install.sh script

2.1 Runs the script!

Use IP address you discovered in step 1, use port 1194 (standart OpenVPN port). Pick your favourite DNS service and put name of the first…

Read More Read More

List active connections on OpenVPN (Linux)

List active connections on OpenVPN (Linux)

PROBLEM: I would like to check all active connections to my VPN server. SOLUTION: Simple one line command CAT just simply shows what is inside the status log with current connections and IP addresses.

OUTPUT (1.2.3.4 is a host address with port used)

Restrict SSH access from specific IP /e.g. VPN/ (Linux)

Restrict SSH access from specific IP /e.g. VPN/ (Linux)

PROBLEM: Everyone can test SSH access on my server SOLUTION: Use ufw to allow connection only from specified network Just use simple ufw command, where 10.5.0.0/24 is your e.g. VPN network (or you can use your public IP) and port number is desired port for SSH (can be adjusted in /etc/ssh/sshd_config).