Skip to content

Problem with UDP transparent mode #31

@chrissyan0

Description

@chrissyan0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions