Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 WLANs, VPN routing? Is it possible?

Reply
Thread Tools Display Modes

2 WLANs, VPN routing? Is it possible?

 
 
Martin Schaffoener
Guest
Posts: n/a

 
      04-22-2004, 11:42 AM
Hi there,

I would like to do the following: From the hallway of my girlfriend's
appartment it is possible to catch the WLAN of her university's library,
for which she has a login. The WLAN is secured by a VPN. From her living
room we can't "hear" the WLAN anymore. So I would like to setup a computer
with two WLAN interfaces, one "connected" to the university, the other one
for the appartment (actually most likely a regular NIC and an AP), so that
my girlfriend and her flatmate can both use the university's WLAN internet
access. I would like to use this setupee two possibilities:

Terminate the VPN on the extra box, such as this:


WLAN w/o VPN Univ. WLAN w/ VPN
Notebook1 <------------> router box <-----------------> univ.
|
Notebook2 <------------------

This would involve appartment-local IP-addresses and NAT on the router. Is
it possible to tunnel the traffic of the two masqueraded notebooks through
the same VPN tunnel? And if, how does one go about it? Better yet, would it
be possible to only use the tunnel for http/imap/pop requests, and to not
tunnel other requests such as SMB/NFS/etc.?

TIA for your answers,
Martin Schaffoener


 
Reply With Quote
 
 
 
 
Alex Harsch
Guest
Posts: n/a

 
      04-22-2004, 04:51 PM
Martin Schaffoener wrote:

> Hi there,
>
> I would like to do the following: From the hallway of my girlfriend's
> appartment it is possible to catch the WLAN of her university's library,
> for which she has a login. The WLAN is secured by a VPN. From her living
> room we can't "hear" the WLAN anymore. So I would like to setup a computer
> with two WLAN interfaces, one "connected" to the university, the other one
> for the appartment (actually most likely a regular NIC and an AP), so that
> my girlfriend and her flatmate can both use the university's WLAN internet
> access. I would like to use this setupee two possibilities:
>
> Terminate the VPN on the extra box, such as this:
>
>
> WLAN w/o VPN Univ. WLAN w/ VPN
> Notebook1 <------------> router box <-----------------> univ.
> |
> Notebook2 <------------------
>
> This would involve appartment-local IP-addresses and NAT on the router. Is
> it possible to tunnel the traffic of the two masqueraded notebooks through
> the same VPN tunnel? And if, how does one go about it? Better yet, would
> it be possible to only use the tunnel for http/imap/pop requests, and to
> not tunnel other requests such as SMB/NFS/etc.?
>
> TIA for your answers,
> Martin Schaffoener

Hi,

this should not make too many difficulties. Set up the VPN on the Router
Linux box to the University as you did with your Notebook. This will give
you a extra interface (lets call it cisco_vpn). Then set up a VPN from your
Notebook to the Linux box. Cipe is very easy to configure, and has little
overhead. This will give you an extra interface on both machines (lets call
them cipcb0 on both machines). Then on the notebook, you have to make the
VPN a gateway to the net of the university:
route add -net 192.168.xxx.xxx netmask 255.255.255.0 gw cipcb0
Then make the router routing able:
echo "1">/proc/sys/net/ipv4/ip_forward
Then add the rule
iptables -A FORWARD -i cipcb0 -o cisco_vpn -j ACCEPT
There you go! Then set up the firewall for the router.

Regards, Alex
 
Reply With Quote
 
Martin Schaffoener
Guest
Posts: n/a

 
      04-23-2004, 08:42 AM
Alex Harsch wrote:

> Hi,
>
> this should not make too many difficulties. Set up the VPN on the Router
> Linux box to the University as you did with your Notebook. This will give
> you a extra interface (lets call it cisco_vpn). Then set up a VPN from
> your Notebook to the Linux box. Cipe is very easy to configure, and has
> little overhead. This will give you an extra interface on both machines
> (lets call them cipcb0 on both machines). Then on the notebook, you have
> to make the VPN a gateway to the net of the university:
> route add -net 192.168.xxx.xxx netmask 255.255.255.0 gw cipcb0
> Then make the router routing able:
> echo "1">/proc/sys/net/ipv4/ip_forward
> Then add the rule
> iptables -A FORWARD -i cipcb0 -o cisco_vpn -j ACCEPT
> There you go! Then set up the firewall for the router.


