Commit db74f7
2025-02-11 11:37:58 Samuli Seppänen: -/-| /dev/null .. FAQ/313-how-can-i-connect-windows-xp-to-a-linux-based-samba-server-using-routing-rather-than-bridging.md | |
| @@ 0,0 1,63 @@ | |
| + | # 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 address |
| + | user nobody |
| + | group nogroup |
| + | secret /etc/openvpn/key |
| + | tun-mtu 1500 |
| + | daemon |
| + | ``` |
| + | |
| + | open port 12345 on the firewall on server (gateway) |
| + | |
| + | on windows xp: |
| + | |
| + | 1. Go to windows network panel. |
| + | 1. Set the windows tap-device from application control to always connected. |
| + | 1. Set the ip address to 192.168.5.5 netmask 255.255.255.252. |
| + | 1. 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 server ip address |
| + | secret C:\programme\openvpn\config\key |
| + | tun-mtu 1500 |
| + | ping 30 |
| + | ``` |
| + | |
| + | create a batch file: |
| + | |
| + | ``` |
| + | 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 |
