Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpforms-lite domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the businext domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the businext domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114
Ubuntu Linux OpenVPN Kolay Kurulum - RAGIP ÜNAL

Blog

Ubuntu Linux OpenVPN Kolay Kurulum

Öncelikle kullanacağımız linux sunucu OpenVZ sanallaştırma ise TUN/TAP enable olmasına dikkat edelim. Eğer KVM türü bir sanallaştırma ise bu ayara gerek yoktur. Akabinde aşağıdaki adımları takip etmek yeterli olacaktır.

wget https://raw.githubusercontent.com/Angristan/OpenVPN-install/master/openvpn-install.sh
chmod +x openvpn-install.sh

dedikten sonra aşağıdaki komut ile ilk kurulumu başlatıyoruz.

./openvpn-install.sh

detayları https://github.com/Angristan/OpenVPN-install adresinden inceleyebilirsiniz.
İşlem bittikten sonra makinemiz reboot olduğunda vpn e bağlanıpta internete gezinememe problemini yaşamamak için kurulumun hemen akabinde aşağıdaki adımları gerçekleştirmemiz lazım.

sudo su
iptables-save > /etc/iptables.rules
nano /etc/network/if-pre-up.d/iptables

#!/bin/sh
iptables-restore < /etc/iptables.rules
exit 0

yazıp kaydediyoruz. Sonrasında,

nano /etc/network/if-post-down.d/iptables

#!/bin/sh
iptables-save -c > /etc/iptables.rules
if [ -f /etc/iptables.rules ]; then
iptables-restore < /etc/iptables.rules
fi
exit 0

yazıp gene kaydediyoruz. Sonrasında ise aşağıdaki izinleri veriyoruz.

sudo chmod +x /etc/network/if-post-down.d/iptables
sudo chmod +x /etc/network/if-pre-up.d/iptables

İşlemimiz başarılı bir şekilde tamamlanmıştır. Sunucumuzu reboot etsekte vpn e bağlandığımızda problemsiz bir şekilde internette gezinebilrisiniz.

Leave A Comment

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir