stealth / fraud-bridge

ICMP and DNS tunneling via IPv4 and IPv6
Other
198 stars 42 forks source link

dns tunnel error #2

Closed HsounaZinoubi closed 10 years ago

HsounaZinoubi commented 10 years ago

Hi i love fraud-bridge it work like charm in icmp tunnel, this is my code:

-----------------------------------------------------------

ICMP TUNNEL:

Client: ./fraud-bridge -R 203.X.X.X -k password -i -r /tmp ./inside.sh

Server: ./fraud-bridge -L 0.0.0.0 -k password -i -r /tmp ./outside.sh

-----------------------------------------------------------

but i got no success in dns tunnel, this is my config please correct me:

-----------------------------------------------------------

DNS TUNNEL:

Client: ./fraud-bridge -R 203.X.X.X -D dnstunnel.me.com -u -k password -r /tmp ./inside.sh

Server: ./fraud-bridge -L 0.0.0.0 -D dnstunnel.me.com -u -k password -r /tmp ./outside.sh

-----------------------------------------------------------

can you help me please ? hint dnstunnel.me.com it NS record point to ns.me.com and ns.me.com it is an A record point to my server.

stealth commented 10 years ago

For DNS, you have to use the IP of the recursing DNS-server to -R switch (check README), not the endpoint IP as with the ICMP-case. Also, if you have dnstunnel.me.com, your -D switch must contain one further subdomain to it, like foo.dnstunnel.me.com , also the DNS-server you are using for tunneling must be recursive, i.e. it must allow you to resolve the foo.dnstunnel.me.com domains (check it with dig command)

HsounaZinoubi commented 10 years ago

i don't understand the "foo.dnstunnel.me.com" my current command is : Client: ./fraud-bridge -u -R 8.8.8.8 -D dnstunnel.hsouna.com -k key -r /tmp ./inside.sh

Server: ./fraud-bridge -u -L 0.0.0.0 -D dnstunnel.hsouna.com -k key -r /tmp ./outside.sh

for dns i m using my own domain name hsouna.com dns managed by cloudflare.com this is my dns zone:

Type Name Value {A} ns 88.198.17X.XX {NS} dnstunnel ns.hsouna.com