Changes between Initial Version and Version 1 of 313-how-can-i-connect-windows-xp-to-a-linux-based-samba-server-using-routing-rather-than-bridging


Ignore:
Timestamp:
01/30/14 16:16:18 (10 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 313-how-can-i-connect-windows-xp-to-a-linux-based-samba-server-using-routing-rather-than-bridging

    v1 v1  
     1= How can I connect Windows XP to a Linux-based Samba server using routing rather than bridging? =
     2
     3{{{
     4#!html
     5<pre>internal net: 192.168.1.0/24<br />samba server: 192.168.1.5<br />gateway 192.168.1.1<br />windows xp: dialup networking<br /><br />server  config on linux gateway:<br /><br />dev tun0<br />ifconfig 192.168.5.6 192.168.5.5  &lt;-- openvpn-net<br />port 12345<br />verb 1<br />local  123.123.123.12 &lt;-- official server ip adress<br />user nobody<br />group nogroup<br />secret /etc/openvpn/key<br />tun-mtu 1500<br />daemon<br /> <br />open port 12345 on the firewall on server (gateway)<br /><br />on windows xp:<br /><br />Go to windows network panel.<br />Set the windows  tap-device from application control to always connected.<br />Set the ipadress to 192.168.5.5 netmask 255.255.255.252.<br />Leave DNS and gateway  empty.<br /><br />openvpn config on Windows XP:<br /><br />dev tun0<br />ifconfig 192.168.5.5 192.168.5.6  &lt;-- openvpn-net<br />port 12345<br /> ip-win32 manual<br />verb 1<br />remote 123.123.123.12 &lt;-- official serveripadress<br />secret C:\programme\openvpn\config\key<br />tun-mtu  1500<br />ping 30<br /><br />create a batchfile: <br /><br />route add 192.168.1.0 mask 255.255.255.0 192.168.5.6<br />ping 192.168.1.5<br />net use  g: \\192.168.1.5\Daten /USER:user1  &lt;-- your account on samba!!<br /><br />After connecting to the internet, start the batch file<br />and enter  the password for samba.<br /><br />Viola, now you have the service Daten on drive g:.<br /><br />Now you can set the service openvpn to start  automatically<br />and only start the batch file <br />after internet connection.<br /><br />Richard Lechner</pre>
     6}}}
     7
     8[wiki:FAQ Return to FAQ]