LinuxQuestions.org
Help answer threads with 0 replies.
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 07-10-2005, 11:14 PM   #1
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Rep: Reputation: 30
VPN Software


Me and a friend use this to play games with each other on Windows XP. It lets us use the "LAN" button in games to play each other. Windows XP has this built-in. Is there anything that can do this for Linux?
 
Old 07-11-2005, 03:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
not really sure what functionality you want to providfe, but there are plenty of VPN packages, like freeswan. Maybe all you really need is a port forwarder over ssh though...
 
Old 07-11-2005, 09:45 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
In those network games there are designated ports the games look for the server on. If you want to do this in linux you must be sure the ports are not firewalled.

If you are not on the same network, such as over the internet and you want to use the lan game connection then you will need a vpn type connection to forward the port through.


Please explain what you are doing in more detail.

Last edited by DavidPhillips; 07-11-2005 at 09:50 PM.
 
Old 07-12-2005, 02:06 AM   #4
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
Quote:
If you are not on the same network, such as over the internet and you want to use the lan game connection then you will need a vpn type connection to forward the port through.
That's what I want to do and I've already done it in Windows XP. I just need to know how to do it in Linux. In Windows, I went to Network Connections, clicked set up advanced connection, then clicked allow incomming connections or something like that. Basically I made my computer a VPN server and my friend made his a VPN client and we connected to each other. Windows just had this built-in.
 
Old 07-12-2005, 03:44 AM   #5
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
So you want to know how to set-up a VPN in Linux yes? You could try OpenVPN.
 
Old 07-12-2005, 12:19 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
For this i would NOT recommend using a fill VPN setup. if you want to make your linux box the server, then you need do nothing but run a standard SSH server on it. then get your windows people to use something like puTTY to ssh into your machine (securely) and then forward their local port to yours. then they just say connect to "localhost:1234" or whatever and that port will be magically opened on the server side. it's stupidly easy and doesn't need a VPN at all.
 
Old 07-14-2005, 10:25 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The other option would be stunnel which is automated at startup. The service can runn all the time. When a local connection to the port is attempted the secure connection is made automatically.


So this connection sounds like you are entering the ip address of the server in the game. This is not a vpn tunnel, it's just opening your firewall on that port.


Maybe this will explain it.


VPN example


pc1 game connects to a port that is redirected to port 5000

the tunnel is from pc1 to pc2 over any network using port 5000

pc2 game connects to a port that is redirected to port 5000.



If you are putting the server pc's ip address in the game here is what your doing.


pc1 game connects to pc2 on the server port. Traffic returns to the client on an assigned port.

the incoming server port must be open in the firewall.

Last edited by DavidPhillips; 07-14-2005 at 10:27 PM.
 
Old 07-15-2005, 12:50 AM   #8
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
Yea but the thing is I'm not typing in IP adresses. With the "LAN" setting it just searches the local network. VPN is the only thing i've found that works.
 
Old 07-15-2005, 05:34 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You could monitor the traffic to see the ports used and setup stunnel.


Or use OpenVPN or Freeswan.
 
Old 07-15-2005, 01:05 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by AFI_Flame
Yea but the thing is I'm not typing in IP adresses. With the "LAN" setting it just searches the local network. VPN is the only thing i've found that works.
you have to use an IP somewhere to know where the other machine is, but once the tunnel is up, the "LAN" setting should find your own machine to be the server (as the remote port will be forwarded to your own machine.
 
Old 07-15-2005, 09:10 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
As an example here is how I have my email setup.


email server listens on port 25


We crank up an stunnel server.

/usr/sbin/stunnel -d465 -v3 -rlocalhost:25


now there is a secure tunnel listening on port 465 which will accept connections from the stunnel service on the other machine which has a matching certificate. The connection will be routed to port 25 locally. Therefore it is the same as being on the machine locally.


Now the stunnel client is configured to connect to the stunnel server..

/etc/stunnel/stunnel.conf

client = yes

cert = /usr/share/ssl/private/myserver.pem

[smtps]
accept = localhost:25
connect = myserver.com:465



So when the client connects to port 25 locally it is actually connecting to port 25 locally on the other machine.


You just need to decide on an available port(s) for the tunnel and setup the correct game server port to be forwarded by stunnel.

Last edited by DavidPhillips; 07-15-2005 at 09:11 PM.
 
Old 07-15-2005, 09:29 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Here is another example of how I print to my printer at home.

Server..
# smb share
stunnel -d5000 -rlocalhost:139 -v3



client..
/etc/stunnel/stunnel.conf

client = yes

cert = /usr/share/ssl/private/myserver.pem

[smbs]
accept = localhost:139
connect = myserver.com:5000



the stunnel.conf file on the client can have numerous entries, so it actually looks like this..


client = yes

cert = /usr/share/ssl/private/myserver.pem
[pop3s]
accept = localhost:110
connect = myserver.com:995
[imaps]
accept = localhost:143
delay = yes
connect = myserver.com:993
[smtps]
accept = localhost:25
connect = myserver.com:465
[smbs]
accept = localhost:139
connect = myserver.com:5000
[vncs]
accept = localhost: 5901
connect = myserver.com: 5001

Last edited by DavidPhillips; 07-15-2005 at 09:33 PM.
 
Old 07-16-2005, 01:09 AM   #13
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Original Poster
Rep: Reputation: 30
That could work but I don't know what ports I need.
 
Old 07-16-2005, 05:36 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'm sure google, or your game manual, will help you out there.
 
  


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
ipsec vpn software watts3000 Linux - Networking 0 06-09-2005 06:21 PM
VPN Software dumbsheep Linux - Software 3 02-18-2005 04:09 PM
AWESOME, and FREE VPN Software zaphanol Linux - Networking 1 07-22-2003 04:52 PM
Free VPN Software. zaphanol Linux - Software 5 07-14-2003 01:33 PM
VPN - what software to use Soma Linux - Software 3 04-10-2003 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration