OPENVPN install using tutorial: every step is war for newbie - need advices
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
1) ln -s /etc/openvpn/easy-rsa/keys /etc/openvpn/keys
When I'm trying to create this link it's nothing going on. It's not appearing at /etc/openvpn/
And /etc/openvpn/easy-rsa/keys is empty too. Does this command just creating a shortcut to the folder? If so may I make it manually as a shortcut. If not - what's my mistake?
2) cd easy-rsa
. ./vars
./clean-all
./build-ca
./build-key-server server
./build-dh
When I cd to easy-rsa it goes fine but what this mean?
Are this lines commands or output? Just don't understand.
. ./vars
./clean-all
./build-ca
./build-key-server server
./build-dh
3) openvpn --genkey --secret tls.key
./build-key client1
Again (command or line?) - the key seems generated normally but what's that?
I'm totally lost without double mouse click and color interface
both are available on linux systems.
a link to the tutorial in question would help.
and, more importantly, YOU have to get some clarity:
- what are the steps
- where are you stuck...
if you want US to be able to help.
btw, you wouldn't be the first person who rebooted their computer because they couldn't get out of vi.
and vi is just a text editor.
most probably you can use nano instead.
and, more importantly, YOU have to get some clarity:
- what are the steps
- where are you stuck...
if you want US to be able to help.
btw, you wouldn't be the first person who rebooted their computer because they couldn't get out of vi.
and vi is just a text editor.
most probably you can use nano instead.
I see.
The part where I'm stuck - the bold part:
Quote:
apt-get install openvpn easy-rsa unzip zip -y
apt-get update
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1 - This command is input in vi after down line cursor
sysctl -p
cd /etc/openvpn
unzip s2s.zip
vi /etc/openvpn/s2s.conf
dev tun0
remote 192.xxx.xxx.xxx
...
I hope just to get some clarity with vi first. Thanks for your attention.
Last edited by msdosslave; 06-17-2016 at 03:00 AM.
You see the difference? 3rd line lost
I just cant left # on 3rd line and create emty 4th one to paste net.ipv4.ip_forward = 1
Also net. disappearing when I'm trying to paste it from buffer.
Where is my mistake?
UPD. I moved forward with this via ftp. Just opened /etc/sysctl.conf to add last line. As I see it's the same just different ways. But the question is still opened - how to add last line to a document via vim(I realized what I need just now )
Last edited by msdosslave; 06-17-2016 at 12:06 PM.
Actually you shouldn't use :wq! ... :wq is write and exit, :q! is exit without save ... if I recall correctly, that is. Still haven't taken that refresher.
Yeah, I should listen to ondoho)
Nano is pure revelation. It's just made exactly what I need. vi is fiasco, however I can do this action in two different ways now without vi. I believe I may come back to vi later.
I'm still on my way, and very soon I'll be here with new headache. Hope you'll be here) Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.