The output of this command gives two nameservers, they are my ISP's DNS servers and not OpenDNS as I have configuredcat /tmp/resolv.conf.auto


Moderator: Moderators
The output of this command gives two nameservers, they are my ISP's DNS servers and not OpenDNS as I have configuredcat /tmp/resolv.conf.auto
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 3446 packets, 237K bytes)
pkts bytes target prot opt in out source destination
110 16511 zone_wan_prerouting all -- eth0.1 any anywhere anywhere
1538 126K zone_lan_prerouting all -- br-lan any anywhere anywhere
1435 129K prerouting_rule all -- any any anywhere anywhere
Chain POSTROUTING (policy ACCEPT 1366 packets, 92054 bytes)
pkts bytes target prot opt in out source destination
1458 118K postrouting_rule all -- any any anywhere anywhere
1458 118K zone_wan_nat all -- any any anywhere anywhere
Chain OUTPUT (policy ACCEPT 1709 packets, 118K bytes)
pkts bytes target prot opt in out source destination
Chain pf_loopback_A (1 references)
pkts bytes target prot opt in out source destination
Chain pf_loopback_C (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
9 2682 pf_loopback_C all -- any br-lan anywhere anywhere
Chain prerouting_lan (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan (1 references)
pkts bytes target prot opt in out source destination
Chain zone_lan_nat (0 references)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any br-lan anywhere anywhere
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
0 0 pf_loopback_A all -- any any anywhere 10.10.10.2
228 14814 REDIRECT udp -- any any anywhere anywhere udp dpt:53
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:53
1310 111K prerouting_lan all -- any any anywhere anywhere
Chain zone_wan_nat (1 references)
pkts bytes target prot opt in out source destination
1396 112K MASQUERADE all -- any eth0.1 anywhere anywhere
Chain zone_wan_prerouting (1 references)
pkts bytes target prot opt in out source destination
110 16511 prerouting_wan all -- any any anywhere anywhere
root@OpenWrt:~#
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# uci show network
network.eth0=switch
network.eth0.vlan0=0 1 2 3 5*
network.eth0.vlan1=4 5
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.ifname=eth0.0
network.lan.proto=static
network.lan.ipaddr=192.168.1.1
network.lan.netmask=255.255.255.0
network.lan.dns=208.67.222.222 208.67.220.220
network.wan=interface
network.wan.ifname=eth0.1
network.wan.dns=208.67.222.222 208.67.220.220
network.wan.proto=dhcp
root@OpenWrt:~#
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 3850 packets, 281K bytes)
pkts bytes target prot opt in out source destination
7 601 zone_wan_prerouting all -- ppp0 any anywhere anywhere
185 22238 zone_lan_prerouting all -- br-lan any anywhere anywhere
166 25574 prerouting_rule all -- any any anywhere anywhere
Chain POSTROUTING (policy ACCEPT 1382 packets, 93975 bytes)
pkts bytes target prot opt in out source destination
123 14672 postrouting_rule all -- any any anywhere anywhere
123 14672 zone_wan_nat all -- any any anywhere anywhere
Chain OUTPUT (policy ACCEPT 1775 packets, 123K bytes)
pkts bytes target prot opt in out source destination
Chain pf_loopback_A (1 references)
pkts bytes target prot opt in out source destination
Chain pf_loopback_C (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
0 0 pf_loopback_C all -- any br-lan anywhere anywhere
Chain prerouting_lan (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan (1 references)
pkts bytes target prot opt in out source destination
Chain zone_lan_nat (0 references)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any br-lan anywhere anywhere
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
0 0 pf_loopback_A all -- any any anywhere ppp118-208-215-6.lns10.mel6.internode.on.net
40 2547 REDIRECT udp -- any any anywhere anywhere udp dpt:53
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:53
145 19691 prerouting_lan all -- any any anywhere anywhere
Chain zone_wan_nat (1 references)
pkts bytes target prot opt in out source destination
114 13996 MASQUERADE all -- any ppp0 anywhere anywhere
Chain zone_wan_prerouting (1 references)
pkts bytes target prot opt in out source destination
7 601 prerouting_wan all -- any any anywhere anywhere
root@OpenWrt:~#
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# uci show network
network.eth0=switch
network.eth0.vlan0=0 1 2 3 5*
network.eth0.vlan1=4 5
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.ifname=eth0.0
network.lan.proto=static
network.lan.ipaddr=192.168.1.1
network.lan.netmask=255.255.255.0
network.lan.dns=208.67.222.222 208.67.220.220
network.wan=interface
network.wan.ifname=eth0.1
network.wan.dns=208.67.222.222 208.67.220.220
network.wan.proto=pppoe
network.wan.username=*******@internode.on.net
network.wan.password=*******
network.wan.keepalive=3 5
root@OpenWrt:~#
Code: Select all
ln -s /bin/busybox ls
./ls
Code: Select all
ls
Code: Select all
cat /tmp/resolv.conf.auto
Code: Select all
nameserver 192.231.203.132
nameserver 192.231.203.3
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 40511 packets, 2194K bytes)
pkts bytes target prot opt in out source destination
14 5282 zone_wan_prerouting all -- eth0.1 any anywhere anywhere
250 25704 zone_lan_prerouting all -- br-lan any anywhere anywhere
114 21921 prerouting_rule all -- any any anywhere anywhere
Chain POSTROUTING (policy ACCEPT 1817 packets, 189K bytes)
pkts bytes target prot opt in out source destination
267 26905 postrouting_rule all -- any any anywhere anywhere
267 26905 zone_wan_nat all -- any any anywhere anywhere
Chain OUTPUT (policy ACCEPT 2417 packets, 232K bytes)
pkts bytes target prot opt in out source destination
Chain pf_loopback_A (1 references)
pkts bytes target prot opt in out source destination
Chain pf_loopback_C (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
3 750 pf_loopback_C all -- any br-lan anywhere anywhere
Chain prerouting_lan (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan (1 references)
pkts bytes target prot opt in out source destination
Chain zone_lan_nat (0 references)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any br-lan anywhere anywhere
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
153 9799 REDIRECT udp -- any any anywhere anywhere udp dpt:53
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:53
0 0 pf_loopback_A all -- any any anywhere 192.168.1.101
97 15905 prerouting_lan all -- any any anywhere anywhere
Chain zone_wan_nat (1 references)
pkts bytes target prot opt in out source destination
240 24567 MASQUERADE all -- any eth0.1 anywhere anywhere
Chain zone_wan_prerouting (1 references)
pkts bytes target prot opt in out source destination
14 5282 prerouting_wan all -- any any anywhere anywhere
root@OpenWrt:~#
Code: Select all
login as: root
root@192.168.1.1's password:
BusyBox v1.11.2 (2009-07-31 07:43:52 EDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.1, unknown) ----------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# uci show network
network.eth0=switch
network.eth0.vlan0=0 1 2 3 5*
network.eth0.vlan1=4 5
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.ifname=eth0.0
network.lan.proto=static
network.lan.ipaddr=192.168.1.1
network.lan.netmask=255.255.255.0
network.lan.dns=208.67.222.222 208.67.220.220
network.wan=interface
network.wan.ifname=eth0.1
network.wan.dns=208.67.222.222 208.67.220.220
network.wan.proto=static
network.wan.ipaddr=192.168.1.101
network.wan.netmask=255.255.255.0
network.wan.gateway=192.168.1.254
root@OpenWrt:~#
Alternatively use multiple PPPoE connections. See my comment at http://www.gargoyle-router.com/phpbb/vi ... t=10#p1633BikeMike wrote:...
As a feature suggestion, it would be good if I could use the force DNS option but have exceptions for 1 or 2 client PCs. (ie. OpenDNS forced for kids site blocking but adult PCs use an alternate DNS configured on the PC)
...