Проблема с DNS

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Использование и установка DD-WRT
Author Message
kutashoff
DD-WRT Novice


Joined: 09 Apr 2012
Posts: 10

PostPosted: Tue Apr 24, 2012 7:58    Post subject: Проблема с DNS Reply with quote
ASUS RT-N12
DD-WRT v24-sp2 (03/19/12) mini
(SVN revision 18774)

Сначала была проблема в том, что не работал NAT на WAN интерфейсе. Из англоязычного форума понял, что это фича такая.

С помощью команды
iptables -t nat -A POSTROUTING -j MASQUERADE
NAT заработал.

Теперь задача сделать так, чтобы все DNS запросы форвардились в первую очередь на DNS-сервер, выданный DHCP провайдера на WAN интерфейсе.

Спасибо!

route -n:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
46.38.30.45 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
188.93.130.208 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.20.0.10 172.17.0.1 255.255.255.255 UGH 0 0 0 vlan1
172.20.0.22 172.17.0.1 255.255.255.255 UGH 0 0 0 vlan1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
10.0.3.0 172.17.0.1 255.255.255.0 UG 0 0 0 vlan1
172.20.0.0 172.17.0.1 255.255.255.0 UG 0 0 0 vlan1
172.17.0.0 0.0.0.0 255.255.248.0 U 0 0 0 vlan1
10.2.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
10.3.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
10.23.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
10.71.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
172.18.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
10.41.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
10.8.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br0
172.17.0.0 172.17.0.1 255.255.0.0 UG 0 0 0 vlan1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 46.38.30.45 0.0.0.0 UG 0 0 0 ppp0



ifconfig:

br0 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8C
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1244981 errors:0 dropped:0 overruns:0 frame:0
TX packets:1488467 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:99881238 (95.2 MiB) TX bytes:1556353087 (1.4 GiB)
br0:0 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8C
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1590425 errors:4 dropped:0 overruns:0 frame:2
TX packets:1237860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1696616435 (1.5 GiB) TX bytes:170013760 (162.1 MiB)
Interrupt:4 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1736958 errors:0 dropped:0 overruns:0 frame:685070
TX packets:2007773 errors:138 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:689973973 (658.0 MiB) TX bytes:2150917871 (2.0 GiB)
Interrupt:3 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:769 (769.0 B) TX bytes:769 (769.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:46.38.30.45 P-t-P:188.93.130.208 Mask:255.255.255.255
UP POINTOPOINT RUNNING MULTICAST MTU:1460 Metric:1
RX packets:1483891 errors:0 dropped:0 overruns:0 frame:0
TX packets:1202769 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1520576443 (1.4 GiB) TX bytes:91346092 (87.1 MiB)
vlan0 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1344 errors:0 dropped:0 overruns:0 frame:0
TX packets:25095 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:179583 (175.3 KiB) TX bytes:7761785 (7.4 MiB)
vlan1 Link encap:Ethernet HWaddr 20:CF:30:E4:A6:8D
inet addr:172.17.4.74 Bcast:172.17.7.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1589081 errors:0 dropped:0 overruns:0 frame:0
TX packets:1212765 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1667809202 (1.5 GiB) TX bytes:162251975 (154.7 MiB)
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Использование и установка DD-WRT All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum