Skip to content

udp not forwarding #71

@inpos

Description

@inpos

Hi.
DNS set to fake mode.
When I try to host ya.ru 127.0.0.1 I get:

2020/07/02 19:23:03 udp2socks5.go:167: [error] write to UDP tunnel failed write udp 192.168.49.199:58837->[::]:43754: address ::: non-IPv4 address

Full runtime log:

2020/07/02 19:22:29 main.go:37: [app] config file path is /opt/tun2socks.cfg
2020/07/02 19:22:29 proxies.go:62: [proxies] default proxy: "A"
2020/07/02 19:22:29 tun_linux.go:29: [tun] interface name is tun0
2020/07/02 19:22:29 cmd.go:14: [command] ifconfig tun0 10.111.111.1 netmask 255.255.255.0
2020/07/02 19:22:29 cmd.go:14: [command] route add -net 0.0.0.0/0 dev tun0
2020/07/02 19:22:29 main.go:95: [app] run tun2socks(0.50) success
2020/07/02 19:22:29 cmd.go:36: [shell] run shell command failed exit status 127
2020/07/02 19:22:29 cmd.go:38: [shell] output 
2020/07/02 19:22:29 dns.go:12: [dns] listen on 0.0.0.0:53
2020/07/02 19:22:58 udp2socks5.go:167: [error] write to UDP tunnel failed write udp 192.168.49.199:39277->[::]:52408: address ::: non-IPv4 address
2020/07/02 19:22:58 udp2socks5.go:174: [error] only part pkt had been write to socks5 0 23
2020/07/02 19:22:59 udp2socks5.go:167: [error] write to UDP tunnel failed write udp 192.168.49.199:56809->[::]:36905: address ::: non-IPv4 address
2020/07/02 19:22:59 udp2socks5.go:174: [error] only part pkt had been write to socks5 0 23
2020/07/02 19:23:03 fake.go:50: [dns] resolve ya.ru. on 77.88.8.1:53 failed: read udp 10.111.111.1:60397->77.88.8.1:53: i/o timeout
2020/07/02 19:23:03 fake.go:87: [dns] query ya.ru. failed
2020/07/02 19:23:03 udp2socks5.go:167: [error] write to UDP tunnel failed write udp 192.168.49.199:58837->[::]:43754: address ::: non-IPv4 address
2020/07/02 19:23:03 udp2socks5.go:174: [error] only part pkt had been write to socks5 0 23
2020/07/02 19:23:04 fake.go:50: [dns] resolve ya.ru. on 77.88.8.1:53 failed: read udp 10.111.111.1:52469->77.88.8.1:53: i/o timeout
2020/07/02 19:23:04 fake.go:87: [dns] query ya.ru. failed
2020/07/02 19:23:08 fake.go:50: [dns] resolve ya.ru. on 77.88.8.1:53 failed: read udp 10.111.111.1:57003->77.88.8.1:53: i/o timeout
2020/07/02 19:23:08 fake.go:87: [dns] query ya.ru. failed

Same error when I try to send UDP-packet by netcat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions