Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Connect to different VPN server behind router simutanuously
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Sun Jan 15, 2006 6:53 am    Post subject: Connect to different VPN server behind router simutanuously Reply with quote

Hi everyone,

It is possible for two workstation behind a router (with one Internet IP) to connect to two different VPN server at the same port number at the same time?

Any suggestion or workaround are welcome, thank you.
_________________
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Sun Jan 15, 2006 8:08 am    Post subject: Reply with quote

Depends on your VPN.
OpenVPN is absolutely no problem. PPTP works too, as far as I know (at least with a recent kernel/iptables). IPsec could give you a headache as it's difficult to NAT by desgin. But in theory it can work. Never tried myself, though.


Alex!!!
_________________
ALT-F4
Back to top
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Sun Jan 15, 2006 4:58 pm    Post subject: Reply with quote

tuxmin wrote:
Depends on your VPN.
OpenVPN is absolutely no problem. PPTP works too, as far as I know (at least with a recent kernel/iptables). IPsec could give you a headache as it's difficult to NAT by desgin. But in theory it can work. Never tried myself, though.


Alex!!!


Could you elabourate on what I have to do in order to connect to the servers simultaneously? For example, how do I forward the ports in the router setup? And how should the workstations (behind the router) be configurated?
_________________
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Sun Jan 15, 2006 5:22 pm    Post subject: Reply with quote

There's nothing to do. The connection tracking of iptables does all the work for you (at least for OpenVPN and PPTP).
_________________
ALT-F4
Back to top
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Wed Jan 18, 2006 12:04 am    Post subject: Reply with quote

I think you have misunderstood me. I don't have any VPN servers. I am only trying to connect to a VPN server on some company. However, VPN requires port forwarding on the router unless I have mistaken. Thus, the problem is how can I forward the same port number to two different workstation behind the router (according to the VPN connection)?
_________________
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Back to top
View user's profile Send private message
tuxmin
l33t
l33t


Joined: 24 Apr 2004
Posts: 838
Location: Heidelberg

PostPosted: Wed Jan 18, 2006 7:06 am    Post subject: Reply with quote

Port forwarding is only necessary when *you* run a server. As you have only clients your router does the work for you... if this router isn't a Linux machine and PPTP and especially IPsec don't work I'm afraid your lost
_________________
ALT-F4
Back to top
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Thu Jan 19, 2006 12:07 am    Post subject: Reply with quote

tuxmin wrote:
Port forwarding is only necessary when *you* run a server. As you have only clients your router does the work for you... if this router isn't a Linux machine and PPTP and especially IPsec don't work I'm afraid your lost


I see. Thank you for your information. However, what kernel option do I need in order for the router to work? Is there any other special iptable rules that I need to define in order for VPN to work behind the router. The vpn clients, however, are mostly Windows machine.
_________________
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum