Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wanna to route all traffic by DNS.it worked before by following command ,but it doesn't work today for unknown reason.

before connecting to iodine:

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         edimax.com      0.0.0.0         UG    0      0        0 wlan0
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.2.0     *               255.255.255.0   U     2      0        0 wlan0

after connecting:

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         edimax.com      0.0.0.0         UG    0      0        0 wlan0
10.0.0.0        *               255.255.255.224 U     0      0        0 dns0
link-local      *               255.255.0.0     U     1000   0        0 wlan0
192.168.2.0     *               255.255.255.0   U     2      0        0 wlan0

command to route data over DNS Tunnle:

#!/bin/bash
sudo route del default gw 192.168.2.1 wlan0
sudo route add default gw 10.0.0.1 dns0
sudo route add -net 209.54.48.51 netmask 255.255.255.255 gw 192.168.2.1 wlan0
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.