Tinc on Windows
Russell Horn
tinc at albanach.com
Thu Jan 13 22:49:08 CET 2005
Hi folks.
At the moment I'm using tinc to connect to linux boxes, both of which
are behind NAT.
This works just fine. I'd now like to connect some roaming windows users
to the network so they can browse a samba share like I can already do
with linux. These folk will likely have dynamic IP addresses.
The server has an IP of 10.0.0.2
My client has an IP of 192.168.1.100
Here's what I have at the moment. This all makes sense when I know what
the client IP will be, but I don't know what to do when I'm connecting
with a Windows client that has an unknown IP address. Will this even
work with my server config?
Any help would be really appreciated.
Russell.
Server:
tinc.conf
Device=/dev/net/tun
Name=server
PrivateKeyFile=/etc/tinc/twwh/rsa_key.priv
TCPOnly=yes
tinc-up
#!/bin/sh
ifconfig $INTERFACE 10.0.0.2 netmask 255.255.255.0
route add -host 192.168.1.100 dev $INTERFACE
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.100
Client:
tinc.conf
ConnectTo=server
Device=/dev/net/tun
Name=client
PrivateKeyFile=/etc/tinc/twwh/rsa_key.priv
TCPOnly=yes
tinc-up
ifconfig $INTERFACE 192.168.1.100 netmask 255.255.255.0
route add -host 10.0.0.2 dev $INTERFACE
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.2
/hosts/server
Compression=9
Subnet=10.0.0.0/24
Address=xxx.xxx.212.173
/hosts/client
Compression=9
Subnet=192.168.1.0/24
Address=xxx.xxx.167.12
More information about the tinc
mailing list