Open surereddy opened 6 years ago
Hi. Thanks for interest in this project, but your report is too vague for me to know what is going wrong.
What operating system are you running? What version of Go are you using? Who is 10.0.0.1? Is that the server (as shown in the readme)? Who is 10.0.0.2? Is that the client (as shown in the readme)? What is the setup? Are you running this on two different machines as intended? What other network interfaces are running on your machine? If another is using the 10.0.255.255 network mask, then you have a routing conflict. What does it mean for traffic to be blocked? Were you trying UDP or TCP? If TCP, did you at least establish a connection?
Hello sir Sorry for the delay in reply We are using linux machine for both Server and client running ubuntu .10.0.0.1 is Server IP and 10.0.0.2 is Client .I was able to connect from pc to server and i was able to ping from PC to Server and also from server to PC.I'm using UDP.Tunnel connection works fine for quite some time and stops when I try to ping from Server to pc or PC to server there is no Reply just request time out. Can i have TCP >> UDP
This is still insufficient information.
I was able to connect from pc to server
What does that mean? A TCP connection?
Tunnel connection works fine for quite some time
What does this mean? That the UDP tunnel was established, but not a networking layer above it?
You need to give me an exact step-by-step of what you are doing.
Also, note that this project was for personal use by me. Beyond a certain point, I don't have the bandwidth to trace down all possible issues with the project.
Hello sir,Its a good project i was impressed by its simplicity as its very easy to establish udptunnel connection.I wll paste server and client config Create a server configuration file:
cat serverconfig.json
{
"TunnelAddress": "10.0.0.1",
"NetworkAddress": ":800",
"AllowedPorts": [40000],
}
udptunnel /root/udptunnel/serverconfig.json &
[1] 11538
root@ubuntu-1gb-nyc3-01:~/udptunnel# 2018/02/15 10:32:13 main.go:150: loaded config:
{
"TunnelDevice": "tunnel",
"TunnelAddress": "10.0.0.1",
"NetworkAddress": ":800",
"AllowedPorts": [
40000
],
"BinarySHA256": "13ff6cd1401156d217de13bf6976bacb3b091f3b964df2724da2366964cecad9"
}
2018/02/15 10:32:13 main.go:208: udptunnel starting in server mode
Deprecated: NewTUN(..) may be removed in the future. Please use New() instead.
Client
cat clientconfig.json
{
"TunnelAddress": "10.0.0.2",
"NetworkAddress": "159.89.188.16:800",
"AllowedPorts": [40000],
}
ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=110 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=109 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=110 ms
64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=110 ms
64 bytes from 10.0.0.2: icmp_seq=5 ttl=64 time=110 ms
64 bytes from 10.0.0.2: icmp_seq=6 ttl=64 time=110 ms
^C
--- 10.0.0.2 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5006ms
rtt min/avg/max/mdev = 109.951/110.202/110.604/0.397 ms
tunnel Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.0.0.1 P-t-P:10.0.0.1 Mask:255.255.255.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1300 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:924 (924.0 B) TX bytes:924 (924.0 B)
sync show peers verbose
Name Transport Host Status Direction Will expire
SU TCP (null) Registering Outgoing
SU UDP 10.0.0.2:40000 Registered Outgoing 1732
2 Sync Peers, 1 online, 1 offline
udptunnel clientconfig.json &
[1] 3552
root@unassigned-hostname:~# 2018/02/15 05:35:57 main.go:150: loaded config:
{
"TunnelDevice": "tunnel",
"TunnelAddress": "10.0.0.2",
"NetworkAddress": "159.89.188.16:800",
"AllowedPorts": [
40000
]
}
2018/02/15 05:35:57 main.go:210: udptunnel starting in client mode
Deprecated: NewTUN(..) may be removed in the future. Please use New() instead.
2018/02/15 05:35:57 tunnel.go:217: switching remote address: 159.89.188.16:800
ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=110 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=110 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=110 ms
64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=110 ms
64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=110 ms
--- 10.0.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 110.058/110.188/110.637/0.427 ms
i have tried software in asterisk and trying to register on 40000 port.After sending few calls updtunnel stop communication and request time out
sync show peers verbose
Name Transport Host Status Direction Will expire
SU UDP 10.0.0.1:40000 Registered Outgoing 1782
1 Sync Peers, 1 online, 0 offline
Hello sir i have tested udp tunnel .when traffic start tunnel get blocked any solution for it please without traffic i can ping 10.0.0.1 on client 10.0.02 server .Once traffic starts its blocked.Please give me some solution.