Polecenie
Kod: Zaznacz cały
head /etc/resolv.conf
Kod: Zaznacz cały
nameserver 192.168.1.1
Zmieniłem w nim więc dnsy na open dns czyli
Kod: Zaznacz cały
nameserver 208.67.222.222
Kod: Zaznacz cały
192.168.1.1
Wyniki poleceń:
Kod: Zaznacz cały
root@deb-slay:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Kod: Zaznacz cały
root@deb-slay:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:a0:d1:a9:c5:0e
inet addr:192.168.1.20 Bcast:192.168.1.1 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:30
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)
wlan0 Link encap:Ethernet HWaddr 00:16:ea:63:24:7c
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:eaff:fe63:247c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1346 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74806 (73.0 KiB) TX bytes:14110 (13.7 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-16-EA-63-24-7C-77-6C-00-00-00-00-00-00-00-00
UP RUNNING MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Kod: Zaznacz cały
root@deb-slay:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"neostrada_1ffd"
Mode:Managed Frequency:2.457 GHz Access Point: 00:16:41:0D:CD:3A
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry min limit:7 RTS thr :o ff Fragment thr :o ff
Encryption key:9A8F-4ED8-2DDC-911A-FC32-246E-B9D7-E2E1-029F-664C-C840-B121-6E83-1E0C-9B3F-59BD [2] Security mode :o pen
Power Management :o ff
Link Quality=69/70 Signal level=-41 dBm Noise level=-127 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
Kod: Zaznacz cały
root@deb-slay:~# head /etc/resolv.conf
nameserver 208.67.222.222
nameserver 194.204.152.34
nameserver 194.204.159.1
nameserver 212.85.112.32
nameserver 213.25.47.167
Zapobiegłem nadpisywaniu pliku resolv.conf wpisując:
Kod: Zaznacz cały
chattr +i etc/resolv.conf