LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-19-2006, 01:20 AM   #1
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
Cool OpenVPN


Hi,

I am playing around with OpenVPN, but quickly noticed, that i am not really sure how it is supposed to work.

As far as i have noticed, it seems to emulate a NIC, which i am not sure what it is supposed to be good for.

From what i understand, a VPN connection connects two networks with each other, making them one; users from all computers (given they are in the same subnet, ...) can access all the data on everything.

Am i wrong?

How is it different from an ssh connection with port forwarding, and what is the deal with the emulated NIC?

What i am trying to use it for is to allow me to use my home network from on the road, such as printers, network shares, and other cool stuff

Thanks!!

Last edited by wwnexc; 05-19-2006 at 01:23 AM.
 
Old 05-19-2006, 07:21 AM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: 15
Please read some configuration examples.

ssh port forwarding, works for a particular port. So for all clients sending packet in a port, it will have same behaviour for a particular port.
But openvpn, creates a true tunnel between a client and the server (tun0, etc...). So for each client,
there will be one tunnel interface. And so can handle any no. of ports (basically any kind of traffic).
 
Old 05-19-2006, 08:59 AM   #3
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
I got it to work using the default configuration. I installed openvpn on the client and opened the connection using the "sample" configuration.

- How do I tell the traffic to take the tunnel instead of the LAN card?

Let's say i only use the NIC in the computer to connect to the vpn network, and i do not want to use it for the internet traffic. Is there any way to tell the traffic (port specific (?) ) to take a certain network adapter or tunnel? How would I get all other traffic except the VPN to go over the tunnel?

Last edited by wwnexc; 05-19-2006 at 09:28 AM.
 
Old 05-19-2006, 02:09 PM   #4
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
A router I imagine.
 
Old 05-20-2006, 12:13 AM   #5
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Original Poster
Rep: Reputation: 30
I am not completely sure what you mean by that, Bobymc. Surely i have a "router", or NAT server and switch combined, used to share the internet within a smaller network at home, where the server is supposed to be running.

I am asking how i define what traffic goes to which network interface card. I only want the VPN-connection traffic to go trough the real hardware nic, and the rest of all traffic trough the virtual nic.
 
Old 05-20-2006, 01:55 PM   #6
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
OK' I'm not too deep in LINUX and I dont really get your point.

I'm just telling that I used to have WIN2k run trough LINUX as server dialing the ISP.
This is just a very simple VPN, with only one traffic.

Let say;
I'm the HOST another person is the guests.
You mean every guest must meet me before they can have their party, is that what you want?
OR the guest can have their party through the backdoor without meeting me first?

Would IP-FORWARDING is the right answer, presumably.

I cannot answer if your scope is Wide Area Network/WAN.

Regards.
 
Old 05-20-2006, 02:34 PM   #7
Bobymc
Member
 
Registered: Apr 2006
Location: INDONESIA
Distribution: SLAX,Damn S.L,Suse,Mandrake,Rd HAT62,72,73,90, Mandriva2k6, FEdora, SUNmicrosys.
Posts: 269

Rep: Reputation: 30
Have a peek at this;

http://wiki.linuxquestions.org/wiki/Vnc

would be usefull for supplement.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
openvpn on rh9 wnguza Linux - Software 1 05-05-2006 02:07 AM
OpenVPN Voyager_MP Linux - Networking 0 07-09-2004 04:32 AM
OpenVPN dunmarie Linux - Networking 1 03-31-2004 09:28 AM
OpenVPN dunmarie Linux - Software 1 10-13-2003 12:10 PM


All times are GMT -5. The time now is 12:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration