[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] How can I connect Windows XP to a Linux-based Samba server using routing rather than bridging? Version 2.0 ?


  • Subject: [Openvpn-users] How can I connect Windows XP to a Linux-based Samba server using routing rather than bridging? Version 2.0 ?
  • From: gc@xxxxxxxxxxxxx
  • Date: Wed, 6 Jul 2005 16:00:52 -0300


Hi all,

I have two question about this subject:

1- With Openvpn 2.0, need I to change something in these help (http://openvpn.net/faq.html#bridge1) ?

2- The example of FAQ is based in fact that you have one computer logged at time, but what I need to do to one or more computers connect at same time in the same openvpn port (1194 default) ?



"
How can I connect Windows XP to a Linux-based Samba server using routing rather than bridging?


internal net: 192.168.1.0/24
samba server: 192.168.1.5
gateway 192.168.1.1
windows xp: dialup networking

server config on linux gateway:

dev tun0
ifconfig 192.168.5.6 192.168.5.5  <-- openvpn-net
port 12345
verb 1
local 123.123.123.12 <-- official server ip adress
user nobody
group nogroup
secret /etc/openvpn/key
tun-mtu 1500
daemon

open port 12345 on the firewall on server (gateway)

on windows xp:

Go to windows network panel.
Set the windows tap-device from application control to always connected.
Set the ipadress to 192.168.5.5 netmask 255.255.255.252.
Leave DNS and gateway empty.

openvpn config on Windows XP:

dev tun0
ifconfig 192.168.5.5 192.168.5.6  <-- openvpn-net
port 12345
ip-win32 manual
verb 1
remote 123.123.123.12 <-- official serveripadress
secret C:\programme\openvpn\config\key
tun-mtu 1500
ping 30

create a batchfile:

route add 192.168.1.0 mask 255.255.255.0 192.168.5.6
ping 192.168.1.5
net use g: \\192.168.1.5\Daten /USER:user1  <-- your account on samba!!

After connecting to the internet, start the batch file
and enter the password for samba.

Viola, now you have the service Daten on drive g:.

Now you can set the service openvpn to start automatically
and only start the batch file
after internet connection.

Richard Lechner

"


Atenciosamente,
Guilherme Cantisano
GPS Tecnologia Ltda.
Av. Pres. Vargas, 509 - 7o. andar - Rio de Janeiro - RJ -20071-003
Tel: +55-21-3221-9300 - Fax: +55-21-3221-9324
<mailto:gc@xxxxxxxxxxxxx> - <http://www.gpstec.com.br>