Thanks a lot, I will try that. Even though I would not do that, my
girlfriend insists on keeping Windows XP on her notebook. I am not sure if
the Cisco VPN client creates an extra interface on Windows. How would one
go about that?

Regards,
Martin Schaffoener

 
Reply With Quote
 
Alex Harsch
Guest
Posts: n/a

 
      04-23-2004, 09:40 AM
Martin Schaffoener wrote:

> Alex Harsch wrote:
>
>> Hi,
>>
>> this should not make too many difficulties. Set up the VPN on the Router
>> Linux box to the University as you did with your Notebook. This will give
>> you a extra interface (lets call it cisco_vpn). Then set up a VPN from
>> your Notebook to the Linux box. Cipe is very easy to configure, and has
>> little overhead. This will give you an extra interface on both machines
>> (lets call them cipcb0 on both machines). Then on the notebook, you have
>> to make the VPN a gateway to the net of the university:
>> route add -net 192.168.xxx.xxx netmask 255.255.255.0 gw cipcb0
>> Then make the router routing able:
>> echo "1">/proc/sys/net/ipv4/ip_forward
>> Then add the rule
>> iptables -A FORWARD -i cipcb0 -o cisco_vpn -j ACCEPT
>> There you go! Then set up the firewall for the router.

>
> Thanks a lot, I will try that. Even though I would not do that, my
> girlfriend insists on keeping Windows XP on her notebook. I am not sure if
> the Cisco VPN client creates an extra interface on Windows. How would one
> go about that?
>
> Regards,
> Martin Schaffoener

Hi,

Cipe is also available for Windows, and works well with Linux. The Windows
route command should work pretty much similar to the LInux one, "route ?"
should tell you the details.

Alex
 
Reply With Quote
 
Alex Harsch
Guest
Posts: n/a

 
      04-23-2004, 09:44 AM
Martin Schaffoener wrote:

> Alex Harsch wrote:
>
>> Hi,
>>
>> this should not make too many difficulties. Set up the VPN on the Router
>> Linux box to the University as you did with your Notebook. This will give
>> you a extra interface (lets call it cisco_vpn). Then set up a VPN from
>> your Notebook to the Linux box. Cipe is very easy to configure, and has
>> little overhead. This will give you an extra interface on both machines
>> (lets call them cipcb0 on both machines). Then on the notebook, you have
>> to make the VPN a gateway to the net of the university:
>> route add -net 192.168.xxx.xxx netmask 255.255.255.0 gw cipcb0
>> Then make the router routing able:
>> echo "1">/proc/sys/net/ipv4/ip_forward
>> Then add the rule
>> iptables -A FORWARD -i cipcb0 -o cisco_vpn -j ACCEPT
>> There you go! Then set up the firewall for the router.

>
> Thanks a lot, I will try that. Even though I would not do that, my
> girlfriend insists on keeping Windows XP on her notebook. I am not sure if
> the Cisco VPN client creates an extra interface on Windows. How would one
> go about that?

In my exaple, the Cisco Interface pointed to the University, and the Cipe
one is used internally. I just picked the Cisco VPN, because many
universities use Cisco and the Cisco VPN.

>
> Regards,
> Martin Schaffoener


 
Reply With Quote
 
Martin Schaffoener
Guest
Posts: n/a

 
      04-23-2004, 09:50 AM
Alex Harsch wrote:

> In my exaple, the Cisco Interface pointed to the University, and the Cipe
> one is used internally. I just picked the Cisco VPN, because many
> universities use Cisco and the Cisco VPN.

Thanks! You are right about the university using Cisco VPN...

Regards,
Martin Schaffoener

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN and WLANs wlaoye Wireless Internet 1 05-01-2007 03:09 AM
Are there any WLANs that work out-of-the-box with Linux? Paul Ciszek Linux Networking 5 01-03-2005 09:17 PM
detect wlans Christian Christmann Linux Networking 1 07-08-2004 09:29 AM
Two overlapping wlans - exclude one of them in the pc's Per Münster Wireless Internet 0 06-09-2004 02:02 PM
Illegal WLANs Rob Wireless Internet 18 10-31-2003 10:09 AM



1 2 3 4 5 6 7 8 9 10 11