Tinc over httptunnel

Steve Halasz steve at adkgis.org
Fri Mar 12 19:42:51 CET 2004


Hi,

I'm having some trouble trying to run tinc over GNU httptunnel. On
server A I have:

/etc/tinc/netname/tinc-up:
#!/bin/sh
ifconfig $INTERFACE 10.3.0.1 netmask 255.255.0.0
/usr/bin/hts -F localhost:655 8888

/etc/tinc/netname/hosts/A:
Address = foo.com
Subnet = 10.3.0.0/24
TCPonly = yes

/etc/tinc/netname/hosts/B:
ConnectTo = A
Subnet = 10.4.0.0/24
TCPonly = yes

/etc/tinc/netname/tinc.conf:
Name = A
Device = /dev/net/tun
Hostnames = no
PrivateKeyFile = /etc/tinc/apa/rsa_key.priv

This setup worked fine before the firewall at B started blocking the
port I was using. Now I am trying to get hts to forward port 655 to an
http tunnel over port 8888. On B I have in tinc-up:

/usr/bin/htc -P proxy.uncooperative.corp.com:8080 -F 655 foo.com:8888

on A /var/log/syslog:
Mar 12 13:11:16 A tinc.apa[5985]: tincd 1.0.2 (Nov  8 2003 20:54:15)
starting, debug level 0
Mar 12 13:11:16 A tinc.apa[5985]: /dev/net/tun is a Linux tun/tap device
(tun mode)
Mar 12 13:11:16 A hts[5998]: hts (httptunnel) 3.3 started with
arguments:
Mar 12 13:11:16 A hts[5998]:   me = /usr/bin/hts
Mar 12 13:11:16 A hts[5998]:   device = (null)
Mar 12 13:11:16 A hts[5998]:   port = 8888
Mar 12 13:11:16 A hts[5998]:   forward_port = 655
Mar 12 13:11:16 A hts[5998]:   forward_host = localhost
Mar 12 13:11:16 A hts[5998]:   content_length = 102400
Mar 12 13:11:16 A hts[5998]:   strict_content_length = 0
Mar 12 13:11:16 A hts[5998]:   use_std = 0
Mar 12 13:11:16 A hts[5998]:   debug_level = 0
Mar 12 13:11:16 A hts[5998]:   pid_filename = (null)
Mar 12 13:11:16 A tinc.apa[5985]: Can't bind to 0.0.0.0 port 655/tcp:
Address already in use
Mar 12 13:11:16 A tinc.apa[5985]: Ready

So it looks like hts is blocking tinc from connecting to port 655. What
am I missing here?

Thanks very much,
Steve



Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://tinc.nl.linux.org/





More information about the Tinc mailing list