Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant bind tun0 address to create a socks proxy #28

Open
cryptid11 opened this issue Nov 29, 2017 · 2 comments
Open

cant bind tun0 address to create a socks proxy #28

cryptid11 opened this issue Nov 29, 2017 · 2 comments

Comments

@cryptid11
Copy link

It runs correctly on both ends, but when I try to ssh -D 4444 [email protected] nothing happens:

on server I run sudo ./icmptunnel -s 10.0.1.1, on client sudo ./icmptunnel -c serverip and I have:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
serverip    10.0.0.1        255.255.255.255 UGH   0      0        0 wlp2s0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

and

$ ip a show tun0
13: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1472 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 10.0.1.2/24 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::9971:42bb:d660:fd84/64 scope link flags 800 
       valid_lft forever preferred_lft forever

what am I doing wrong here?

note: strangely enought if I try: sudo ssh -D 4444 root@serverip I get prompted for password when I set on server to never ask for that...

# cat /etc/ssh/sshd_config|grep Password
PermitEmptyPasswords no
PasswordAuthentication no

This is another issue but can also be related, sometimes when I press ctrl+c I get this on server side
[DEBUG] Read ICMP packet with src: 10.0.0.29, dest: 10.0.0.12, payload_size: 24, payload: x��� or [DEBUG] Read ICMP packet with src: 10.0.0.29, dest: 10.0.0.12, payload_size: 24, payload: '��D�#�@xxxxxxxxxxxxxxxx�� pls give me some hint, thanks!

@DhavalKapil
Copy link
Owner

I'm really sorry I cannot help you right now since I'm tied up a lot these days :/

@rofl0r
Copy link

rofl0r commented Nov 29, 2017

the weird chars there look like memory corruption to me... there's a bug in the code somewhere.. maybe you can find it by compiling the code with ubsan and asan activated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants