LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Vpn under Linux? (https://www.linuxquestions.org/questions/linux-security-4/vpn-under-linux-776162/)

h725 12-16-2009 01:12 PM

Vpn under Linux?
 
Hi,

in my home network I've a D-Link DSL router and few workstation/server.
My private address is classic 192.168.1.0/24
The Dlink router doesn't manage vpn.
My goal is to connect from outside, having an ip address like 192.168.1.*

How can I obtain this?
Thank you

bret381 12-16-2009 01:56 PM

you won't be able to connect directly using the 192.x.x.x ip. You will have to use the IP assigned to you by your ISP then forward the vpn port to your local ip. You can use something like dyndns to setup a domain name to help make it a little easier.

Web31337 12-16-2009 07:57 PM

if your net (192.168.1.x) is connected to internet, and if router support port forward, you may use that feature. in addition to this you may use SSH tunneling instead of configuring of VPN. or: probably(i never did that with merging openvpn subnet with the real one, but i suspect it is possible if you put your nic into PROMISC mode) you can use OpenVPN if you need encrypted channel into your entire LAN.

h725 12-17-2009 05:37 PM

Quote:

Originally Posted by bret381 (Post 3794141)
you won't be able to connect directly using the 192.x.x.x ip. You will have to use the IP assigned to you by your ISP then forward the vpn port to your local ip. You can use something like dyndns to setup a domain name to help make it a little easier.

Yes I know.. but I need to reach all my private network from outside, not only one computer.
So, openvpn isn't my solution.

bret381 12-17-2009 08:26 PM

openvpn is great for this. you will just have to forward your assigned IP to your local IP on whatever port you run your vpn server on. (if your router supports port forwarding)

Elv13 12-17-2009 08:47 PM

OpenSSH port forwarding work fine for me, I can connect to my virtual machines, use sshfs to mount my drives and ssh -Y to open applications remotly

rupertwh 12-17-2009 08:59 PM

Quote:

Originally Posted by h725 (Post 3795984)
Yes I know.. but I need to reach all my private network from outside, not only one computer.
So, openvpn isn't my solution.

Huh? OpenVPN will let you do exactly that.

jag2000 12-22-2009 09:11 PM

you can also try hamachi vpn as well its free.


All times are GMT -5. The time now is 01:45 AM.