Skip to content

no route to host #36

Open
Open
@ssrsec

Description

server

The IP address of this host is 1.1.1.1, and it is running the servers wg and dtlspipe

./dtlspipe.linux-amd64 -psk 5b7feba846ec1b202964ef7c82270676 server 0.0.0.0:2815 127.0.0.1:65431

wg0.conf:

[Interface]
PrivateKey = CNU9UfCMSeMYZNMX4vuX77SBaPzsauQatvt4gxhQO1k=
Address = 10.77.0.1/32 
PostUp   = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 65431
DNS = 10.77.0.1
[Peer]
PublicKey = fc3+l2JqbG3cygjc1+7ncWZvCJlbwT0TiDv1OrF7KXI=
AllowedIPs = 10.77.0.2/24,127.0.0.1/32

client

This is my local computer, running the wg client and dtlspipe client

./dtlspipe.darwin-arm64 -psk 5b7feba846ec1b202964ef7c82270676 client 127.0.0.1:2816 1.1.1.1:2815

wg.conf:

[Interface]
PrivateKey = UCtPUEQotx7VOqLheMdrB0X6b1Q0sNIT+L7aeQ7hWUQ=
Address = 10.77.0.2/24
DNS = 8.8.8.8
MTU = 1420

[Peer]
PublicKey = WyoTpynMJohbLDQBX0ioWY0lhg+bvIM25icikRVkpEk=
AllowedIPs = 0.0.0.0/8, 1.0.0.0/16, 1.1.0.0/24, 1.1.1.0/32, 1.1.1.2/31, 1.1.1.4/30, 1.1.1.8/29, 1.1.1.16/28, 1.1.1.32/27, 1.1.1.64/26, 1.1.1.128/25, 1.1.2.0/23, 1.1.4.0/22, 1.1.8.0/21, 1.1.16.0/20, 1.1.32.0/19, 1.1.64.0/18, 1.1.128.0/17, 1.2.0.0/15, 1.4.0.0/14, 1.8.0.0/13, 1.16.0.0/12, 1.32.0.0/11, 1.64.0.0/10, 1.128.0.0/9, 2.0.0.0/7, 4.0.0.0/6, 8.0.0.0/5, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, ::/0
Endpoint = 127.0.0.1:2816
PersistentKeepalive = 25

error msg

client msg:

DTLSPIPE: 2024/09/15 23:24:26.469448 main.go:235: starting dtlspipe client: 127.0.0.1:2816 =[wrap into DTLS]=> 1.1.1.1:2815
DTLSPIPE: 2024/09/15 23:25:41.259927 client.go:111: [+] conn 127.0.0.1:2816 <=> 127.0.0.1:54397
DTLSPIPE: 2024/09/15 23:25:41.260715 client.go:146: remote dial failed: DTLS handshake with remote server failed: handshake error: write udp [::]:58494->1.1.1.1:2815: sendto: no route to host
DTLSPIPE: 2024/09/15 23:25:41.260747 client.go:147: [-] conn 127.0.0.1:2816 <=> 127.0.0.1:54397
DTLSPIPE: 2024/09/15 23:25:46.310565 client.go:111: [+] conn 127.0.0.1:2816 <=> 127.0.0.1:54397
DTLSPIPE: 2024/09/15 23:25:56.311961 client.go:146: remote dial failed: DTLS handshake with remote server failed: handshake error: context deadline exceeded
DTLSPIPE: 2024/09/15 23:25:56.312021 client.go:147: [-] conn 127.0.0.1:2816 <=> 127.0.0.1:54397

Note: Neither server 1.1.1.1 nor my local computer has firewall enabled

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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