-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Hello,
Thank you for providing shapeshifter.
It seems that with the current build UDP mode is not transparent at all:
Running the server:
./shapeshifter-dispatcher -transparent -udp -server -state state-server -orport 127.0.0.1:11940 -transports obfs2 -bindaddr obfs2-0.0.0.0:441
and the client (same machine):
./shapeshifter-dispatcher -transparent -udp -client -state state -transports obfs2 -target 10.1.1.130:441 -proxylistenaddr 127.0.0.1:11941
# nc -u 127.0.0.1 11941
1234
56789
(nc still open)
results in
root@pi4a:/home/pi/go/bin # nc -u -l -p 11940
56789
root@pi4a:/home/pi/go/bin #
(connection broken)
shapeshifter-dispatcher client output:
@@@ Listening obfs2 127.0.0.1:11941
@@@ handling...
Transport is obfs2
Received 1234
from 127.0.0.1:38638
map[]
Opening connection to 10.1.1.130:441
Making dialer...
recv: Open
Dialing....
Dialing 10.1.1.130:441
Success
Received 56789
from 127.0.0.1:38638
map[127.0.0.1:38638:{0x1916200 false}]
recv: write
writing...
6
[6 0]
shapeshifter-dispatcher server output:
ServerSetup
bindaddr {obfs2 0.0.0.0:441 map[]}
accepted
### handling obfs2
pumping
reading...
2
reading data
reading...
2
reading data
reading...
2
reading data
reading...
2
(and so on until connection breaks)
Same happens with obfs4.
go version 1.11.6 @ raspbian buster
Kind regards,
Chris