File: README.Debian

package info (click to toggle)
quicktun 2.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: ansic: 2,098; sh: 185; makefile: 8
file content (39 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
quicktun for Debian
-------------------

Below you can find some sample use case for quicktun.

Scenario:

Host1 behind NAT, not publicly reachable.
Host2 having public reachable address.

Configuration on Host1:

auto tun0
iface tun0 inet static
	address 10.0.0.1 			# local address of Host1
	pointopoint 10.0.0.2 			# this will be "local" address of Host2 
	netmask 255.255.255.255			# self explanatory
	qt_remote_address <some.real.ip>	# put here real address of machine that will act as server
	qt_local_address 0.0.0.0		# you can specify real address of Host1 or just use 0.0.0.0 to bind to whatever
	qt_tun_mode 1				# we're using TUN mode
	qt_protocol nacltai			# and NACLTAI encryption
	qt_private_key bunchofrandomchars 	# SECRET part of keypair output from Host1
	qt_public_key bunchofrandomchars 	# PUBLIC part of keypair output from Host2

Configuration on Host2:

auto tun0
iface tun0 inet static
       address 10.0.0.2				# local address of Host2
       pointopoint 10.0.0.1			# local address of Host1
       netmask 255.255.255.255			# self explanatory
       qt_remote_address 0.0.0.0		# you can specify real address of Host1 but when it's behind the NAT then just use 0.0.0.0
       qt_local_address 185.115.155.253		# local public address of Host2
       qt_tun_mode 1				# we're using TUN mode
       qt_protocol nacltai			# and NACLTAI encryption
       qt_private_key bunchofrandomchars	# SECRET part of keypair output from Host2
       qt_public_key bunchofrandomchars		# PUBLIC part of keypair output from Host1

After launching such configuration you should be able to reach Host1 from Host2 by connecting to 10.0.0.1.