Hi all,
I am studying OpenVpn and want first to set up a simple architecture.
I have 2 machines linux on the same network :
- client : 192.168.50.150
- server : 192.168.50.75
I am accessing to server from the client machine using ssh. I want first to establish a connection without certficate. I took so mini how to example :
http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html
Notice also that both machines must be reachable from others machines.
On server, I made :
dev tun
ifconfig 192.168.50.75 192.168.50.150
secret static.key
On client:
remote 192.168.50.75
dev tun
ifconfig 192.168.50.150 192.168.50.75
secret static.key
I can launch it on server, but do not have access anymore with ssh... 😉
On client, it does not work because of ifconfig.
I think that I am totally wrong :
- I guess I could only ssh server with my vpn connection, right ?
- shall I use different interface for my VPN, or different IP address ?
- I do not get how "ifconfig 192.168.50.150 192.168.50.75" works. Could you give me ressources on it ?
Sorry for those (stupid...) questions and thanks for your help.
Eloi